The upstream pctx_code_mode tool descriptions are explicit attractors
toward 'bundle multiple sub-tool calls and return one fat object'. That
intent is fine for round-trip count but creates context bloat when any
bundled field carries a large body (file dumps, build output, edit
echoes).
Add a goose-side 'CONTEXT HYGIENE' addendum appended to each of the
three execute_typescript descriptions (catalog, filesystem, sidecar)
that:
- tells the model to bundle only when each field is small (~5 KB),
and to call large-output tools on their own,
- tells it to return only the fields it actually needs,
- tells it to use line/limit/head/tail/grep instead of cat <big-file>.
Upstream descriptions are kept verbatim and the goose advice is
appended, so callers reading upstream guidance get the upstream contract
plus the goose context-management override.
The addendum is plain prose with no schema changes; no tool semantics
change. One unit test covers the prefix-preserving combination.
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! 🚀