Goose 起源于 Block 内部的编码 Agent,2025 年末搬到 Linux 基金会的 Agentic AI Foundation(AAIF)。Apache-2.0,Rust 写成,分发成单一静态二进制,不带 Node 运行时、不带 Python 运行时、不带 Electron。最新稳定版 v1.42.0(2026-07-13)。Claude Code 是给单兵高手,Cline 是给 VS Code 粉,Goose 是不为自己是个自主多工具而道歉的 agent——浏览器自动化、文件操作、shell、扩展系统全在出厂包里。
Ubuntu 22.04 / 24.04 安装
Goose 官方安装就是一行 shell 脚本——没有 apt、没有 npm、没有 Python:
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash这会把一个自包含的 goose 二进制放进 ~/.local/bin,自动注册到 PATH。验证:
goose --version同一发布页上也有 .deb 桌面版,想要 GUI:
curl -fsSL -o /tmp/goose.deb https://github.com/aaif-goose/goose/releases/download/stable/goose-desktop_1.42.0_amd64.deb
sudo apt install -y /tmp/goose.deb桌面是可选的。90% 的价值在 CLI。
Provider 设置
Goose BYOK。跑一次 goose configure,选:
- Anthropic —— Claude Sonnet / Haiku
- OpenAI —— GPT-4o、o3 等
- Google Gemini
- Ollama —— 本地推理,不需要 API key
- OpenAI-compatible —— 任何其他端点
- Tetrate —— AAIF 赞助的开源权重模型网关
key 放 ~/.config/goose/config.yaml(不是你 shell 的环境)。Goose 也支持多个命名 profile,可以每个 session 切。
三个习惯用法
1. Recipes(菜谱)
Reusable Markdown 提示词。在 ~/.config/goose/recipes/<name>.md 放一个,就能在 CLI 或桌面里斜杠调用。一个 daily-standup recipe 可能就是三个问题;一个 pr-review recipe 可能调 linter 再汇总结果。
2. Extensions(扩展)
Goose 的 extension 就是 MCP server(标准)。goose extension add <git-or-https-url> 装一个。目录里有 filesystem、GitHub、Postgres、Slack、浏览器自动化。每个 extension 给 agent 工具箱加工具,不动核心。
3. Sessions and Forking
Session 是带全部 context 的运行中会话。goose session --fork <id> 从一个现有 session 起一条新分支带完整 context——一条探索性线程碰到好东西想干净地追下去时特别有用。
第一天工作流
cd ~/work/my-app
goose进 REPL。三条要学会的命令:
goose recipe list—— 看可用 recipesgoose extension list—— 看启用的 extensionsgoose session list—— 看历史 session
一个配 recipe 的好用模板:
---
description: review the diff against main and produce a structured report
---
1. Read the working tree, run `git diff main`.
2. Identify three severity buckets: correctness, security, style.
3. For each finding, name the file, line, and a one-sentence fix.
4. Output as a Markdown checklist.把这存到 ~/.config/goose/recipes/code-review.md,然后 goose recipe run code-review 哪儿都能跑。
「不需要运行时」这个角度
静态二进制分发比听上去更值钱。在没有 Node / Python / Electron 的 Ubuntu VM 上,scp 一下 goose 二进制就能跑。以前的 AI 工具要 200MB node_modules/ 加 Python venv,现在 80MB x86_64 就完事。对比 Claude Code 的 npm 装、OpenCode 的 npm 装、或者 Hermes 的 Python 要求。
什么时候 Goose 不合适
- 你是 IDE 优先。Goose 是终端 + 可选桌面,不是编辑器扩展。要 VS Code,用 Cline。
- 你想要严格的 plan-first UX。Goose 有 plan 但默认是 Act。要 plan-first,用 Claude Code。
- 你想要跟维护者一对一的联系。AAIF 之后 Goose 是基金会治理模式,不再是单一厂商。有些用户怀念 Block 时代的直接对接;现在不一样了。
Goose 在 2026 年的真实卖点是「不需要运行时的 agent」。如果 Rust 二进制 + AAIF 治理 + Apache-2.0 这套组合是你要的,Goose 是今天 Linux 上最干净的选。
评论