epic

Plan, refine and run epics with open-epic checks, affinity grouping, internal goal setting, and file/run/next modifiers. Only on explicit /epic or 'epic'.


disable-model-invocation: true

Plan, Refine and Run an Epic

You, the agent that received this invocation, are the Host Orchestrator. An epic is one ticket that owns a task table; each task becomes a subticket run as a /lean-sprint. The host runs the epic and orchestrates each sprint, but does not do the sprints (no direct coding or feature implementation). Each sprint is executed by dispatching the Developer model defined within the selected sprint skill (defaulting to /lean-sprint), with the host reviewing worker diffs and running post-handoff verification tests as detailed in that skill.

Invocation: /epic "<idea>" drafts a new epic; /epic <n> refines or runs epic ticket <n>; /epic <n> no-web skips the web fanout.

Dispatch

Delegate, don't restate: /issue (filing), /lean-sprint (roles, dispatch, review), /study (study shape), /evergreen, /wrap. If .harnez/repo.yaml sets issues.tracker: none or docs.studies: false, follow .harnez/rules/Index.md.

1. Draft

File the epic with /issue (direct). It contains:

Tasks stay placeholders until steps 2–4 have run.

2. Prior-Art Web Fanout (optional; default on for new features)

Goal: check the direction and avoid rebuilding established, stable, maintained, non-bloated tools.

Skip it for pure refactors or internal fixes; say so in the epic.

3. Code Fanout

Cheap searchers check the live repo for each task's premise, location and size. A task that is not small, or hides an owner decision, moves into its own sprint group.

3a. Phases and Delivery

For multi-group epics, organize groups as prose phases with their dependencies, child tickets, and exit gates; use a DAG when work can proceed independently. Start a phase only when its dependencies' gates pass. Keep infrastructure and integration work after the standalone work it depends on. An operational epic owns one repository: for sibling-repository work, file a planning bridge here and an anchor ticket or follow-up epic in the owning repository.

Label each child code or design/discovery. Code work requires the ticket's tests, install, and runtime canary before closure. Design/discovery work produces a study and a decomposed backlog, and states that runtime delivery was not verified. A phase exits when its children are closed, its declared canary or design review passes, and the working tree is clean.

4. Refine

Each task becomes a subticket (/issue) with acceptance, write set, and:

Mix vendors across a sprint. Update the epic's task table with the numbers.

5. Decisions

Batch owner questions once, each with a recommendation. When the owner delegates, decide and record each choice in the subticket's ## Decision.

6. Run

Run each sprint group via the selected sprint skill (default /lean-sprint). The host coordinates the run and runs verification tests upon handoff, but does not implement: dispatch the sprint's configured Developer worker (harnez agent start) to write code and tests. Update the task table as each lands (commit with the ticket update).

6b. Circuit Breaker

Every /goal this skill writes or runs carries one. When a worker loops, an architectural or OS blocker is hard to solve, or the orchestrator sees no progress: clear the goal and write a failure report in the epic (what was tried, why it failed, resume point).

7. Skip Rule

A subticket that needs new commands, unavailable resources or an owner decision nobody can default is skipped and named in the epic, not forced.

8. Close

The epic closes when every task is closed, skipped with a reason, or parked in its own ticket. The close reason lists each. Compare delivery with the epic's /goal first.

9. Evergreen and Wrap

Run the final tasks: sprint study (front matter kind: sprint), review-learning entries, follow-up tickets (/evergreen), then /wrap. Report the epic number, closed/skipped/parked tasks, and the next command.

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/epic.md
Source revision
3cb914dfaf6c43cbbbc43868d6b47c2cc7516c22
Requires
Targets
codex, claude
Invocation
/epic

Related skills