claudeers.
// Claude Plugins

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.
// or install directly (claude-plugin)

⚠ Unverified / not recently updated — review before pasting a run-this config.

/plugin marketplace add quisbaum-prog/occam
/plugin install occam@quisbaum-prog/occam
// or clone
git clone https://github.com/quisbaum-prog/occam

// compatibility

Platformscli, api, web, mobile
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

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.

Total tokens in the Sol 6.1 max Fast black-hole pilot: Base 1,024,912, Occam 939,959, Ponytail 962,972
SetupTotal tokensChange vs. BaseGeneration timeBrowser checks
Base1,024,912—11.56 minPass
Occam full939,959−8.3%8.82 minPass
Ponytail 4.10 full962,972−6.0%8.29 minPass

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.

ModelEffortOccam vs. no pluginPonytail vs. no pluginTests passed / 18
Base · Occam · Ponytail
Opus 5.5max−51%−26%16 · 18 · 18
Sonnet 5.5max−55%−9% ¹16 · 17 · 17
Opus 5.5medium−11%+11%17 · 18 · 18
Sonnet 5.5medium−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 Claude task cost changes with 95% confidence intervals: Occam saves 51% on Opus max and 55% on Sonnet max; smaller effects at medium and on Haiku

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

CommandEffect
/occam:occam fullAll rules; default
/occam:occam liteWork lean and talk less; build as usual
/occam:occam offDisable Occam for this session
/occam:audit 7Review 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.

3 views
★ 12 stars
unclaimed
updated 5 days ago

// embed badge

occam on Claudeers
[![Claudeers](https://claudeers.com/api/badge/occam.svg)](https://claudeers.com/occam)

// retro hit counter

occam hit counter
[![Hits](https://claudeers.com/api/counter/occam.svg)](https://claudeers.com/occam)

// reviews

// guestbook

0/500

// related in Claude Plugins

🔓

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

// pluginsmultica-ai/★ 215,548[ claude ]
🔓

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…

// pluginsanthropics/⟨Python⟩★ 147,969[ claude ]
🔓

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

// pluginsHKUDS/⟨Python⟩★ 50,756◷ Apache-2.0[ claude ]
🔓

financial-services — a Claude ecosystem project on GitHub.

// pluginsanthropics/⟨Python⟩★ 37,359◷ Apache-2.0[ claude ]
→ see how occam connects across the ecosystem