Ghost Agent

Your browser
works for you.

Ghost is an autonomous AI agent that lives inside Silver. It doesn't just chat — it takes action. Browse, search, click, type, read, write, run commands. Autonomously.

Architecture

Agent Loop

Observe page state, reason with LLM, execute tools, repeat. Up to 50 steps per task.

Tool Registry

Pluggable tool system. Add new tools by creating a file and calling registerTool().

Workspace

Each task gets ~/.ghost/tasks/{id}/ with plan.md, task.md, result.md. Persistent across steps.

Sub-Agents

Parent agent spawns focused child agents for research, automation, or analysis. Max depth 1.

LLM Provider

OpenRouter abstraction. Claude Sonnet 4, GPT-4o, Gemini 2.5 — swap models in settings.

Page Observation

Extracts 60 interactive elements, page text, scroll position. Agent sees the page like a human.

Example Tasks

"Go to YouTube and find the top trending video about AI"

1

Plan: Search YouTube for AI trending

2

Navigate to youtube.com

3

Fill search field with "AI"

4

Press Enter

5

Extract results

6

Save to workspace

7

Done: Found top 5 AI videos

"Research competitors of Stripe and write a report"

1

Plan: Research Stripe competitors

2

Web search: "Stripe competitors 2025"

3

Extract search results

4

Spawn sub-agent: research each competitor

5

Write report to workspace

6

Done: Report with 6 competitors analyzed