
occam
Occam's razor for Claude Code and Codex: a 30-line rule set. Benchmarks vs base: 51-55% lower estimated task cost on Opus/Sonnet 5.5 max with more tests pass…
Install with your AI
Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.
Install and set up occam (claude-plugin project) into my current project. Found on https://claudeers.com/occam Repo: https://github.com/quisbaum-prog/occam Homepage/docs: — Detected install method: claude-plugin → /plugin install occam@quisbaum-prog/occam Category: plugins. Platforms: cli, api, web, mobile. Read the repo's README for exact setup and env vars, then install it and wire it into my project. Claudeers Health Verdict: unknown; community-verified: false. Confirm the source before running anything.
⚠ Unverified / not recently updated — review before pasting a run-this config.
/plugin marketplace add quisbaum-prog/occam /plugin install occam@quisbaum-prog/occam
git clone https://github.com/quisbaum-prog/occam
// compatibility
| Platforms | cli, api, web, mobile |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | MIT |
| Pricing | open-source |
| Language | Python |
Occam
Deutsch · Video comparison · Install · Reproduce
Build less. Work lean. Talk less.
Occam is a 30-line rule set for coding agents: prefer existing code and standard tools, read only what matters, and keep output concise. It ships as a Claude Code plugin; the rules are also tested in Codex.
Sol 6.1 max, Fast: 8.3% fewer total tokens with Occam on the black-hole task. All three animations pass the browser checks. In the separate Claude coding benchmarks, Occam reduced task cost by 51% on Opus 5.5 max and 55% on Sonnet 5.5 max, while passing at least as many tests.
Black-hole benchmark: Sol 6.1 max
One prompt, three fresh Docker containers. Each setup creates one offline HTML animation with a black shadow, glowing accretion disk, curved light above and below it, visible motion, and Pause/Resume/Restart controls. The model is gpt-6.1-sol, reasoning max, with Fast explicitly requested in every arm.
Base → Occam → Ponytail 4.10, left to right. Ten seconds at 30 fps; the same browser, viewport, software renderer, and animation clock.
https://github.com/user-attachments/assets/e4cbba37-8562-4835-a1bf-18c8d86d133d
Watch/download the original MP4 · Still image at 5 seconds
In the still, Occam's disk forms a broad raised arc above the shadow and a curved band below it. Compare the shape, texture, and motion of all three results in the video.
| Setup | Total tokens | Change vs. Base | Generation time | Browser checks |
|---|---|---|---|---|
| Base | 1,024,912 | — | 11.56 min | Pass |
| Occam full | 939,959 | −8.3% | 8.82 min | Pass |
| Ponytail 4.10 full | 962,972 | −6.0% | 8.29 min | Pass |
Occam uses 84,953 fewer tokens than Base and 2.4% fewer than Ponytail. Original HTML files and full measurements · Prompt, scoring, and reproduction.
How to interpret this: one attempt per setup on one visual task, with no confidence interval. Tokens are input + output; cached input and reasoning are included once. This is a token comparison, not a dollar-cost estimate. Fast is verified in the invocation and model catalog; the CLI does not expose the server's served tier. Visual quality can be compared in the video; an independent visual score is still pending.
Claude coding benchmarks
Five rounds, three models, 18 tasks per setup in each round. Claude loads the actual plugins; hidden tests check the resulting code. Cost changes are geometric means of matched task ratios.
| Model | Effort | Occam vs. no plugin | Ponytail vs. no plugin | Tests passed / 18 Base · Occam · Ponytail |
|---|---|---|---|---|
| Opus 5.5 | max | −51% | −26% | 16 · 18 · 18 |
| Sonnet 5.5 | max | −55% | −9% ¹ | 16 · 17 · 17 |
| Opus 5.5 | medium | −11% | +11% | 17 · 18 · 18 |
| Sonnet 5.5 | medium | −3% ¹ | +26% | 16 · 18 · 18 |
| Haiku 4.5 | — | −2% ¹ | +30% | 10 · 13 · 10 |
¹ The 95% confidence interval includes zero. Small changes are not established savings. Cost here is the list-price estimate reported by Claude Code, including thinking and cache. These tasks differ from the visual Codex pilot.
Cost chart, methods, confidence intervals, and raw data
Detailed results and all raw data. The nine seeded scenarios cover root-cause repair, a code question, a CLI feature, CSV analysis, fixture generation, a procedural texture, path-traversal security, refactoring, and a targeted large-file edit. Every arm receives the same fixtures in an isolated workspace. Verifier reference checks and held-out Opus tasks are documented in the report.
Rebuild the chart without model calls:
python bench/chart.py assets
Install
In Claude Code:
/plugin marketplace add quisbaum-prog/occam
/plugin install occam@occam
If Ponytail is already installed, remove it first with /plugin uninstall ponytail@ponytail so both rule sets do not load into the same session. To try a local clone: claude --plugin-dir ./plugin.
The plugin uses POSIX sh hooks. SessionStart supplies the full rules; SubagentStart supplies a short version. No Node or Python is needed for these hooks. The Codex benchmark passes the frozen full rule text as developer instructions.
For plain chat, use preferences.txt in your preferences, or the chat skill for on-demand use.
Use
| Command | Effect |
|---|---|
/occam:occam full | All rules; default |
/occam:occam lite | Work lean and talk less; build as usual |
/occam:occam off | Disable Occam for this session |
/occam:audit 7 | Review the last seven days of Claude Code token usage |
Set the default for new Claude sessions in ~/.claude/settings.json: "env": {"OCCAM_LEVEL": "lite"} (full, lite, or off). The audit also runs directly: python plugin/tools/audit.py --days 30. It reads local Claude transcripts and reports token costs, repeated context, and large tool outputs.
The rules
The complete text lives in rules.md.
- Build less: prefer what already exists, standard tools, and minimal code; generate repeated structures; fix shared causes.
- Work lean: locate before reading, batch independent calls, keep tool output small, and verify the change.
- Talk less: concise, useful results without routine narration.
- Never cut: understanding, security, accessibility, validation, data-loss handling, or anything explicitly requested.
The benchmarks support savings on these tasks. They do not establish that every model, project, long conversation, or aesthetic result improves. Use the audit and repeated tests to measure your own work.
Reproduce the visual benchmark
With Docker running and Codex signed in:
cd bench/black-hole
python bench.py build
python bench.py run --model gpt-6.1-sol --effort max --service-tier fast --repetitions 1
This starts three independent model runs. Use --dry-run to inspect the plan, or --repetitions 3 for nine runs. Full setup and evaluation guide.
Credits and support
Ponytail by Dietrich Gebert inspired the rule-injection approach and the preference for existing tools. The comparison includes its frozen 4.10 rules.
Occam is free under the MIT license. Sponsor the project to support further benchmark runs.
// faq
What is occam?
Occam's razor for Claude Code and Codex: a 30-line rule set. Benchmarks vs base: 51-55% lower estimated task cost on Opus/Sonnet 5.5 max with more tests passed. 8.3% fewer tokens in a Sol 6.1 max pilot. Raw data, Docker setup and comparison video included.. It is open-source on GitHub.
Is occam free to use?
occam is open-source under the MIT license, so it is free to use.
What category does occam belong to?
occam is listed under plugins in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/occam)
// retro hit counter
[](https://claudeers.com/occam)
// reviews
// guestbook
// related in Claude Plugins
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explainin…
"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
financial-services — a Claude ecosystem project on GitHub.