Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Codelander

Same model, smaller bill. Codelander makes a coding agent on a top model (Opus, Sonnet, Fable, or GPT-class models through AGENTS.md) do the same work with far fewer tokens, and never claim "done" without proof.

It does not swap your model for a cheaper one. It cuts what every request carries:

Lever What it removes Needs the model to cooperate?
Lean tool set (--tools) tool definitions re-sent on every turn that coding never uses no
No foreign MCP (--strict-mcp-config) MCP tool schemas from your other configs, re-sent every turn no
Compact output hook long test/build/install/search output, replaced by failures + summary; full log kept on disk no
Quiet wrap hook the same for failing test and build runs, which Claude Code won't let a PostToolUse hook touch no
Read cache hook a second copy of an unchanged file range already in context no
Read gate + project memory whole-file reads of big files; the agent gets a symbol map with line ranges partly
Lean rules narration, directory listings the map answers, self-diffs, long reports, extra turns yes
Guard + proof gate test tampering, fake greens, unverified "done" enforced

Measured (Claude Code, 0.7.0 replay)

Real Claude Code 2.1.332, real hooks, real tool output, the bundled 9 tasks; the model is a fixed script, so it is identical in every arm (see bench/RESULTS.md):

  • 57% cheaper with prompt caching, 70% cheaper without, all hidden tests passing in every arm (59/59, reference fix applied byte for byte).
  • Large-context task: 72% cheaper with caching, 80% without ($1.09 → $0.22); context at the last turn 37.8k → 7.8k tokens.
  • 32% cheaper with no change in model behaviour at all (same trajectory, lean harness only).

Savings grow with session length, repo size and how many MCP servers and skills your setup loads; they shrink when the model thinks a lot per turn (43–63% across 3,000–0 reasoning tokens per turn). Live-model numbers need your API key: python3 bench/run.py --same-model --model claude-opus-5-5.

OpenCode and free models (0.8.0)

./install.sh opencode adds a plugin that makes a fast or free model (GLM-5.3 Flash, opencode/glm-5.3-flash-free) work with senior discipline: contract checklist before editing, compacted output (failing runs included), read cache, a local syntax check after every edit, and a proof gate that sends the agent back when it stops with unverified edits (at most 3 times; codelander oc does it headless). It cannot make a small model as smart as Opus; it removes the process mistakes small models make. Verified feature by feature in the real OpenCode; quality on a live free model is not measured yet: python3 bench/opencode_bench.py live. See docs/opencode.md.

Install

git clone https://github.com/burkiuze/codelander && cd codelander
./install.sh claude      # Claude Code plugin: rules, memory, compact output, read cache, guard, proof gate
./install.sh cli         # the `codelander` command
codelander lean --model claude-opus-5-5     # same model, lean profile (any Claude model ID)

GPT / Codex and other AGENTS.md agents: ./install.sh codex (or agents [DIR], cursor [DIR]). These agents get the rules and the codelander q -- <cmd> quiet runner and codelander mem symbol reader; Claude Code hooks do not run there, so the no-cooperation levers apply only to Claude Code.

Switches

codelander status shows every power. Turn one off with codelander off <power> or its env var: CODELANDER_COMPACT=off, CODELANDER_READ_CACHE=off, CODELANDER_READ_GATE=off, CODELANDER_MEMORY=off, CODELANDER_GUARD=off, CODELANDER_GATE=off. Lean launcher: CODELANDER_LEAN_TOOLS=default keeps Claude Code's full tool set, CODELANDER_LEAN_MCP=keep keeps your MCP servers. A .codelander-off file disables Codelander in a project.

Docs

docs/lean.md (same-model profile) · docs/opencode.md (OpenCode, free models) · docs/enforcement.md (guard, proof gate) · docs/memory.md · bench/README.md · CHANGELOG.md

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages