{"id":50079724,"url":"https://github.com/rexleimo/harness-cli","last_synced_at":"2026-06-09T09:00:46.802Z","repository":{"id":341418648,"uuid":"1169747154","full_name":"rexleimo/harness-cli","owner":"rexleimo","description":"Local-first AI agent bootstrap: Playwright Browser MCP + ContextDB for Codex CLI, Claude     Code, Gemini CLI, and OpenCode.","archived":false,"fork":false,"pushed_at":"2026-06-01T06:05:28.000Z","size":12938,"stargazers_count":42,"open_issues_count":16,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T07:21:48.798Z","etag":null,"topics":["ai-agent","automation","browser-automation","claude-code","cli","codex-cli","contextdb","gemini-cli","local-first","mcp","opencode","playwright","typescript"],"latest_commit_sha":null,"homepage":"https://cli.rexai.top/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rexleimo.png","metadata":{"files":{"readme":"README-zh.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-01T06:24:09.000Z","updated_at":"2026-06-01T06:05:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rexleimo/harness-cli","commit_stats":null,"previous_names":["rexleimo/rex-ai-boot","rexleimo/rex-cli","rexleimo/harness-cli"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/rexleimo/harness-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexleimo%2Fharness-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexleimo%2Fharness-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexleimo%2Fharness-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexleimo%2Fharness-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rexleimo","download_url":"https://codeload.github.com/rexleimo/harness-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexleimo%2Fharness-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34098952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","automation","browser-automation","claude-code","cli","codex-cli","contextdb","gemini-cli","local-first","mcp","opencode","playwright","typescript"],"created_at":"2026-05-22T12:01:22.794Z","updated_at":"2026-06-09T09:00:46.796Z","avatar_url":"https://github.com/rexleimo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Harness CLI (AIOS)\n\n\u003e 给 `codex` / `claude` / `gemini` / `opencode` / `antigravity` / `crush` 加上记忆、协作和验证能力的本地 Agent 工作流层。\n\n[文档站](https://cli.rexai.top) | [快速开始](https://cli.rexai.top/zh/getting-started/) | [官方案例库](https://cli.rexai.top/zh/case-library/) | [GitHub](https://github.com/rexleimo/harness-cli)\n\n## 安装\n\nmacOS / Linux:\n\n```bash\ncurl -fsSL https://github.com/rexleimo/harness-cli/releases/latest/download/aios-install.sh | bash\nsource ~/.zshrc\naios\n```\n\nWindows PowerShell:\n\n```powershell\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; irm https://github.com/rexleimo/harness-cli/releases/latest/download/aios-install.ps1 | iex\n. $PROFILE\naios\n```\n\n启动后选择 `Setup`，运行 `Doctor`，即可开始使用。\n\n## 核心能力\n\n| 能力 | 说明 | 命令 |\n|------|------|------|\n| **ContextDB** | 跨会话项目记忆，事件/检查点/上下文包持久化 | `codex` / `claude` / `gemini` / `opencode` / `antigravity` / `crush` 自动加载 |\n| **Memo Storage** | 适合 Git 共享的项目 memo；默认 append-only file 存储，也可切到 split 文件存储 | `aios memo add \"note\"` / `aios memo storage status` |\n| **原生路由快捷命令** | 在客户端内直接触发 single/subagent/team/harness 通道 | Claude/Gemini/OpenCode: `/team \u003c任务\u003e`；Codex: `/prompts:team \u003c任务\u003e` |\n| **原生 Token 压缩** | 自研输入/输出 token 压缩，参考 RTK/Caveman 思路，但不安装竞品工具 | `context:pack --token-budget 1200 --token-strategy balanced` |\n| **Model Router** | Agent Team 智能多模型调度 — 按能力、成本、成功率匹配最优模型 | `node scripts/aios.mjs model-router route --task \"...\"` |\n| **Agent Team** | 多 Agent 并行协作，HUD 可视化追踪 | `aios team 3:codex \"任务描述\"` |\n| **Solo Harness** | 单 Agent 过夜长任务，可恢复、有运行日志 | `aios harness run --objective \"目标\" --worktree` |\n| **Perception** | 内容结果追踪 + 统计洞察 + 感知注入 | `aios perception record` / `insights` / `summary` |\n| **Browser MCP** | 隐身浏览器自动化，CDP 协议 | `aios internal browser doctor` |\n| **Superpowers** | 可复用工作流技能（brainstorm/plan/debug/verify） | TUI 中选择 |\n| **Privacy Guard** | 敏感文件读取前自动脱敏 | `aios privacy status` |\n\n## 快速体验\n\n```bash\n# 启动 TUI\naios\n\n# 保存适合 Git 共享的项目 memo\naios memo add \"记住 auth 测试要保持严格\"\naios memo storage status\n\n# 在原生客户端内路由任务（setup 后）\n# Claude/Gemini/OpenCode: /team \u003c任务\u003e\n# Codex: /prompts:team \u003c任务\u003e\n\n# 多 Agent 协作\naios team 3:codex \"重构登录模块并运行测试\"\n\n# 智能模型路由\nnode scripts/aios.mjs model-router route --task \"审查 auth.js 安全漏洞\"\n\n# 自研 token 压缩 ContextDB 包\ncd mcp-server \u0026\u0026 npm run contextdb -- context:pack --session \u003csession_id\u003e --token-budget 1200 --token-strategy balanced\n\n# 单 Agent 过夜任务\naios harness run --objective \"完成明天的交接文档\" --worktree\n\n# 内容结果追踪（小红书等场景）\naios perception record --content-id note_001 --platform xiaohongshu --content-type note --title \"测试\" --metrics '{\"likes\":100}'\n\n# 查看任务状态\naios team status --provider codex --watch\n```\n\n## 工作原理\n\n```text\n用户 → codex / claude / gemini / opencode / antigravity / crush\n     → zsh wrapper（透明包装）\n     → ctx-agent.mjs（ContextDB 集成）\n        → contextdb CLI（记忆持久化）\n        → 启动原生 CLI（附带上下文包）\n     → browser MCP（可选浏览器自动化）\n```\n\n安装后，直接使用 `codex`、`claude`、`gemini`、`opencode`、`antigravity` 或 `crush` 命令即可，Harness CLI 自动在后台加载项目记忆，并在客户端支持时安装路由快捷命令。\n\n## 文档\n\n- [快速开始](https://cli.rexai.top/zh/getting-started/) — 安装、配置、首次运行\n- [Model Router](https://cli.rexai.top/zh/model-router/) — Agent Team 多模型智能调度\n- [ContextDB](https://cli.rexai.top/zh/contextdb/) — 项目记忆系统详解\n- [Agent Team](https://cli.rexai.top/zh/team-ops/) — 多 Agent 协作指南\n- [Solo Harness](https://cli.rexai.top/zh/solo-harness/) — 过夜长任务指南\n- [Perception](https://cli.rexai.top/zh/perception/) — 内容结果追踪与洞察\n- [架构](https://cli.rexai.top/zh/architecture/) — 系统架构说明\n- [故障排查](https://cli.rexai.top/zh/troubleshooting/) — 常见问题解决\n- [按场景找命令](https://cli.rexai.top/zh/use-cases/) — CLI 工作流速查\n\n## 环境要求\n\n- Git\n- Node.js 24 LTS + npm\n- Windows: PowerShell 5.x 或 7\n\n## 开发\n\n```bash\ngit clone https://github.com/rexleimo/harness-cli.git\ncd harness-cli\n```\n\n验证:\n\n```bash\ncd mcp-server\nnpm test\nnpm run typecheck\nnpm run build\n```\n\n## 许可\n\n详见 [CHANGELOG.md](CHANGELOG.md) 版本历史。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexleimo%2Fharness-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexleimo%2Fharness-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexleimo%2Fharness-cli/lists"}