webcmd README

The project's README from github.com/agentrhq/webcmd. As one markdown file: README.md.

Webcmd — stop paying agents to rediscover the web

NPM version Documentation License Join the community on Discord Follow AgentR on X

Webcmd

Self-learning browser infra for AI agents.

Webcmd learns the navigational context of websites as agents use them, then turns that knowledge into local memory for faster, cheaper, more reliable browser automation. The goal is simple: stop making agents rediscover the same sites on every run and cut browser-agent token spend by up to 90%.

Webcmd pairs live browser control with a self-learning memory layer:

Layer Scenario What Webcmd Helps With
0. Live browser control The site is unfamiliar. Use webcmd browser to inspect, click, type, extract, capture network calls, and complete the task in a real browser.
1. Sitemap memory The site is familiar, but the action space is not fully known. Capture an agent-facing sitemap of observed pages, states, actions, workflows, APIs, pitfalls, and fallback paths.

Demo

https://github.com/user-attachments/assets/bdb65307-9e2a-4d58-9175-45d59528ae37

Quick Start

Agent prompt

Fetch and follow https://raw.githubusercontent.com/agentrhq/webcmd/main/start.md to set up Webcmd end to end.

Manual

Webcmd requires Node.js 20.6+.

npm install -g @agentrhq/webcmd
webcmd skills add

When prompted, choose Claude, Codex, another supported harness, or a custom skills path. That installs exactly one skill, webcmd-browser.

Load or tag webcmd-browser only for live browser work, then describe the outcome you want. Installation and setup commands do not require that skill.

Use webcmd to research the latest discussions about browser automation across Hacker News and Reddit, then return a concise comparison with source links.

What You Can Ask

See It in Action

Use webcmd with my logged-in `social` profile to collect my recent X bookmarks and return the author, text, and URL.

The agent uses the logged-in profile to complete the task in a real browser. Along the way, Webcmd quietly retains useful navigation context so later agents can avoid repeating the same exploration.

Where Webcmd Works

Webcmd can work through authenticated browser sessions across research, social, AI, shopping, and booking products.

Group Supported surfaces Representative outcomes
research and communities Hacker News, Reddit, PubMed Compare current discussions, find primary research, and return concise summaries with source links.
social and professional X/Twitter, LinkedIn, TikTok Collect bookmarks, monitor public posts, or research people and creators with a named profile when needed.
AI tools ChatGPT, Claude, Gemini, NotebookLM Retrieve conversations, research outputs, notebooks, and generated materials from the tools you already use.
shopping and bookings Amazon, Blinkit, Zepto, BigBasket, District, Practo Compare products, availability, prices, appointments, events, and delivery options.

This list is illustrative. Webcmd can operate other websites through the same live browser workflow.

How Self-Learning Works

How Webcmd learns: load memory, use the live web, keep useful learnings, and help the next agent

Learning stays quiet and selective: the live browser is always truth, Webcmd never explores just to learn, and a memory failure never blocks the task. First access may use a Webcmd Cloud seed; subsequent learning stays local.

For local, multi-step browser exploration, agents can send one sandboxed Playwright-style program to an explicit browser session:

webcmd --profile work session create "Work Project" -f json
# id: work-project-k7
webcmd --profile work --session work-project-k7 browser tabs
webcmd --profile work --session work-project-k7 browser run --file explore.js
printf 'return await page.title();' \
  | webcmd --profile work --session work-project-k7 browser run --stdin
webcmd --profile work session close work-project-k7

Profiles are cookie jars; Sessions are independent browser windows within a profile, so Session IDs are immutable, Profile-scoped, and safe to reuse for that Session's lifetime. Parallel agents should create separate Sessions. Raw browser commands require an explicit readable Session ID.

Benchmarks

On BU Bench V1, a 100-task browser automation benchmark, Webcmd recorded the highest accuracy and lowest estimated controller cost per completed task, and fewest agent turns per completed task in this comparison.

BU Bench V1 comparison: webcmd leads accuracy at 67%, cost per completed task at $0.255, and agent turns per completed task at 9.8

All tools used the same Pi controller, controller model, Codex gpt-5.4 judge, and CloakBrowser engine. This is a stronger judge than the original BU Bench setup, whose current runner uses Gemini 2.5 Flash. Accuracy is passed tasks out of 100. Cost and agent turns are averaged over completed tasks; cost excludes judge usage. See the benchmark report for category results, methodology, architectural analysis, and reproduction steps.

Learn More

Webcmd Cloud can run supported commands and browser sessions on hosted infrastructure. It is in active development and is not yet stable.

Contributing

See CONTRIBUTING.md.

License

Released under the terms in LICENSE.

webcmd (agentrhq/webcmd)

Searching Database…

2.7K ·GitHub
这是什么?Webcmd 是面向 AI agent 的自学习浏览器基础设施:它让 agent 控制真实浏览器去完成任务,然后把学到的网站知识存为本地记忆,让后续运行更快、更省钱,也不必重新摸索同一个网站。
这是我导入的浏览器库,还是给我编码 agent 用的 CLI 技能?它是加载到编码 agent harness 里的技能,不是导入代码的库。安装器只会装一个叫 webcmd-browser 的技能,只在需要实时控制浏览器时才加载它。
怎么安装并开始使用 Webcmd?运行快速开始安装命令,然后在提示时选择你的 harness(Claude、Codex、其他受支持的 harness,或自定义技能路径),安装 webcmd-browser 技能。
配置之前需要先装好什么?你需要 Node.js 20.6 或更新版本,外加一个受支持的编码 agent harness(Claude、Codex、Gemini 或你自己的),用来实际加载装好的技能。
依赖它之前有什么要注意的?托管的 Webcmd Cloud 选项(用于在远程基础设施上运行会话,以及为首次学习提供种子)明确仍处于积极开发中、还不稳定;目前只用本地功能是更稳妥的方式。
我的浏览/导航数据会留在我的电脑上吗?基本会:首次访问某个网站时可能会从 Webcmd Cloud 拉取一份种子,但之后的每一步学习都会存在本地并复用。
与其他浏览器自动化工具相比,Webcmd 实际表现如何?在包含 100 个任务的浏览器自动化基准 BU Bench V1 上,在相同控制器和评审设置下对比的工具中,Webcmd 取得了最高准确率、每个已完成任务的最低预估成本和最少的 agent 轮次。
它目前已经能应付哪些类型的网站?它已经可以用于研究类网站(Hacker News、Reddit、PubMed)、社交平台(X/Twitter、LinkedIn、TikTok)、AI 工具(ChatGPT、Claude、Gemini、NotebookLM)以及购物/预订网站(Amazon、Blinkit、Practo),不过 README 说明这个列表只是举例,并非全部。
Webcmd 里 Session 和 Profile 有什么区别?Profile 是一个 cookie 存储罐,而 Session 是该 Profile 里的一个独立浏览器窗口;Session ID 不可变且以 Profile 为作用域,并行的 agent 应各自使用自己的 Session。
为什么不直接给 agent 裸的 Playwright 权限?裸的浏览器控制会让 agent 每次运行都重新摸索同一个网站布局。Webcmd 在实时浏览器控制之上加了一层站点结构记忆,跳过重复探索,最多能把浏览器 agent 的 token 开销降低 90%。
Creator
agentrhq
Size
8.6 MB
Stars
2.7K
Age
3mo
Commits · 90 Days