ego lite is a browser built for people and AI agents to use at the same time, letting agents work with the user's existing tabs, logins, cookies, extensions, and bookmarks. It supports browser automation tasks for agents such as Codex and Claude Code, with agents working in separate Spaces while the user keeps control of their tabs. The catalogue entry provides the ego-browser skill for operating it.
Borrowing it
Nothing to install: this file belongs to citrolabs/ego-lite. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/citrolabs/ego-lite/main/AGENTS.mdgit clone --depth 1 https://github.com/citrolabs/ego-liteWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/citrolabs/ego-lite/agents-md)<a href="https://agentmods.dev/instructions/citrolabs/ego-lite/agents-md"><img src="https://agentmods.dev/badge/instructions/citrolabs/ego-lite/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/citrolabs/ego-lite/agents-md"><img src="https://agentmods.dev/badge/instructions/citrolabs/ego-lite/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01894 | $0.01894 |
| Opus 5.5 | $0.00758 | $0.00758 |
| Sonnet 5.5 | $0.00379 | $0.00379 |
| Haiku 4.5 | $0.00189 | $0.00189 |
Grade A, and why
ego-lite AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Project Overview
ego-browser is a Node.js CDP browser-automation harness for AI agents. It drives the ego lite browser through globalThis.ego bindings (provided by the closed-source ego lite app), exposes a compact snapshot/ref workflow, and layers reusable site-specific knowledge ("learnings") on top of the browser runtime.
This repo contains the open-source harness and the agent skill package — not the browser itself. The ego lite app bundles its own ego-browser binary that embeds this runtime. The Skill has two layers: skills/ego-browser/ is a thin entry Skill that tells agents to run ego-browser skill, and package/ego-browser/skill-body/SKILL.md is the versioned usage guide that command prints (ego-browser nodejs <<'EOF' ... EOF). The repo CLI built here takes the heredoc directly on stdin with no subcommand.
Architecture & Data Flow
package/ego-browser/src/index.tsis the entrypoint with two startup paths:- Executed directly as a CLI →
runMain()(reads JavaScript from stdin, executes it). - Imported as a module (how the app embeds it) →
installEgoSdk(globalThis).
- Executed directly as a CLI →
- Both paths expose the same helper surface.
public-api-schema.tsis the source of truth for the v2 API shown byhelp();helpers.tscombines it with the frozen v1 compatibility surface. src/run.tsexecutes stdin JavaScript inside an async function with the helpers injected as parameters.src/browser-runtime.tsowns CDP transport overego.sendCDPMessage, session attach/caching (2s TTL, auto re-attach on session loss), the buffered event queue (10k cap), and JS dialog tracking.src/cdp-eval.tsprovidescdp()andjs()(string-expression evaluation; top-levelreturnis auto-wrapped in an IIFE).src/element-resolver.tsresolves all target forms —@Nrefs,loc=css:/loc=role:/loc=href:locators,xpath=, raw CSS — and classifies failures astransient(retryable) orpermanent.src/page-ref-registry.ts+src/page-ledger.ts: v2 Page refs (@21, not@e21) are SDK-assigned ids bound to one frame/document/backend node. Their mappings and invalidation persist across rounds; partial snapshots merge by node identity and full snapshots replace the active set. Missing refs require a fresh snapshot.src/ref-map.ts+src/ref-state.tsretain the v1 native-ref refresh behavior.src/driver/—nav(tabs, navigation),pointer(click/scroll/drag),keyboard,observe(snapshot/screenshot),waits,files(upload),element-ops(objectId handles),load.src/learning/— discovery, validation, and execution of site skills fromskills/ego-browser/learnings/<site>/manifest.json(runSiteTool,runSiteBrowserTool,learnContext).src/state.tsis the shared mutable runtime state singleton;src/env.tsresolves the agent workspace (EGO_BROWSER_AGENT_WORKSPACE, falling back to the entry Skill bundled next to the build output, then the repo'sskills/ego-browser).src/help-runtime.tsparses the built bundle's JSDoc with acorn at runtime to powerhelp()— JSDoc on exported helpers is therefore user-facing documentation.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +111 tokens per session a1e55d5abab8
- 21d ago Changed · +1 lines · +128 tokens per session 8503b4d58374
- 1mo ago Changed · +23 lines · +78 tokens per session cf29637bf312
- 2mo ago First seen · 61 lines · 1,577 tokens per session scan A 73d8d7a1d03e
ego-lite AGENTS.md is an instructions file published in the GitHub repository citrolabs/ego-lite (21,793 stars, last pushed yesterday), licensed MIT. It adds 1,894 tokens to every session, about $0.0076 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ego-lite AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ego-lite AGENTS.mdcitrolabs/ego-lite | Instructions file | 22k | yesterday | MIT | A | 1,894 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |