Full faithful port of the headroom library from chopratejas/headroom: - adaptive_sizer: Kneedle saturation detection for optimal compression budgets - signals: Keyword-based line importance detection (tiered, keyword_detector, line_importance) - transforms: - content_detector: Regex-based content type detection (JSON, logs, diffs, search, code, HTML) - detection: Content detection chain (regex detector + unidiff fallback) - log_compressor: Build/test log compression with format detection & deduplication - search_compressor: Grep/ripgrep output compression with per-file capping - diff_compressor: Unified diff compression with hunks/changes selection - tag_protector: HTML tag protection/restoration during compression - anchor_selector: JSON array anchor selection for structured data compression - safety: Tool call pair atomicity for LLM conversations - unidiff_detector: Parser-based unified diff detection - supporting: CCR (compress-cache-retrieve) store, tokenizer stubs, SmartCrusher stub All 209 headroom tests pass No regressions in existing goose tests Passes cargo fmt and clippy checks Ready for integration with goose compression pipeline
🦆 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! 🚀