avtc-pi-feature-flow
v1.0.5
Published
Predictable, deterministic feature development for pi — deep upfront design, configurable comprehensive review and verification rigor, and auto-agents draining a backlog
Readme
avtc-pi-feature-flow
Predictable, deterministic feature development for pi — deep upfront design, configurable comprehensive review and verification rigor, and auto-agents draining a backlog
Features
Feature-flow makes agentic development predictable and deterministic:
- Deep upfront design — subagents research every nuance during design; all open questions are asked upfront and answers are stored in the design-doc for later stages to build on.
- Configurable review and verification — set iteration counts per phase (design, plan, code review, verification) and per task; turn them down for simple features, up for complex ones.
- Two review modes — one general-reviewer subagent, or multiple specialized subagents (guidelines, quality, security, performance, requirements, testing) dispatched in parallel.
- Multi-model routing — assign different models per stage and per agent name (with glob patterns); optional round-robin rotation diversifies review findings.
- Todo-driven checklists — reviews and verification run against checklist-driven todo items so nothing is skipped or deferred.
- Automatic context compaction — configurable compaction triggers between tasks, phases, and review iterations keep long features viable without losing context.
- Auto-agents — once designs are approved, an auto-agent (started in a separate terminal) works through them sequentially: plan, implement, review each.
- Kanban board — browser UI tracking features across lanes with locks; auto-agents pull the next approved design off the board.
- Per-feature git worktrees — each feature gets an isolated branch workspace so parallel agents never collide.
Requirements
Pi 0.80.4 or later must be installed.
Git must be installed separately — needed for per-feature worktrees, review diffs, and TDD guardrails.
Installing via pi install npm:avtc-pi-feature-flow bundles these extensions automatically:
avtc-pi-subagent— a subagent tool supporting context compaction and nested subagentsavtc-pi-todo— a working-memory plan the agent manages through multi-stage workavtc-pi-parallel-work-guardrail— block or approve agent git operations that disrupt parallel workavtc-pi-ui-components— dialog coordinator preventing dialogs from rendering over each otheravtc-pi-subagent-ui-bridge— lets extensions' dialogs from nested subagents render in the root sessionavtc-pi-unstuck— auto-continue on empty model responses + configurable timeouts for bash and search tools
Optional (recommended):
avtc-pi-portrait— builds a behavioral portrait from your session corrections, injected into the system promptavtc-pi-ask-user-question— a question tool for the agent with subagent forwarding and attention alertsavtc-pi-user-decisions— captures decisions, re-injects into the system prompt after compaction and into subagentsavtc-pi-notification— bell and Telegram notifications, only fires when you're away
Installation
pi install npm:avtc-pi-feature-flowBefore you start
After installing, open /ff:settings and set:
- Design doc storage —
local(.ff/, not committed) orcommitted(docs/ff/, tracked). Defaultlocal. - Branch policy —
current-branch(pair-program in your repo) orworktree(autonomous, isolated worktree per feature).
Other defaults work out of the box; tune review-loop counts, verification, and model routing as you go.
Usage
Start a feature from the design phase. In a pi session, type the slash command for the design phase:
/skill:ff-design(pi autocompletes slash commands — typing /design surfaces it.) The agent asks what you want to build, then:
- Researches the codebase to ground the design in current state.
- Asks clarification questions for each design section.
- Runs the design review autonomously (the
ff-design-reviewloop, driven by the extension). - Pauses for your review of the design document before moving on (interactive mode).
- Once you approve, the rest runs autonomously: plan → plan review → implementation → verification → code review.
- The feature lands in UAT for you to verify before it finishes.
You stay in control at the design gate; everything after is hands-off until UAT.
Tune the pipeline with /ff:settings — a multi-tab modal overlay for implement mode, review-loop counts, per-task review mode, inter-task context compaction, branch policy, and model routing per phase.
The Workflow Pipeline
design → plan → implement → verify → review → (UAT-after-review) → finish → (UAT-after-finish)Start workflow via /skill:ff-design invoke. Next phase transitions happens automatically, but can be also switched with /skill:.
| Phase | Driver skill | What happens |
|-------|-------------|--------------|
| design | /skill:ff-design | Explores intent + requirements, produces a design document ({design dir}/{slug}-design.md, per the design-doc storage setting) — interactive, you review before it advances |
| plan | /skill:ff-plan | Breaks the design into an ff-implementer-ready task plan (.ff/task-plans/{slug}-task-plan.md) |
| implement | /skill:ff-implement | Works through the task plan in an isolated worktree |
| verify | /skill:ff-verify | Spawns the ff-feature-verifier subagent, then runs build / lint / tests |
| review | /skill:ff-review | Dispatches parallel specialized reviewers (or a single generalist) over the code; loops per maxFeatureReviewRounds setting |
| UAT | /ff:next | To transition to UAT phase in case no longer want to continue review-iterations, as UAT does not have skill to activate it via /skill: |
| finish | /skill:ff-finish | Presents merge / PR / keep / discard options and cleans up |
The widget in the TUI status bar shows live progress — workflow phases, auto-agent state, and feature ID + name. Task progress is shown by the separate avtc-pi-todo widget.

