Ghostlight
<p align="center">
<img src="browser/extension/icons/ghostlight-mascot.png" alt="Ghostlight mascot: a small sky-blue pixel-art ghost holding a glowing lantern" width="100" height="100">
</p>
<h1 align="center">Ghostlight MCP</h1>
<p align="center"><strong>Your AI agent's visible co-pilot seat in the browser you already use.</strong></p>
<p align="center">
<a href="https://github.com/sylin-org/ghostlight/actions/workflows/ci.yml"><img src="https://github.com/sylin-org/ghostlight/actions/workflows/ci.yml/badge.svg?branch=dev" alt="CI"></a>
<a href="https://www.npmjs.com/package/ghostlight"><img src="https://img.shields.io/npm/v/ghostlight?color=38BDF8&label=npm" alt="npm"></a>
<a href="https://github.com/sylin-org/ghostlight/releases/latest"><img src="https://img.shields.io/github/v/release/sylin-org/ghostlight?color=38BDF8&label=release" alt="release"></a>
<a href="https://registry.modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP_registry-org.sylin%2Fghostlight-38BDF8" alt="MCP registry"></a>
</p>
<p align="center"><img src="docs/assets/demo.gif" alt="Ghostlight reading and completing a launch brief in a real browser with visible page, field, and click feedback" width="838" height="766"></p>
<p align="center"><sub>A launch brief moves from empty form to ready for review, in full view.</sub></p>
<p align="center"><a href="#up-and-running-in-two-minutes"><strong>Install Ghostlight</strong></a> | <a href="https://sylin.org/ghostlight/decision-aid/">See where it fits</a> | <a href="docs/guides/README.md">Guides</a> | <a href="docs/trust/README.md">Trust Center</a></p>
Your coding agent needs a page you are already signed in to -- a staging app on `localhost`, an
internal dashboard, a cloud console, or a live pull request. Spin up a second headless browser and
you lose your session cookies, your MFA state, and any sight of what the model is actually clicking.
Ghostlight gives your agent its own sky-blue tab group inside the Chrome, Edge, Brave, or Chromium
window you already have open. Every page scan, click, form fill, and drag lights up in front of
you. Watch it work, tap `Alt+Shift+P` to take the wheel for a delicate step, or lend it the tab you
are looking at right now.
One local Rust service connects 20 coding agents over MCP and drives scripts through a shorthand
CLI. Everything stays on your machine -- no account, no cloud relay, no telemetry.
> A light left burning, so the halls stay safe.
## Up and running in two minutes
You need Chrome, Edge, Brave, or Chromium 125+ on Windows or Linux and an MCP client. (Node.js is
only needed if you choose `npx`; the one-line installers fetch the native Rust binaries directly.)
1. **Install Ghostlight.** It configures the coding agents it finds and opens the Ghostlight window
on a three-step setup checklist:
```sh
npx -y ghostlight install
```
Without Node.js -- PowerShell on Windows:
```powershell
irm https://sylin.org/ghostlight/get.ps1 | iex
```
POSIX shell on Linux:
```sh
curl -fsSL https://sylin.org/ghostlight/get.sh | sh
```
2. **Add the browser extension.** In the Ghostlight setup window, click **Add** next to your
browser to open `Ghostlight in Browser` on the Chrome Web Store (Edge installs from the same
listing). If that browser already has the extension, click **Open**.
3. **Run your first prompt.** Restart your coding agent if the installer asked you to, then ask it:
> Open sylin.org/ghostlight/demo/desk and ring the bell.
A sky-blue Ghostlight group opens, the agent rings the bell on a demo page that stores nothing,
and the setup window switches to **Ready**.
If anything does not connect on the first try, run `ghostlight doctor` (or `npx -y ghostlight
doctor`) for the exact check that failed and the command to fix it. Windows users can also install
via `winget install Sylin.Ghostlight` followed by `ghostlight install`, or via the Claude Desktop
`.mcpb` bundle -- see the [installation guide](docs/guides/installation.md).
## What working together looks like
- **Your real session, cleanly separated.** Each agent works in its own `<ghost> <Agent>` blue tab
group and reuses tabs it left open on the same site instead of littering your tab strip. It never
touches a tab you opened -- unless you click **Hand this tab to Ghostlight** in the browser
toolbar popup to pass your active page straight to a waiting agent (`browser_tabs`
`await_shared`).
- **23 catalog tools built for models, not CDP trivia.** 22 browser tools cover tabs, navigation,
composed page reading (open shadow DOM and embedded frames included), semantic target search,
clicks, hovers, native HTML and ARIA combobox form fills, file uploads, bounded JavaScript,
waits, multi-step flows, dialogs, memory-only GIF capture, and redacted console/network
diagnostics -- plus `policy_explain` to inspect active rules. Navigations and clicks return a
bounded arrival digest with fresh handles so agents finish in fewer turns. Every call reports
whether an effect happened and whether repeating it is safe; uncertain effects are never replayed
automatically.
- **11 shorthand CLI verbs for scripts and UI verification.** Drive the same governed browser from
shells, CI checks, or agent skills without hand-writing JSON-RPC, isolated in named `--session`
tab groups:
```sh
ghostlight --session pr-42 nav https://localhost:3000/login
ghostlight --session pr-42 fill "Email"=ada@example.com --submit "Sign in"
ghostlight --session pr-42 wait "Dashboard"
ghostlight --session pr-42 shot ./dashboard.jpg
```
- **Wide open by default; progressive trust in one click.** Personal use needs no policy file. When
you want guardrails, click **Use Co-Pilot Guardrails** on the Policy tab: reading stays open
everywhere, while clicks, form edits, and scripts prompt in the Ghostlight window or toolbar
popup (**Allow once**, **Allow for session (15 min)**, **Always allow on `<host>`**, or **Deny**).
Teams can author Schema 5 (`allowed` and `ask`) host grants, never-touch domains, and Ed25519 +
ML-DSA-65 signed central bundles, and test changes against past runs with `ghostlight policy
simulate`.
- **Your machine, and only your machine.** Ghostlight runs as your OS user over local IPC and
launches on demand when your agent or browser starts. No vendor account, no hosted control plane,
no update polling, and never a phone-home request.
## The Ghostlight window
Click the Ghostlight tray icon to open **At a glance**: the live browser action at the top with its
timer running, and recent actions stacked beneath it in Ghostlight's own plain words -- `"Opened
example.com."`, `"Read 1,240 words."`, `"Filled 3 fields and submitted the form."` Alongside it sit:
- **Integrations** -- one-click setup across [20 supported coding agents](docs/guides/installation.md#agents-ghostlight-sets-up),
preserving your existing JSONC/TOML comments and writing a backup first;
- **Status** -- live health across the service, connected browsers, policy, and notifications;
- **Policy** -- plain-English capability summaries, the **Use Co-Pilot Guardrails** preset, rule
simulation against local history, and signed org-policy provenance;
- **Settings** -- pause/end controls, local watching permissions, browser auto-open, notifications,
diagnostics, and Quit;
- **About** -- version details, manual update check, and the Continuity Promise.
Closing the window leaves Ghostlight running quietly in the tray. On a headless Linux or SSH
session, `ghostlight-service` runs without a display toolkit and `ghostlight status` reports why no
window is attached.
## Clear boundaries
- **All-open means HTTP(S), localhost included.** Without a policy, HTTP and HTTPS sites work out of
the box, including local dev servers. Browser-internal schemes (`chrome://`, `file://`) and
Ghostlight's own loopback workbench address are always off-limits.
- **Credentials require both your instruction and your approval.** Agents must pass
`user_authorized_credentials: true` per request, and password, one-time-code, or payment inputs
also trigger an OS-enforced Step-Up prompt in the Ghostlight window or toolbar popup. Injected
page text cannot click or spoof that prompt.
- **Evidence stays visible.** Model-driven tab closing requires both policy permission (`action` +
`browser.tabs.allow_close`) and the extension's **Preserve controlled tabs** toggle (on by
default). Closing tabs yourself always works.
- **Passive in-page visuals.** The sky-blue cursor, scan sweep, field splash, and guardrail ribbon
are pointer-transparent and contain no buttons or focusable elements. Interactive controls live
only in the Ghostlight window and extension popup.
- **Payload-free local audit.** [`audit.jsonl`](docs/guides/siem-integration.md) records tool
names, capability checks, hostnames, optional CLI `session_scope` labels, and bounded counts (3
fields, 1,240 words, 1280x720) -- never URL paths, queries, page text, field values, or
screenshots.
## Release status
The latest published release is **3.0.0**: GitHub release
[`v3.0.0`](https://github.com/sylin-org/ghostlight/releases/tag/v3.0.0), npm `ghostlight@3.0.0`,
and MCP Registry `org.sylin/ghostlight 3.0.0`, paired with Chrome Web Store adapter v3.0.0
([`docs/public-status.json`](docs/public-status.json),
[release custody record](docs/testing/release-3.0.0-2026-11-28.md)). WinGet currently serves 2.0.3
until the 3.0.0 manifest ([`microsoft/winget-pkgs#492118`](https://github.com/microsoft/winget-pkgs/pull/492118)) merges; the one-line installer and npm serve 3.0.0
([`CHANGELOG.md`](CHANGELOG.md), [`docs/STATUS.md`](docs/STATUS.md)).
<details>
<summary><strong>Platform and adapter compatibility</strong></summary>
- **Supported platforms (published 3.0.0):** Windows x64 and Linux x86_64 (glibc and musl,
including Alpine) on Chrome, Edge, Brave, or Chromium 125+ (native packages on Linux; Snap and
Flatpak sandboxes block native messaging). macOS source support is on `dev` awaiting physical
Apple Silicon desktop/notarization validation; no macOS release binary is published yet.
- **Independent updates:** The service delivers the isolated-world page runtime to the extension at
handshake, so ordinary service updates need no extension reload. See
[`compatibility.json`](compatibility.json) for exact protocol pairings.
</details>
<details>
<summary><strong>How Ghostlight fits together</strong></summary>
```text
MCP Client <--stdio--> ghostlight mcp <--relay--> ghostlight-service
<--relay--> ghostlight (browser) <--native messaging--> Extension <--CDP--> Browser
```
- `ghostlight-service` -- the Rust domain authority: owns the 23-tool language, workspaces, Schema
5 policy and Step-Up approvals, payload-free audit, and the loopback workbench (links no UI
toolkit).
- `ghostlight` -- the thin protocol edge: runs as the MCP stdio relay (`ghostlight mcp`), the
browser native-messaging relay, and the CLI front door.
- `ghostlight-desktop` -- the native window, tray icon, and OS notifications over the loopback
workbench.
- `Ghostlight in Browser` -- the policy-free Manifest V3 extension (`browser/extension/`): executes
privileged browser primitives, draws content-free visual feedback, and syncs toolbar controls.
See [`docs/1.0/ARCHITECTURE.md`](docs/1.0/ARCHITECTURE.md) and [`docs/SPEC.md`](docs/SPEC.md) for
the full design.
</details>
<details>
<summary><strong>Build from source</strong></summary>
Requires Rust 1.89+, Node.js 22+ (for the TypeScript `browser/` workspace), and Chromium 125+ (plus
WebKitGTK 4.1, GTK 3, and AppIndicator dev packages on Linux when building `ghostlight-desktop`):
```sh
node scripts/build-browser.mjs
cargo build --workspace
```
A build directory never serves directly; deploy into `~/.ghostlight/bin` on the development channel
with `pwsh scripts/dev-loop.ps1`. [`docs/DEV-LOOP.md`](docs/DEV-LOOP.md) covers unpacked extension
loading (`browser/extension/`), isolated process journeys, and live verification.
</details>
## Where to go next
| Goal | Guide |
| --- | --- |
| Install, verify, update, or uninstall | [Installation guide](docs/guides/installation.md) |
| Get productive fast as a solo developer | [Solo developer guide](docs/guides/solo-developer.md) |
| Drive Ghostlight from scripts, CI, or CLI skills | [Scripting and CLI guide](docs/guides/scripting.md) |
| Let an AI coding agent walk you through setup | [Agent install guide](llms-install.md) |
| Configure Co-Pilot Guardrails or signed org policy | [Governance guide](docs/guides/governance-configuration.md) |
| Collect `audit.jsonl` into a SIEM | [SIEM integration guide](docs/guides/siem-integration.md) |
| Compare Ghostlight with Playwright MCP, DevTools MCP, or Claude in Chrome | [Comparison guide](docs/COMPARISON.md) and [Decision aid](https://sylin.org/ghostlight/decision-aid/) |
| Review security, data flows, SBOMs, and procurement answers | [Trust Center](docs/trust/README.md) |
| Read the product, language, and architecture contracts | [`INTENT`](docs/1.0/INTENT.md), [`LANGUAGE`](docs/1.0/LANGUAGE.md), [`ARCHITECTURE`](docs/1.0/ARCHITECTURE.md), [`ACCEPTANCE`](docs/1.0/ACCEPTANCE.md) |
| Check active branch progress or contribute | [`docs/STATUS.md`](docs/STATUS.md), [Contributing guide](CONTRIBUTING.md), [ADR index](docs/adr/README.md) |
## License and continuity
Ghostlight is free and open source under **Apache-2.0 OR MIT**, governance module included
([`LICENSING.md`](LICENSING.md), [ADR-0140](docs/adr/0140-fully-open-source-licensing.md)). There is
no license key, activation check, or seat counter in the runtime -- an installed copy keeps working
offline indefinitely ([Continuity Promise](docs/trust/continuity.md)).
## Questions and contributions
Open [GitHub Issues](https://github.com/sylin-org/ghostlight/issues) for reproducible bugs,
[GitHub Discussions](https://github.com/sylin-org/ghostlight/discussions) for questions and
workflow ideas, or email hello@sylin.org for private security reports ([`SECURITY.md`](SECURITY.md))
and anything that cannot be public.
TDQS
Scored across 25 tools
Multiple tools have overlapping purposes (script vs browser_batch, file_upload vs upload_image, form_input vs form_fill), but descriptions include enough detail to distinguish them with careful reading. An agent may still hesitate on which to choose.
Tool names follow no consistent pattern: some are verb_noun (read_page, upload_image), some are noun_verb (file_upload, form_fill), some are single verbs (navigate, find), and some nouns (computer, dialog). The _mcp suffix appears on only two tab-related tools, while tab_control omits it. This mix makes the naming chaotic.
At 25 tools, the server is on the heavy side of the 16-25 borderline range. However, the broad scope of full browser automation justifies most tools, and each serves a distinct purpose within that domain.
The tool set comprehensively covers the browser automation lifecycle: navigation, reading, interaction, form filling, waiting, tab management, JavaScript execution, network/console inspection, screenshots, dialogs, and even recording. There are no obvious dead ends; the presence of update_plan and explain covers agent coordination and discoverability.