Lean · Agile · Agentic

The method on one page

Lean Agile, with an opinion about agents.

Lean Agentic Agile is Lean Agile for a team where agents write much of the code. The values stay the same: small batches, visible work, quality built in, fast feedback. What changes is where things are written down and what enforces them, because an agent starts every session knowing only what it can load.

  1. Lean AgileHow work flowsSmall batches, one visible backlog, stop the line on defects, improve continuously.
  2. An opinionated agentic setupWhere everything livesPlans in one shared home (a tracker by default), decisions and rules in the repo, everything else fetched on demand. Gates enforce what prose can only ask.
  3. Speed the team can seeThe resultAgents move fast inside small, reviewable, traceable changes, and anyone can see what is in flight, why, and who closes it.

01 · Why an update

What agents change about Lean Agile

Agents do not break Lean Agile. They move its bottleneck and remove a brake it relied on without saying so.

Writing got cheap. Reading did not.

An agent writes a thousand lines in minutes; a reviewer reads no faster than before. The constraint moves from writing code to reviewing it, and a change too big to read gets skimmed or approved unread.

PillarsTrunk-based developmentPR review & autonomy

Every session starts from zero.

An agent knows only what is written where it loads it. Decisions from last week, the reason a migration is irreversible, what the team already rejected: none of it persists unless it is filed somewhere the agent will read.

PillarsWhere does a fact live?Lean docs & ADRsSessions & handoffs

Private specs break shared visibility.

A spec kept only on one laptop or in private chat is invisible to review and the next session. Shared versioned repo specs are valid; competing or inaccessible copies are the problem.

PillarsIssues to roadmap

The fix is not more documentation. It is less documentation that is structurally hard to ignore, plus gates that do not rely on the agent choosing to comply.

02 · The mapping

Lean Agile, translated for agents

Each Lean Agile idea you already use, what it becomes when agents do much of the building, and the pillars that implement it. The mapping is this page's own framing; the practices it points to are sourced in each pillar.

Lean Agile ideaWith agents, it meansPillars
Small batchesOne issue, one session, one PR. Size the issue against the reviewer as well as the context window, and gate the size of a change (this guide's default warns at 400 changed lines).Issues to roadmapTrunk-based development
Visible work, one backlogSpecs, plans and the roadmap have one canonical, shared and reviewable home. Use agent-ready issues by default, or equivalent versioned repo docs or another authorized system; link rather than duplicate.Issues to roadmap
Built-in quality (stop the line)One validate command runs every gate. Hooks give feedback while the agent works; CI and branch protection refuse what fails, whoever wrote it.Validation gatesHooks, not rulesCI/CD pipelineTest integrity
Standard workSkills turn the conventions (commit, PR, issue) into one-step actions. Same commit standard, same PR template, same review path for humans and agents.SkillsCommit conventions
Eliminate wasteDecide once and record it as an append-only ADR, so nothing is re-argued. Load context on match, not on start, so no session pays for what it does not touch.Lean docs & ADRsWhere does a fact live?Code graphMemory bank
Definition of DoneAgent-complete is not done. The agent moves the work to review; a human or a gate closes it.PR review & autonomyIssues to roadmap
Continuous deliveryOne trunk, short-lived branches, unfinished work behind a flag. A human approves production, and there is a rehearsed way to stop the change and the agent.Trunk-based developmentCI/CD pipelineDeploy approval & kill switches
Respect for peopleBots take the cheap review rounds so people read only what survives. How much an agent may do alone is set by the impact of the change, written down and enforced below the agent.PR review & autonomyPermissions & blast radius
Kaizen (inspect and adapt)Measure attributable follow-up fixes in comparable actor cohorts, alongside review effort and delivery outcomes. Humans decide autonomy from evidence; a scheduled check detects setup drift.Metrics & evalsMeta framework & drift

03 · The core opinion

Where everything lives

Give each kind of fact one canonical home, chosen for visibility, review and retrieval cost. The tracker/repo split below is a default, not a ban on shared versioned repo specs.

The tracker

What we are building, and why next

  • The roadmap, projects and milestones
  • Issues: PRD, FRD, NFRD, spec or bug, each one an issue
  • Acceptance criteria and out of scope
  • The agent's plan, approved before any code
  • Status, assignee, review

One shared place both humans and agents read and write, visible across teams and kept as history. An agent starts with "implement #123" and reads it through the tracker's CLI or MCP.

PillarsIssues to roadmap
On demand

Everything else, fetched when asked

  • Memory bank: dated, sourced facts that have no file
  • Code graph: who calls what, without reading whole files
  • Library docs for the installed version
  • Git log, blame and each PR's description

Paid per question instead of every session. Facts that recur get promoted into a real home.

PillarsMemory bankCode graphVersioned docsCommit conventions

What does not go where

  • A private or competing copy of a PRD, spec or roadmapOne shared canonical home, linked from the task Issues to roadmap
  • A ticket ID or change history in a code commentThe commit footer and the PR Clean code & comments
  • A rule that must always hold, written only as proseA gate or a hook Hooks, not rules
  • Plans, background or library docs in AGENTS.mdThe tracker, an ADR, versioned docs Steering docs
  • A stack skill that restates a library's docsDocs fetched for the installed version Versioned docs
  • A decision that lives in someone's headAn append-only ADR Lean docs & ADRs

Not sure? Ask three questions.

  1. Permanent or temporary?
  2. Enforced or advised?
  3. Global, or scoped to a path?

The answers pick the home, and the home decides what the fact costs to load. Where does a fact live?

Three questions about any piece of code

What is in there?
The code and its lean comments.
What decision took us there?
The issue and the ADRs.
How did it evolve?
The git log and the PRs.

The ticket number in the commit footer is what joins the second to the third. Commit conventions

04 · The value stream

The flow of one change

Every change takes the same path, whoever or whatever writes it. Humans decide at the points where judgement matters; agents do the building; gates hold the line in between.

  • Human decides
  • Agent works
  • Gate enforces
  1. 01

    Shape Human decides

    Issues first, grouped upward into milestone, project and roadmap. Each issue is agent-ready: one outcome, mechanically checkable criteria, out of scope, expected size, governing ADRs.

    PillarsIssues to roadmap
  2. 02

    Plan on the issue, then stop Agent works

    Files touched, interfaces changed, tests named against the criteria, what is deliberately not done. The file list is the size estimate: split now, before any code exists. A human approves.

    PillarsIssues to roadmap
  3. 03

    Build Agent works

    A fresh session on a short branch. It loads the steering doc and the ADR index, full ADRs only on path match, and uses skills for commits and PRs. Hooks give feedback as it goes.

    PillarsSessions & handoffsSteering docsLean docs & ADRsSkillsHooks, not rules
  4. 04

    Validate Gate enforces

    validate locally, the same checks in CI, fail closed. The size check runs first, so an oversized change never reaches a reviewer.

    PillarsValidation gatesCI/CD pipelineTrunk-based developmentArchitecture as a gate
  5. 05

    Review, by impact Gate enforces

    Cheap bot rounds filter first; the human sees what survives. The paths a change touches, and its size, set which rounds run and how much the agent may do alone.

    PillarsPR review & autonomy
  6. 06

    Close and merge Human decides

    The agent moved the issue to review; a human or a gate closes it. It merges to trunk, with unfinished slices behind a flag.

    PillarsPR review & autonomyTrunk-based development
  7. 07

    Release Human decides

    A human approves every production deploy. The kill switch for the change and the agent is rehearsed before it is needed.

    PillarsDeploy approval & kill switches
  8. 08

    Learn Human decides

    Follow-up fix rate, keyed by actor. A handoff carries decisions into the next session; a fact that keeps coming back gets promoted to a real home.

    PillarsMetrics & evalsSessions & handoffsMemory bankMeta framework & drift

05 · Team visibility

Who can see what, and where

Speed is only useful if the team can follow it. Because each fact has one home, every question the team asks has one place to look, and none of them is "ask whoever ran the agent".

One issue's life on the board

  1. ReadyAgent-ready issue
  2. PlannedPlan approved
  3. In progressOne session, one branch
  4. In reviewAgent-complete
  5. DoneClosed by a human or a gate

An illustration of the states the method implies; name them to suit your tracker.

The questionWhere to look
What are we building, and why?The roadmap and the project in the tracker. Issues to roadmap
What is in flight, and who owns it?The issue's status on the board. The issue is assigned to the person running the agent. Issues to roadmap
What is the agent about to do?The plan comment on the issue, approved before any code. Issues to roadmap
How risky is this change?The PR: its impact label, its size and the bot rounds it passed. PR review & autonomy
Why is the code like this?The ADR, and the issue named in the commit footer. Lean docs & ADRs
Is the agent actually helping?Metrics keyed by actor. Agents have their own identity, so "the agent's PRs" is a query, not a guess. Metrics & evals

06 · Where the speed comes from

Faster, with boundaries verified

07 · The rules of thumb

Eleven principles

  1. Enforce below the agentProse and hooks give feedback, but a session can skip or edit them. The controls that count sit where the agent doesn't hold the keys: sandbox, branch protection, CODEOWNERS, identity.
  2. Gates over guidelinesIf it must always be true, make it a deterministic check, not a line of prose.
  3. Decisions are append-onlyADRs record why, the body is never rewritten, and get superseded on the record.
  4. Plans have one shared, canonical homeSpecs and roadmaps belong where humans and agents can both find, review and amend them. A tracker is the default; shared versioned repo docs can be equivalent.
  5. One agent, one domain, one conversationDon't switch agents mid-conversation. Work lives in issues; hand off only when it doesn't.
  6. Steering docs are not documentationAGENTS.md / CLAUDE.md loads every session for every agent. Keep it under 200 lines and check it for drift.
  7. Load on match, not on startPay context only for what the current task touches: an index always, full text on demand, lookups by query.
  8. Agent-complete is not doneAn agent that finishes moves the work to review. A human or a gate closes it. Nothing is done because the agent said so.
  9. Same rules for humans and agentsOne commit standard, one PR template, one review path. No exceptions for who authored the change.
  10. Sourced, or droppedEvery claim either cites a primary source or is labelled as this guide's own proposal. Anything that can be neither gets cut, however sensible it sounds. A plausible-sounding rule with nothing behind it is the thing this guide exists to stop.
  11. Every correction becomes a checkWhen a person or an agent fixes a mistake, write the fix down as a lint rule, a test or a hook, so it cannot come back. People review the rule once. The check applies it to every change after that.

08 · Adopt it

Four steps, in suggested order

Assess goals, not file counts. Record applicability separately from missing, configured, verified, failed or unknown evidence; name the owner, prerequisites, acceptance test, upkeep cost, outcome and exit criteria. Reuse equivalent controls, and adopt only what fits your team's pain and authority—not all 26.

  1. Tier 0

    Groundwork

    Day one. Five small pieces that make every later piece cheaper: a lean steering doc, one command that says "green", a commit standard, one hook that gives feedback (enforcement lives in permissions), and a written boundary for what agents may do.

    Steering docsValidation gatesCommit conventionsHooks, not rulesPermissions & blast radius
  2. Tier 1

    Guardrails

    Make bad output hard to ship. Remote checks that mirror the local ones, a branching model agents can reason about, skills that turn the conventions into one-step actions, and controls that stop an agent reaching green by changing the check.

    CI/CD pipelineTrunk-based developmentSkillsClean code & commentsTest integrityArchitecture as a gateDevcontainer
  3. Tier 2

    Memory & context

    Sessions forget. These pillars decide what gets remembered, where it lives, how little of it needs to be loaded to be useful, and where the trust boundary sits for what comes in from outside.

    Lean docs & ADRsSessions & handoffsCode graphVersioned docsMemory bankSupply chain & inputWhere does a fact live?
  4. Tier 3

    Scale

    Once the floor holds, these pieces let a team and its agents work in parallel without losing coherence: domain agents, tiered review, a shared plan, a production gate with a kill switch, whether the setup earns its keep, a check that keeps the setup itself honest, and a fast ramp for the next person.

    Agents & orchestrationPR review & autonomyIssues to roadmapDeploy approval & kill switchesMetrics & evalsMeta framework & driftOnboarding & contributors