@swarmclawai/context-diet
v0.1.0
Published
Deterministic output compressor for test logs, browser snapshots, git diffs, npm audits, and stack traces.
Maintainers
Readme
Context Diet
Deterministic output compressor for AI agent context. Context Diet shrinks noisy logs and diffs without an LLM dependency, while preserving raw output on disk.
30-second demo
npx @swarmclawai/context-diet@latest run -- pnpm test
git diff | npx @swarmclawai/context-diet@latest filter git-diff
npx @swarmclawai/context-diet@latest presetsPresets
test-logbrowser-snapshotgit-diffnpm-auditstack-trace
Commands
| 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.
