Tool-pair summarization causes stale ghost messages to be injected as Role::User, leading to the agent re-engaging with resolved work, breaking working builds, and trying non-existent CLI flags in long sessions. On models with large context windows (128K+), three other mechanisms already handle token pressure: tool output truncation (50 lines/50KB), large response file redirect (>200K chars), and full compaction at 80% context usage. Prompt caching further reduces the cost of keeping old tool pairs around. Gate summarization to context windows <= 64K, where truncation + compaction alone may not provide enough headroom. This effectively disables it for all modern models while preserving it for small-context models where it may still help. Users can still control via GOOSE_TOOL_PAIR_SUMMARIZATION=true/false. Update integration test mock provider to use a 32K context limit so the test exercises the feature under the new gate. Signed-off-by: Michael Neale <michael.neale@gmail.com>
🦆 goose has moved! This project has moved from
block/gooseto the Agentic AI Foundation (AAIF) at the Linux Foundation. Some links and references are still being updated — please bear with us during the transition.
goose
your native open source AI agent — desktop app, CLI, and API — for code, workflows, and everything in between
goose is a general-purpose AI agent that runs on your machine. Not just for code — use it for research, writing, automation, data analysis, or anything you need to get done.
A native desktop app for macOS, Linux, and Windows. A full CLI for terminal workflows. An API to embed it anywhere. Built in Rust for performance and portability.
goose works with 15+ providers — Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock, and more. Use API keys or your existing Claude, ChatGPT, or Gemini subscriptions via ACP. Connect to 70+ extensions via the Model Context Protocol open standard.
goose is part of the Agentic AI Foundation (AAIF) at the Linux Foundation.
Get started
Download the desktop app for macOS, Linux, and Windows.
Or install the CLI:
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
Quick links
- Quickstart
- Installation
- Tutorials
- Documentation
- Governance
- Custom Distributions — build your own goose distro with preconfigured providers, extensions, and branding
Need help?
a little goose humor 🪿
Why did the developer choose goose as their AI agent?
Because it always helps them "migrate" their code to production! 🚀