Deterministic output compressor for AI agent context. Context Diet shrinks noisy logs and diffs without an LLM dependency, while preserving raw output on disk.
npx @swarmclawai/context-diet@latest run -- pnpm test
git diff | npx @swarmclawai/context-diet@latest filter git-diff
npx @swarmclawai/context-diet@latest presetstest-logbrowser-snapshotgit-diffnpm-auditstack-trace
| Command | Purpose |
|---|---|
context-diet run -- <command...> |
Capture raw output and print a compact summary |
context-diet filter <preset> |
Filter stdin with a deterministic preset |
context-diet presets |
List available presets |
context-diet mcp |
Expose context_diet_filter over stdio JSON-RPC |
context-diet help-agents |
Print the machine-readable command catalog |
Every data-returning command supports --json.