Skip to content

swarmclawai/context-diet

Repository files navigation

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.

npm version License: MIT CI

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 presets

Presets

  • test-log
  • browser-snapshot
  • git-diff
  • npm-audit
  • stack-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.

About

Deterministic output compressor for agent context

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors