Skip to content

Releases: borghei/occam

occam 0.4.0

Choose a tag to compare

@borghei borghei released this 23 Jun 11:56

Input compaction goes cross-agent. occam run works on any agent, and Codex now gets a real hook.

New

  • occam run <cmd> runs a command, compacts its output, and keeps its exit code. The cross-agent input lever, and it fixes the exit-code-through-a-pipe problem occam compact can't. Failures pass through whole.
  • occam init codex hard-wires the input side: a .codex/hooks.json PreToolUse hook rewrites noisy commands to occam run (Codex is the one non-Claude host whose hook can rewrite a command). Idempotent merge, never clobbers an existing config. Trust it once with /hooks.

Changed

  • detectFilter recognizes npm / yarn / pnpm / bun test (and npm run test), so npm test output is sieved as a test run, not just truncated.
  • Honest per-agent input story in the README: automatic on Claude (plugin hook) and Codex (PreToolUse), rule-driven occam run everywhere else.

Why not Cursor

Cursor's afterShellExecution is observe-only and beforeShellExecution can't rewrite the command, so it can't auto-compact through a hook. Use occam run there.

Install

npm i -g github:borghei/occam
occam init codex

occam 0.3.0

Choose a tag to compare

@borghei borghei released this 23 Jun 11:31

Both ends of the token loop, measured. Input 83% smaller with 100% of the signal kept, output about half the tokens at the same correctness.

New

  • occam init <agent> turns the right-sizing rule on in one line for claude, codex, cursor, copilot, windsurf, cline and more. Files are written from the single source (RULES.md), so they can't drift.
  • Colorized results chart (assets/results.svg), generated straight from the live benchmark numbers by benchmark/chart.mjs.

Fixed

  • Input compaction now drops check-mark pass lines ( / ). A sieve bug left green Jest/Vitest runs only truncated, not compacted.

Changed

  • benchmark/in.mjs reports tokens removed and signal retained: every failure, warning and summary is asserted still present, so smaller can't hide lossier.
  • Shorter, chart-first README with one-line install per agent, plus honest framing of how occam differs from rtk (input) and ponytail (output).

Install

Claude Code:

/plugin marketplace add borghei/occam
/plugin install occam@occam

Any other agent:

npm i -g github:borghei/occam
occam init cursor