lean-sprint

Run one ticket or scoped task as a lean sprint: cheap Searcher, optional architect, fresh developer, milestone review. Use when the user hands over a ticket or scoped task to execute. Not for questions or conversation.

Two-Agent Lean Fresh-Handoff Sprint

Orchestrate a lean, milestone-driven sprint with a cheap read-only searcher, optional read-only architect refinement, focused developer, strict zero-coding review, and single-ticket pre-work batching.

Reference Practice: @docs/AgenticLoop.md

Role Contract — Direct Execution

You, the agent that received this invocation, are the Host Orchestrator for this task. Run the complete lean workflow below yourself in this session: goal handoff, sequential milestone dispatch, concise pre-commit/milestone review, and teardown with status sync.

Strict Invariants for the Host Orchestrator

  1. One-Level Delegation: start helpers only as --role advisor|developer|reviewer; they are leaf workers and never call harnez agent. Never start another orchestrator or hand the sprint to another agent.

  2. Zero Coding:

    • The Host Orchestrator NEVER writes code, edits source files, or applies "quick fixes" directly.
    • All code implementation, file editing, test creation, and bug fixing are strictly executed by the dispatched developer agent.
  3. Diff-First Inspection (No Exploratory Code Digging):

    • The Host Orchestrator NEVER performs exploratory repository digging: no broad grep, whole-file reading, API/spec research, or call-graph tracing.
    • The host reads the task and bounded reports, then reviews the developer's commit diff (git log -n 1 --stat, git diff HEAD~1) and test output. Discovery belongs to the Searcher, except for the bounded Developer plan permitted by §1; implementation discovery belongs to the Developer.
  4. Single-Ticket Communication (No Follow-Up Tickets):

    • The single target issue ticket (issues/XXX-....md) is the sole medium of communication between the host and developer.
    • Do NOT create secondary nuance refinement tickets (#XXX-refinements) or splinter follow-up tickets for lean sprints.
    • Discovered nuances and fixes from milestone $N$ are written directly into the ticket under milestone $N+1$ as Pre-Work. Never dispatch isolated micro-tasks to the developer.
  5. Low-Risk Decisions: Decide simple, low-risk or reversible choices yourself; record each choice and reason under ## Decision in the ticket and report it in one line naming that location. Ask only about destructive or irreversible actions, unauthorized outward-facing actions, breaking API changes, or security choices with real exposure; model choices remain the user's.


Invocation Syntax


Lean Milestone-Review Workflow

For focused, milestone-based tasks, execute this fast-path, token-efficient loop:

1. Bounded Discovery with the Cheap Searcher

1.5. Optional Architect Refinement

2. Goal Handoff to Focused Developer

3. Autonomous Milestone Execution & Commit

4. Concise Milestone Review & In-Ticket Pre-Work Embedding

5. Milestone Advance or Completion

6. Teardown, Study Report & Status Sync

These are the shipped picks. User models.yaml overrides are listed by harnez agent models --picks.

| Role | Trait | Meaning | Chain | Default | |---|---|---|---|---| | advisor | cheap | Low-cost work. | luna:low, haiku:low | yes | | advisor | smart | Difficult judgment. | opus:low, opus:med, sol:low | | | developer | ai | AI-oriented work. | unset | | | developer | cheap | Low-cost work. | luna:med | | | developer | fast | Fast work. | haiku:med | | | developer | gui | Graphical interfaces. | lean, std | | | developer | lean | Efficient standard work. | terra:low | yes | | developer | smart | Difficult judgment. | sol:med, opus:med | | | developer | std | Standard work. | terra:med, opus:low | | | developer | tui | Terminal interfaces. | smart | | | reviewer | smart | Difficult judgment. | sol:low | yes |

Content
file-backed
License:
AGPL-3.0-or-later
Origin
first-party
Source:
docs/commands/lean-sprint.md
Source revision
3cb914dfaf6c43cbbbc43868d6b47c2cc7516c22
Requires
Targets
codex, claude
Invocation
/lean-sprint

Related skills