# LYNE Page Agent Extension

This is the Study Concept branded Chrome/Edge LYNE Page Agent. It uses Alibaba PageAgent under the hood, but the user-facing command surface is LYNE.

The Study Concept app can also open the same Alibaba PageAgent runtime in-page by saying `page agent`. The extension is for using LYNE Page Agent on other websites.

It is intentionally not payment-gated yet. The site serves a downloadable ZIP from `/lyne-agent` while this is outside the Chrome Web Store.

## Download from The Study Concept

1. Open `https://thestudyconcept.vercel.app/lyne-agent`.
2. Download `lyne-agent-extension.zip`.
3. Extract the ZIP.
4. Open `chrome://extensions` or `edge://extensions`.
5. Turn on Developer mode.
6. Choose Load unpacked.
7. Select the extracted `lyne-page-agent` folder.
8. Open any normal web page, then click the LYNE Page Agent extension icon.

## Install locally

1. Open `chrome://extensions` or `edge://extensions`.
2. Turn on Developer mode.
3. Choose Load unpacked.
4. Select this folder:
   `extensions/lyne-page-agent`
5. Open any normal `http`, `https`, or local file page.
6. Click the LYNE Page Agent extension icon, then Open on this page.

Keyboard shortcut: `Ctrl+Shift+L` or `Command+Shift+L`.

## How it works

- The extension injects LYNE only after the user clicks the extension icon, presses the shortcut, or opens it from the popup.
- The Alibaba PageAgent runtime loads only when the user runs a task or opens the advanced agent view.
- Opening the extension launches the real Alibaba PageAgent panel with LYNE branding.
- Settings support any OpenAI-compatible endpoint, model, and API key.
- Voice mode is available from the injected LYNE panel when the current browser supports Web Speech recognition.

## Study Concept command bridge

When this extension is installed on `thestudyconcept.vercel.app` or a local Study Concept file, the in-app LYNE widget can open it through commands such as:

- `page agent`
- `open page agent`
- `page agent summarize this page`
- `use page agent to find my MyCal link`

## Default model settings

The default settings mirror Alibaba's demo setup:

- Base URL: `https://page-ag-testing-ohftxirgbn.cn-shanghai.fcapp.run`
- Model: `qwen3.5-plus`
- API key: `NA`

Use those for local evaluation only. For production, configure a Study Concept owned endpoint or a user-provided compatible API key.

## Safety

The wrapper instructs LYNE to ask before submitting forms, deleting content, making payments, changing account settings, or sending messages. Users should still supervise the agent while it acts on pages.
