cyberneticlibrary

Compact terminal output for agents

tokenjuiceskillsetup L10
vincentkoc/tokenjuice
What it does

Compact terminal output deterministically for token-efficient agent workflows across IDE/CLI clients

Best for

Agent workflows where terminal noise (git/pnpm/docker output) consumes tokens without adding signal.

Inputs
  • · Raw command output (git status, pnpm test, docker build, etc.)
  • · Output type (log, json, etc.)
Outputs
  • · Compacted output (rule-driven reducers)
  • · Semantics preserved, size reduced
Requires
  • · tokenjuice CLI
  • · Host client hooks (Claude Code, Cursor, VS Code, Codex, etc.)
Preconditions

tokenjuice installed; host integration configured (~/.claude/settings.json, ~/.cursor/hooks.json, etc.)

Failure modes
  • · Rule does not match output shape → falls back to raw output (no compaction)
  • · Reducer deletes critical error detail → agent cannot diagnose
  • · Host client not recognized → no hook installation performed
Trust signals
  • · 10+ host integrations (Claude Code, Cursor, Codex, GitHub Copilot, VS Code, Gemini, etc.)
  • · Rule-driven reducers kept inspectable as JSON; no black-box compaction
  • · Exit codes preserved; raw output available via --raw/--full flags