Synopsis
aigon feature-close <ID> [agent] [--adopt <agents...|all>]Shortcuts
/afcl(slash command) ·aigon afcl(CLI)
Flags
| Flag | Description |
|---|---|
--adopt <agents|all> | After merging the winner, print diffs from losing agents for selective adoption |
Description
feature-close is the final step in the feature lifecycle. It merges the implementation into main, moves the spec from 03-in-progress/ to 05-done/, organizes the implementation logs, and removes the feature’s worktree and branch.
The command behaves differently depending on how the feature was developed:
- Drive mode (single agent, branch or worktree): no
[agent]argument needed — the command auto-detects the implementation - Fleet mode (multiple agents): pass the winning agent’s ID to specify which branch to merge
If a GitHub pull request is open for the feature branch, feature-close will block and tell you to merge or close the PR first. See the GitHub Integration guide.
What it does
Drive mode
- Auto-commits any uncommitted changes on the feature branch
- Pushes the feature branch to
origin - Switches to
mainand merges with--no-ff - Moves spec to
05-done/ - Moves implementation log to
logs/selected/ - Deletes the local feature branch
Fleet mode
- Pushes the winning agent’s branch to
origin - Switches to
mainand merges the winning branch with--no-ff - Moves spec to
05-done/ - Organizes logs: winning agent →
logs/selected/, others →logs/ - With
--adopt: prints diffs from each losing agent’s branch so you can cherry-pick improvements
Examples
# Drive mode — single agent, no argument needed
aigon feature-close 42
# Fleet mode — specify the winning agent
aigon feature-close 42 cc
# Fleet mode — merge winner and show diffs from all losers for adoption
aigon feature-close 42 cc --adopt all
# Fleet mode — adopt from specific agents only
aigon feature-close 42 cc --adopt gg cxRelated
feature-eval— compare implementations before deciding the winner (Fleet mode)feature-cleanup— remove remaining Fleet worktrees after closefeature-reset— abandon work and start over instead of closing- GitHub Integration guide
Last updated on