GoatCode – 开源终端人工智能代理,支持服务提供商故障切换
GoatCode 是一个单一的 85 MB 二进制文件,可以在您的终端中运行。它整合了 180 多个 LLM 提供商(或通过 OAuth 使用您现有的 Claude/ChatGPT/Gemini/Copilot 订阅),当您的配额在会话中途耗尽时,它会自动重试,并实时执行备用方案——在回合中切换提供商,并说明这一点,完成答案。没有崩溃,没有丢失上下文。
<p>v2.1.10 的新功能:
- 在 Anthropic 上的提示缓存(长会话可节省高达 90% 的费用;节省情况显示在 /cost)
- 每次写入/编辑后的内联统一差异
- /rewind — 将转录 + 文件跳回到任何回合
- 并行子代理(最多 3 个任务调用并发展开)
- /search + goat search — 在每个保存的会话中进行全文搜索
- @file 标签补全,/model sonnet 别名
- 真实上下文计量器(真实 API 令牌与模型窗口)
- 实际有效的 GOAT MODE(旁路):中途切换,提示解析为 YES
- Noir 主题:深色石板 + 黑绿色表面
<p>安装:npm install -g goatcode-cli(或从发布页面获取静态二进制文件)
<p>代码库:https://github.com/Arhan-w/GoatCode
着陆页:https://goatcode.vercel.app
查看原文
GoatCode is a single 85 MB binary that runs in your terminal. It brings 180+ LLM providers (or your existing Claude/ChatGPT/Gemini/Copilot subscriptions via OAuth), and when your quota dies mid-session it automatically retries then walks your fallback chain live — switches provider mid-turn, says so, and finishes the answer. No crash, no lost context.<p>What’s new in v2.1.10:
- Prompt caching on Anthropic (up to 90% cheaper long sessions; savings shown in /cost)
- Inline unified diffs after every write/edit
- /rewind — jump transcript + files back to any turn
- Parallel subagents (up to 3 task calls fan out concurrently)
- /search + goat search — full-text across every saved session
- @file Tab completion, /model sonnet aliases
- True context meter (real API tokens vs model window)
- GOAT MODE (bypass) that actually works: mid-turn switch, prompt resolves YES
- Noir theme: deep slate + black-green surfaces<p>Install: npm install -g goatcode-cli (or grab a static binary from the releases page)<p>Repo: https://github.com/Arhan-w/GoatCode
Landing: https://goatcode.vercel.app