开源项目|goose(Rust):开源可扩展 AI 代理,超越代码建议

今日 GitHub Trending 第九名:aaif-goose/goose(+322 stars today,Rust)。这是一个开箱即用的 AI 代理工具,不只是建议,能直接动手

goose vs Claude Code / Cursor

  • Claude Code:TUI 体验好,适合复杂多文件任务
  • Cursor:IDE 集成好,适合日常编码
  • gooseCLI 体验,Rust 实现高性能,能 install 软件、执行命令、改代码、跑测试,不用离开终端

goose 能做什么

  • 安装依赖goose 「install postgres 16 on this machine」
  • 部署服务goose 「deploy this Node app to a free-tier VPS」
  • 改代码goose 「add OAuth2 login to this Flask app」
  • 跑测试goose 「run all tests and fix the 3 that fail」
  • Code reviewgoose 「review this PR for security issues」

为什么用 Rust?

  • 启动快:< 50ms(Python 工具 1-3 秒)
  • 跨平台:macOS / Linux / Windows 原生二进制,无依赖
  • 安全:可以加沙箱(seccomp / namespaces)
  • 性能:跑本地小模型(ggml/ONNX)无压力

扩展方式

goose 插件用 MCP 协议:

# ~/.config/goose/config.yaml
extensions:
  github:
    command: goose-github-mcp
  postgres:
    command: goose-postgres-mcp

适合谁

  • DevOps 工程师:自动化部署、配置管理
  • 独立开发者:单兵作战,goose 就是「副驾驶」
  • 安全研究:审计代码 + 自动跑 fuzz
  • Rust 爱好者:贡献一个工具给社区

GitHub:aaif-goose/goose(+47k stars)

Leave a Comment