教程|goose(Rust)入门:Rust 写的可执行 AI Agent

本教程演示如何用 goose(Rust 写的 AI Agent)做开发工作。

goose vs Claude Code / Cursor

第 1 步:安装

brew install goose
# 或
curl -fsSL https://github.com/aaif-goose/goose/releases/latest/download/goose.sh | sh

第 2 步:配置 LLM

goose init
# API endpoint: http://localhost:11434/v1
# Model: llama3.3

第 3 步:使用

goose "install postgres 16"
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"
goose "review this PR for security issues"

第 4 步:加工具

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

为什么用 Rust

Leave a Comment