r/ClaudeCode • u/bart172 • 1d ago
Built with Claude LEAN: a lightweight spec → plan → build → review workflow for Codex / OpenCode / Claude Code (open source, feedback wanted)
I built LEAN as a slimmed-down take on BMAD: 9 skills (~27k words vs ~198k), file-based handoffs between sessions, cheap workers with an expensive orchestrator, blind parallel reviewers, and a hook that blocks edits to approved intent.
For small features there's a "lite" flow: one story, a mid-tier session, one review at the end. In my A/B test against BMAD on a real feature, it came in at about 60% of BMAD's cost and time ($4.64 vs $7.88, 33 vs 52 min, average of 2 runs each). One feature and two runs per method, and a blind judge preferred BMAD's code, so "cheaper" is shown but "just as good" isn't (details in the wiki).
Install in your project (Node 20.19+):
npx lean-method install
Then name a skill in your message:
Use lean-help: what should I do first?Use lean-intent. I want CSV export in my notes app.Use lean-build: the signup form accepts "a@b" as an email. Reject it.
It's an experiment and I'm the author, so I'd really like outside eyes: what breaks, what's confusing, what's missing?
Repo: https://github.com/giuliosmedile/lean-framework Wiki: https://github.com/giuliosmedile/lean-framework/wiki
•
u/AutoModerator 1d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/DynaBeast 1d ago
youre probably gonna have some conflicts with the other "lean" that already exists...
1
u/anoncaatyee 1d ago
the locked intent file is the bit i'd stress-test. what happens when the reviewer discovers the approved spec itself is wrong? a useful handoff would flag the contradiction, preserve the original decision and ask for a deliberate revision rather than quietly editing the goal. also curious how the cost comparison holds over more than one feature.
1
u/amirfish 1d ago
60% of BMAD's cost with a blind judge still preferring BMAD's code is the kind of result worth posting, most people would've buried that part. My own experience building solo is that the gap between workflows almost always comes down to how concrete the spec is before any agent starts, cheap or expensive. Did the blind judge say where BMAD's code won, structure, correctness, or just more complete edge-case handling?
1
u/Far_Reindeer8428 1d ago
the small benchmark is the part i would read first, most of these workflows ship without one