aloilor/lean-coding-agent
7 stars · Last commit 2026-11-29
Lightweight, opt-in agent workflows for Codex and Claude Code, built on dedicated subagents and your project's own conventions.
README preview
# Lean Coding Agent <img src="docs/assets/demo.gif" width="860" alt="Demo: a feature workflow run. The planner drafts a plan, you approve it, the implementer works test-first, the reviewer blocks once, and the loop ends in APPROVE."> [](https://github.com/aloilor/lean-coding-agent/actions/workflows/ci.yml) [](https://github.com/aloilor/lean-coding-agent/releases) [](LICENSE) [](#quick-start) Popular coding agent frameworks can be slow and token-hungry: huge ceremony fills the context on every request, and even a one-line fix goes through a full plan-and-review loop. In my experience, newer models don't need that much handholding and that many guardrails. Without a framework, agents tend to skip planning entirely. Lean Coding Agent gives Codex and Claude Code a **plan → test-first implementation → independent review** loop that runs only when you ask for it, with each step handled by a separate subagent in its own context. Predefined workflows set the loop and its stop conditions without scripting every move, each subagent loads a skill of at most 145 lines that you can also run on its own, and [`define-conventions`](skills/define-conventions/SKILL.md) captures your project's rules. Rules follow progressive disclosure: instead of piling everything into `AGENTS.md`, agents load each convention file by topic only when a task needs it. The always-loaded baseline stays under 800 words, and each workflow under 450. - **Workflows.** The feature, bug-fix, and refactor workflows follow a simple loop: you approve a plan, then an implementer and a reviewer iterate until the reviewer approves. Implementation follows test-driven development, one behavior at a time. If the same problem survives three fix attempts, the loop stops and reports back. Planning and code review can also run on their own. - **Subagents.** Each step runs in a subagent with its own context: planner, bug diagnostician, implementer, or code reviewer. An explorer looks up facts when needed. Each subagent is a thin definition that loads its [skill](#plan-diagnose-implement-and-review), so you can also run any step yourself without a workflow. - **Project conventions.** The [`define-conventions`](skills/define-conventions/SKILL.md) skill scans your repository, asks about rules the code doesn't show, and writes them to `docs/conventions/` as separate files for coding standards, testing, change process, and deployment. Agents load only the files the current task needs, so a testing change reads `TESTING.md` and nothing about deployments. It's the main way to give the workflows your project's context. Normal requests are handled directly. To use a workflow, start it by name. I wanted short instructions, few additional tools to learn, and no mandatory workflow for small requests. For larger changes, I wanted a simple loop: plan, implement, review. I explain the design choices in [I built lean coding agent workflows because popular frameworks are bloated token sinks](https://aloilor.github.io/lean-coding-agent/). ## Why not just…?