Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
# VCS
.git/*
!.git/HEAD
!.git/packed-refs
!.git/refs/
!.git/refs/**
.github
.github/*
!.github/plugin/
!.github/plugin/**
.gitignore
# Python artifacts
__pycache__
*.pyc
*.pyo
*.egg-info
dist/
build/
# Rust artifacts. The Dockerfile runs its own `cargo build` inside the
# builder stage, so the host's target/ is never needed — and after a
# local `cargo build` it is 100GB+, which the daemon dutifully copies
# on every `docker build`. CI never noticed because a fresh checkout
# has no target/; it only ever bites local builds.
target/
# Dev/test tooling
.pytest_cache
.coverage
.mypy_cache
.ruff_cache
.pre-commit-config.yaml
.venv
venv
# Tests & docs (not needed in image)
tests/
docs/
mkdocs.yml
CHANGELOG.md
LICENSE
NOTICE
# JS/TS artifacts (dashboard, SDK — not part of proxy image)
apps/
sdk/
!sdk/
!sdk/typescript/
!sdk/typescript/**
plugins/
!plugins/
!plugins/openclaw/
!plugins/openclaw/**
!plugins/headroom-agent-hooks/
!plugins/headroom-agent-hooks/**
node_modules/
*.tgz
# Secrets & local config
.env
.env.*
*.log
# IDE
.vscode
.idea
*.swp
# Docker
Dockerfile
docker-compose*.yml
.dockerignore
# Misc
.pi-lens/
.superpowers/
examples/
node-compile-cache/
!e2e/
!e2e/init/
!e2e/init/**
!.claude-plugin/
!.claude-plugin/**