Releases: borghei/occam
Releases · borghei/occam
Release list
occam 0.4.0
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 problemoccam compactcan't. Failures pass through whole.occam init codexhard-wires the input side: a.codex/hooks.jsonPreToolUsehook rewrites noisy commands tooccam 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
detectFilterrecognizesnpm/yarn/pnpm/bun test(andnpm run test), sonpm testoutput 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 runeverywhere 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
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 forclaude,codex,cursor,copilot,windsurf,clineand 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 bybenchmark/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.mjsreports 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