ego-lite
AGENTS.md17k starsChanged 3 months agoMITView on GitHub
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; skills/ego-browser/SKILL.md documents that binary's usage (ego-browser nodejs <<'EOF'…
Trending
Less talk lately.about the whole repository
Who's talking about citrolabs/ego-lite
- ruanyf/weekly“【项目自荐】ego lite:一个你和 AI Agent 共用的浏览器”GitHub · Jun 3, 2026 · 19 reactions
- A Hacker News story“Show HN: Ego lite – why our browser agent writes JavaScript not CLI commands”Hacker News · May 30, 2026 · 12 points
- @dailygithubtrends.bsky.social“今日のGitHubトレンド citrolabs/ego-lite AIエージェントがウェブオートメーションを高速に実行するための専用ブラウザです。…”Bluesky · Jul 26, 2026 · 3 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド citrolabs/ego-lite AIエージェントがウェブ自動化を高速に実行するためのブラウザです。 …”Bluesky · Jul 24, 2026 · 3 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 citrolabs / ego-lite ⭐ 18,409 (+427) 🗒 JavaScript The fastest …”Bluesky · Oct 21, 2026 · 2 likes
The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 64
Talked about on GitHub, Bluesky and Hacker News (64 times).
On GitHub · 50
- Jun 3, 2026【项目自荐】ego lite:一个你和 AI Agent 共用的浏览器 — ruanyf/weekly19 reactions
- Aug 11, 2026Add ego-browser to Tools & Integrations — hashgraph-online/awesome-ai-plugins1 reaction · 4 comments
- Jun 22, 2026〖工具自荐〗ego lite:让 Codex/Claude Code 复用真实浏览器登录态跑网页任务 — ruanyf/weekly1 reaction
- Jun 1, 2026🔍 Weekly Discovery: 48 new tools found (2026-06-01) — heylabs-co/dev-tools-portal1 reaction
- Nov 3, 2026docs: fix stale README/CONTRIBUTING/skill docs and plugin metadata — opencue/agenticbrowser0 reactions
45 more on GitHub
- Oct 31, 2026用 Real-World Bench 评测 By Your Side 并对比其他浏览器 Agent — yishu-ziyu/By-Your-Side0 reactions · 1 comment
- Oct 28, 2026claude-code-plugins.github.citrolabs.ego-lite: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.citrolabs.ego-lite: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 28, 2026fix(ego): retain native navigation timeout observations — jeong-sik/masc0 reactions · 1 comment
- Oct 28, 2026feat(ego): support native RegExp URL waits — jeong-sik/masc0 reactions · 3 comments
- Oct 28, 2026fix(ego): preserve native evaluation timeout diagnostics — jeong-sik/masc0 reactions · 2 comments
- Oct 28, 2026ego 입력 해제 층(#46463) 병합 뒤 후속 모음 — jeong-sik/masc0 reactions · 3 comments
- Oct 26, 2026docs(research): update ego Windows compatibility without relaxing provenance — Bruceliubeiru/ego-lite-andy-0 reactions
- Oct 21, 2026[Feature]: Let agents work in the user's real logged-in state — evaluating ego lite as a second browser backend — nightly-labs/openbot0 reactions · 1 comment
- Oct 21, 2026[feature] browser tool relays JavaScript to ego lite: one task space per preset, every pet window, screenshots as images, CDP module deleted — yw0nam/YUI0 reactions
- Oct 21, 2026[spike] ego lite behind a relay browser tool: arbitrary JS, one task space per pet window, a sandbox and login boundary — yw0nam/YUI0 reactions · 1 comment
- Oct 20, 2026feat(engineering): add kedata-qa-automation skill integrating Playwright and ego-lite — Kedata-Indonesia/vibeskills0 reactions
- Oct 18, 2026codex-plugins.github.citrolabs.ego-lite: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 17, 2026codex-marketplaces.github.citrolabs.ego-lite: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 16, 2026agent-plugins.github.citrolabs.ego-lite: init at 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 16, 2026agent-skills.github.citrolabs.ego-lite: 2.0.0 → 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 9, 2026chore: ego lite Windows·Linux 정식 출시 시 설치 스크립트에 반영 — coco-de/desktop0 reactions
- Oct 8, 2026[Claw 브라우저 제어][후속 개발] 사전 위임 기반 PC 브라우저 명령 실행 연결 — skerishKang/ai-revenue-lab0 reactions · 62 comments
- Oct 3, 2026agent-skills.github.citrolabs.ego-lite: v2.0.0 → refs/tags/v2.0.0 — sudosubin/agents.nix0 reactions
- Oct 1, 2026[Feature]: Choose the agent's browser: built-in, external (for example ego lite), or none; and bring ego lite's speed features into the built-in browser — nightly-labs/openbot0 reactions · 1 comment
- Sep 26, 2026[Candidate] citrolabs/ego-lite/.github/dev-skills/ego-lite-simplify - ego-lite-simplify — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.citrolabs.ego-lite: init at 2.0.0 — sudosubin/agents.nix0 reactions
- Sep 12, 2026Benchmark remaining high-value browser automation contenders and close tool-coverage gap — Rajeev-SG/web-automation-microbenchsays it tested it0 reactions
- Sep 5, 2026feat(browser): 임베디드 브라우저와 Playwright 를 ego-lite 로 바꿀 수 있는지 조사한다 (예정) — nextain/naia-shell0 reactions · 1 comment
- Sep 4, 2026[Docs] 核验 Ego Lite / ego-browser 的产品定位与文档落点(EN + ZH) — zenHeart/learn-ai0 reactions
- Sep 1, 2026[intake] single: browser-control — gaia-research/gaia-skill-tree0 reactions · 2 comments
- Aug 16, 2026## What — why20110513/github-slideshow0 reactions
- Aug 15, 2026Developer Race — ego-lite — Agent Browser — 8x8org/.github0 reactions
- Aug 15, 2026Browser search capacity — kanthorlabs/kanthord0 reactions
- Aug 15, 2026Github trending [citrolabs/ego-lite] AI代理专属浏览器 — web1992/github-trending0 reactions
- Aug 14, 2026🔥 GitHub Trending AI 早报 · 2026-08-15 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Aug 14, 2026🔥 GitHub Trending AI 早报 · 2026-08-15 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Aug 14, 2026🔥 GitHub Trending AI 晚报 · 2026-08-14 · Top 7 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Aug 14, 2026🔥 GitHub Trending AI 晚报 · 2026-08-14 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Aug 3, 2026aug 2026 — kimtth/azure-openai-llm-notes0 reactions
- Jul 27, 2026Citrolabs Ego-Lite: AI 에이전트를 위한 가장 빠른 브라우저 자동화 도구 — roomedia/ax-trend0 reactions
- Jul 27, 2026Github trending [citrolabs/ego-lite] 智能体专用浏览器 — web1992/github-trending0 reactions
- Jul 26, 2026🔥 GitHub Trending AI 早报 · 2026-07-27 · Top 4 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 26, 2026🔥 GitHub Trending AI 早报 · 2026-07-27 · Top 4 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 26, 2026🔥 GitHub Trending AI 晚报 · 2026-07-26 · Top 4 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 26, 2026🔥 GitHub Trending AI 晚报 · 2026-07-26 · Top 4 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 早报 · 2026-07-26 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 早报 · 2026-07-26 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 晚报 · 2026-07-25 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 晚报 · 2026-07-25 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
On Bluesky · 13
- Jul 26, 2026今日のGitHubトレンド citrolabs/ego-lite AIエージェントがウェブオートメーションを高速に実行するための専用ブラウザです。… — @dailygithubtrends.bsky.social3 likes and reposts
- Jul 24, 2026今日のGitHubトレンド citrolabs/ego-lite AIエージェントがウェブ自動化を高速に実行するためのブラウザです。 ユーザーとエージェントが並行して作業できる設計となっており、エージェントは専用のスペースで動作するためユーザーのタブを妨げません。… — @dailygithubtrends.bsky.social3 likes and reposts
- Oct 21, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 citrolabs / ego-lite ⭐ 18,409 (+427) 🗒 JavaScript The fastest browser for AI agents to run browser… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Aug 14, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 citrolabs / ego-lite ⭐ 10,083 (+153) 🗒 JavaScript The fastest browser for AI agents to run browser… — @github-trending.bsky.social2 likes and reposts
- Aug 14, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 citrolabs / ego-lite ⭐ 10,083 (+153) 🗒 JavaScript The fastest browser for AI agents to run browser… — @github-trending-js.bsky.social2 likes and reposts
8 more on Bluesky
- Aug 14, 2026今日のGitHubトレンド citrolabs/ego-lite AIエージェントがブラウザ自動化を高速に実行するための専用ブラウザです。 ユーザーとエージェントが並行して作業でき、エージェント専用のスペースを提供することでタブの競合を防ぎます。… — @dailygithubtrends.bsky.social2 likes and reposts
- Aug 3, 2026Wow. Newer tools targeting Agentic work is coming up faster Here is a browser custom built for working with agents:… — @jjude.com2 likes and reposts
- Jul 23, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 citrolabs / ego-lite ⭐ 1,256 (+219) 🗒 JavaScript The best browser for both you and your AI agents… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Jul 29, 2026give your agent its own browser. ego lite: one browser you and your agents share. agents work in their own Spaces with your real logins,… — @epicvibecoder.bsky.social1 likes and repost
- Jul 28, 2026github.com/citrolabs/ego-lite GitHub - citrolabs/ego-lite: The fastest browser for AI agents to run browser automation, built ... — @technews4869.bsky.social1 likes and repost
- Jul 27, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 citrolabs / ego-lite ⭐ 5,304 (+1,316) 🗒 JavaScript The fastest browser for AI agents to run browser… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jul 23, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 citrolabs / ego-lite ⭐ 1,256 (+219) 🗒 JavaScript The best browser for both you and your AI agents… — @github-trending.bsky.social1 likes and repost · 1 reply
- Oct 28, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 citrolabs / ego-lite ⭐ 20,304 (+270) 🗒 JavaScript The fastest browser for AI agents to run browser… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- May 30, 2026Show HN: Ego lite – why our browser agent writes JavaScript not CLI commands12 points · 8 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- ego-lite-simplifySkill
- ego-browserSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 82
Do not link another runtime, reuse a prior E2E space, or manually take control while the suite is running.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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; skills/ego-browser/SKILL.md documents that binary's usage (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()and the generated reference;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 skill dir 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.
Data flow: stdin JS → runMain() → helperContext() helpers → browser runtime/CDP → snapshot or DOM/AX resolution → optional site tools → cliLog(...).
Task Spaces
Task spaces are isolated browsing contexts with an ownership model (agent / user):
- New scripts use
taskSpace(nameOrId)and operate through the returnedTaskSpaceand labeledPageobjects. task.pages()returns managed Page handles;task.tabs()returns the full managed and unmanaged tab inventory.- Control handoff uses
task.handOff()andtakeOverTaskSpace(spaceId). - The old global helpers remain available only for v1 script compatibility.
Key Directories
package/ego-browser/src/— runtime, helpers, resolver, drivers, learning subsystem.package/ego-browser/src/**/*.test.mjs— tests are colocated with the code (there is no separatetest/directory).package/ego-browser/scripts/—build.mjs(esbuild per-file →dist/src, rollup bundle →dist/out/index.js, copiesskills/ego-browser→dist/out/ego-browser),validate-site-skills.ts, and the real-browser E2E runner.skills/ego-browser/— agent skill package:SKILL.md(canonical agent-facing usage guide),references/install.md,scripts/install.sh.skills/ego-browser/learnings/— reusable per-site experience packs (manifest.json+notes/+tools/+browser-tools/).
Development Commands
Run from package/ego-browser/:
npm test— build, typecheck, thennode --testoversrc/**/*.test.mjs.npm run e2e— self-contained real-browser E2E suite using the current checkout through--sdk-path.npm run validate:site-skills— validate learned site skills.node dist/out/index.js <<'JS' ... JS— run the built CLI from this checkout (requires anegoruntime for real browser work;-his also supported).
Code Conventions & Common Patterns
- ESM only (
"type": "module"); Node 22+. - Public helpers are camelCase, verb-first for async actions (
ensureSession,runSiteTool). - V2
TaskSpaceandPagetime parameters are milliseconds. The v1 compatibility helpers keep their original units. - Helpers are injected into the script scope, not imported by agent scripts.
- New v2 APIs go through
public-api-schema.ts; keep runtime validation, generated reference, architecture, andSKILL.mdin sync. - Snapshot refs (
@N) are short-lived; re-snapshot after navigation or DOM changes and prefer stableloc=...values for reuse. - Element-resolution failures should use
ElementResolutionErrorwith an honesttransient/permanentkind — wait loops rely on it. - The code prefers the small shared state singleton (
src/state.ts) over threading connection state through call sites. - Site skills must stay site-shaped and verifiable: stable URLs, durable selectors, no pixel coordinates, no secrets.
Testing & QA
- Framework: Node's built-in runner (
node --test), assertions vianode:assert/strict. - Tests run against the build output (
dist/src/...) —npm testbuilds first. - Behavior-focused tests inject overrides (
__testing.setOverrides) or aFakeEgodouble (seesrc/helpers.test.mjsandsrc/page-model.test.mjs). - Cover session handling, locator resolution, helper behavior, and site-skill validation when changing runtime code; run
npm run validate:site-skillsfor learning changes. npm run e2eis the self-contained real-browser gate. It builds the current checkout, passes the resulting absolute bundle through--sdk-path, starts a local fixture server, uses a unique temporary task space, and cleans it up. Do not link another runtime, reuse a prior E2E space, or manually take control while the suite is running.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