The implementation phase runs in one of three modes, set by the implementMode setting: current-session (the agent implements in the main session, checkpointed), subagent-driven (a fresh subagent implements each task), or subagent-driven-fork (a subagent forked from your session's context implements each task).
Design + plan review loops
The design and plan phases each self-review before advancing: the extension runs dedicated review passes (ff-design-review, ff-plan-review) and fixes the findings, repeating for the configured number of rounds. This catches gaps and inconsistencies before implementation begins, so the downstream phases start from a reviewed design and plan.
Kanban + Auto-Agents
The kanban board is optional. A single feature needs none of it — you run /skill:ff-design and the pipeline carries it to UAT. The kanban is for working on many features in parallel: you queue several designs, and auto-agents route them through the pipeline concurrently. An auto-designer runs design-reviews on queued designs (features land in the design-approval lane when ready), while each auto-worker takes one feature from the ready lane and drives it through task-plan, implementation, and code-review loops to UAT. Features live in lanes and move through them as work progresses.

Status: worktree isolation is tested within a single repo; the auto-agent's switch to another feature when blocked by the user is not yet tested. Worktree mode targets one repo only — cross-repo changes (multiple repos, submodules, or sibling repos touched in one feature) are not supported. Single-session implementation remains the fully tested path.
| Command | What it does |
|---------|--------------|
| /ff:kanban | Open the kanban board in a browser (starts the HTTP server if needed) |
| /ff:auto-agent | Start the autonomous loop — picks features from both design and ready lanes |
| /ff:auto-worker | Autonomous loop, ready lane only |
| /ff:auto-designer | Autonomous loop, design lane only |
| /ff:auto-pause | Pause the auto-loop (keeps the current feature, heartbeat alive) |
| /ff:auto-stop | Stop the auto-agent and resume interactive control (detaches the auto-agent, no re-dispatch) |
| /ff:kanban-release | Release a feature lock so others can pick it up |
A queued backlog plus /ff:auto-agent lets the harness chew through features on its own, with verification and review gates still enforced.
Tools
| Tool | Description |
|------|-------------|
| phase_ready | Signal phase completion + trigger the next-phase handoff |
| task_ready_advance | Start a task, advance to the next, or finish implementation (per-task gate dispatch) |
| add_to_backlog | Add a new feature to the kanban backlog |
Commands
| Command | Description |
|---------|------------|
| /ff:next | Manual command to advance to next phase, expected to be used to advance from uat to finish, as other phases can be activated by invoking the skill related to phase |
| /ff:reset | Turn-off the workflow |
| /ff:resume | List active workflows and load the selected one into the current session |
| /ff:settings | Open the settings UI |
| /ff:archive-artifacts <days> | Archive old workflow artifacts (older than <days> days) out of your way; asks before moving anything |
| /ff:archive-designs <days> | Archive old design docs (older than <days> days) from both .ff/designs and docs/ff/designs; asks before moving anything |
Skills
9 skills covering the pipeline phases, the design/plan review loops, and research:
- Phase drivers —
ff-design,ff-plan,ff-implement,ff-verify,ff-review,ff-finish - Review-iteration drivers —
ff-design-review,ff-plan-review(single-iteration passes re-dispatched per the configured loop count) - Research —
ff-research(deep code analysis for investigation tasks)
Invoke any with /skill:<name>.
Named Subagents
14 specialized agent profiles dispatched automatically by the review and verify skills (you don't invoke them directly):
- Reviewers —
ff-general-reviewer,ff-design-reviewer,ff-plan-reviewer,ff-guidelines-reviewer,ff-quality-reviewer,ff-security-reviewer,ff-performance-reviewer,ff-requirements-reviewer,ff-testing-reviewer - Verifiers —
ff-feature-verifier,ff-plan-verifier,ff-task-verifier - Utilities —
ff-researcher,ff-implementer
Dispatched via avtc-pi-subagent.
Artifacts
- Design docs —
docs/ff/designs/or.ff/designs/per thedesignDocStoragesetting. - Task plans, research, reviews — stored out-of-repo under a
.ff/junction (see below)
The .ff/ junction
Plans, research, and review artifacts are kept out of git (they're process artifacts, not source). Feature-flow creates a gitignored .ff/ link at project init that points to a stable, project-keyed external location (~/.pi/feature-flow/<project>/). All worktrees of the project share that one store, so artifacts survive worktree removal.
Configuration
The /ff:settings command opens a tabbed modal covering every setting — workflow behavior, review-loop counts, branch policy, feature review mode, inter-task compaction, model overrides, and more:


Workflow settings (workflow behavior, review-loop counts, branch policy, feature review mode, inter-task context compaction) live in avtc-pi-feature-flow-settings.json (~/.pi/agent/ global, <cwd>/.pi/ project overrides) and are edited via /ff:settings. Model routing per phase is configured separately in pi's shared ~/.pi/agent/settings.json under the "avtc-pi-feature-flow" key. See docs/CONFIGURATION.md for the full reference.
Full suite
Check out the full suite of related extensions, avtc-pi — deterministic feature development, subagent delegation, working-memory, behavioral learning, parallel-work guardrails, durable decisions, notifications, and more.
Developed with Z.ai — get 10% off your subscription via this referral link.
Attribution
Inspired by coctostan/pi-superpowers-plus and obra/superpowers (Jesse Vincent).
License
MIT
