Repository navigation
Getting Started
Install LEAN into a project, check it works, and run your first change, feature or product.
-
Node >= 20.19 (
node --version). - An AI coding agent. Full support: Claude Code, Codex, OpenCode, Antigravity CLI (AGY). The other 44 targets run the skills on one model without blind review. See Supported Tools.
- git (recommended). Claims, the lane-trespass check, local commits and the pre-commit hook need it.
-
Network on the first run:
npxfetches the installer's five dependencies from the npm registry.
cd /path/to/your-project
npx lean-method installTo try an unreleased change from a clone instead, pack it and run the installer from the tarball:
git clone https://github.com/giuliosmedile/lean-framework.git
cd lean-framework/lean && npm pack # writes lean-method-0.10.2.tgz (the version in package.json)
LEAN_PKG="$PWD/lean-method-0.10.2.tgz" # absolute path: you run npx from another folder
cd /path/to/your-project
npx --package="$LEAN_PKG" lean-method installThe commands below use npx lean-method …. With a tarball, write npx --package="$LEAN_PKG" lean-method … instead.
Which directory does it install into? The folder you run it from (--directory <path> overrides). Not the clone, not the git root. Run it in the project root you want. Running the checkout's node tools/installer/lean-cli.js install from inside lean/ would install into lean/, so pass --directory there.
Preview first, if you like: npx lean-method scout is read-only. It lists the agents and models found on this machine and suggests worker tiers.
In this order:
-
Update or quick update, only if LEAN is already installed here.
-
Which tools to install for. Detected agents are pre-selected. Pick "Antigravity CLI (AGY)", not "Google Antigravity".
-
Seven questions:
Question Default Flag What the skills call you system user --user-nameProject name folder name --set core.project_name=…Language for talking with you English --communication-languageLanguage for documents English --document-output-languageSource documents folder (LEAN reads, never writes) docs--input-folderPlans folder plan--output-folderStyle: kissorstandardkiss--styleThe two folders must differ.
-
Model tiers per tool that can give a subagent its own model: it shows the suggested mid and low models and lets you pick or type one. Cheaper workers, expensive judge: Orchestrator and Cost Tiers.
-
Reviewers on the session model? Default no (mid tier). Yes catches more bugs and costs more.
-
Hooks: the frozen-intent guard (Claude Code, Codex; default yes) and a git pre-commit check (default no). See Frozen Intent and Guards.
Claude Code only; other tools differ in folder names (Supported Tools):
your-project/
.claude/
skills/lean-{intent,architecture,plan,build,review,change,kit,help}/
agents/lean-{scout,research,implement,test,review,check}.md each carries its model
settings.json guard hook merged next to your own settings
_lean/
config.toml team answers (commit)
config.user.toml your answers + model tiers (gitignored)
custom/ your overrides; the installer never touches them
bin/lean.js plan tooling, runs with plain Node
hooks/frozen-guard.js
_config/ manifests with a sha256 per installed file
docs/ empty: drop your source documents here
plan/ empty: LEAN writes specs and stories here
Commit it all except what _lean/.gitignore excludes. Codex, OpenCode and AGY share .agents/skills/. Codex only runs the hook after you trust it once with /hooks. Layers and keys: Configuration.
cd /path/to/your-project
npx lean-method install --yes \
--tools claude-code \
--user-name ada --style kiss \
--set core.project_name=notes-app \
--set orchestration.tiers.claude-code.mid=sonnet \
--set orchestration.tiers.claude-code.low=haiku \
--git-hook-
--yestakes every default. Without--toolsit uses the agentsscoutdetects, and fails if none. - No terminal (CI) also means non-interactive.
- Valid values:
install --list-toolsandinstall --list-options. - Also:
--no-scout,--no-guard-hook,--action update|quick-update.
npx lean-method status
node _lean/bin/lean.js check # PASS — plan: 0 error(s), 0 warning(s)
node _lean/bin/lean.js next # nothing ready — plan the next epic (lean-plan) or unblock a storystatus prints version, tools, style, folders, role=model pairs and any installed files you edited:
LEAN 0.10.2 — installed 2026-11-13T…, updated 2026-11-13T…
tools: claude-code skills: 9 role agents: 6
style: kiss input: {project-root}/docs output: {project-root}/plan primary: claude-code
claude-code: scout=haiku · research=sonnet · implement=sonnet · test=sonnet · review=sonnet · check=sonnet
no installed files edited
Open your agent in the project folder (restart it if it was running) so it loads the new skills.
Name the skill in your message. Claude Code and OpenCode also take it as a slash command (/lean-build …).
Small change or bug fix: lean-build alone. No plan needed.
Use lean-build: the signup form accepts "a@b" as an email. Reject addresses without a dot in the domain.
Commit or stash first: a dirty tree makes it stop and ask. It writes plan/adhoc/<slug>.md, implements in a fresh worker, reviews, commits locally. It never pushes.
A feature: intent, plan, build.
Use lean-intent. I want CSV export in my notes app. The support digest is in docs/.
Use lean-plan to create the epics.
Use lean-build: next story.
Repeat the last line per story. lean-intent asks one batch of questions; answer in the shape 1a 2b. lean-plan asks how many people or agents work on the epic at once. When the last story is done: Use lean-change retro.
A product, or parts built separately: add lean-architecture after the SPEC.
Use lean-intent. <your idea>. Briefs and notes are in docs/.
Use lean-architecture.
Use lean-plan to create the epics.
Use lean-build: next story.
Two or more people on one epic need this path: lanes come from the module table. See Parallel Teams.
Lost? Use lean-help: what next? reads your plan and recommends the next step.
Re-run install: update re-asks with your answers as defaults, quick-update keeps them. uninstall keeps _lean/custom/ and your plans. Details: CLI Installer.
- Walkthrough Example: the feature path end to end, with the files each skill writes.
- The LEAN Process: how the nine skills hand work to each other.
- CLI Installer: every installer command and flag.
- Supported Tools: per-tool folders, role agents and hooks.
-
Configuration: tiers, overrides and
updatevsquick-update.
LEAN 0.10.2 · Repository