بنقرة واحدة
aigon-feature-close
Close feature <ID> [agent] [--adopt] - merges branch, cleans up, optionally adopts from losers
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Close feature <ID> [agent] [--adopt] - merges branch, cleans up, optionally adopts from losers
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Revise the current feature worktree after code review — decide accept/revert/modify
Show Aigon commands
Create feature <name> - creates spec in inbox
Evaluate feature <ID> - code review or comparison
Fast-track feature <name> - create + setup + implement in one step
Prioritise feature <name> - assigns ID, moves to backlog
| name | aigon-feature-close |
| description | Close feature <ID> [agent] [--adopt] - merges branch, cleans up, optionally adopts from losers |
Complete a feature by merging the implementation and cleaning up.
If no ID is provided, or the ID doesn't match an existing feature:
aigon feature-list --activeIf you used feature-start $1 or feature-start $1 <agent>:
aigon feature-close $1
The command auto-detects whether the feature uses a branch or a Drive worktree.
If you used feature-start $1 cc gg cx cu:
aigon feature-close $1 <winning-agent>
Example: aigon feature-close $1 cc to merge Claude's implementation
Merge the winner and print diffs from losing agents for selective adoption:
aigon feature-close $1 <winning-agent> --adopt <agents...|all>
Examples:
aigon feature-close $1 cc --adopt gg cu — adopt from specific agentsaigon feature-close $1 cc --adopt all — adopt from all losing agentsfeat: implementation for feature <ID>)--no-fflogs/selected/--no-fflogs/selected/logs/alternatives/CRITICAL SEQUENCING: When --adopt is used, do NOT delete any worktrees or branches for the adopted-from agents until adoption is complete. The adopted agents' worktrees must remain accessible so you can read their code and cherry-pick changes.
Phase 1 — Merge the winner (handled by CLI):
--no-ffPhase 2 — Review and categorize (your job):
After the CLI prints the adoption diffs, you must systematically review them. For each adopted agent:
Read the evaluation's cross-pollination recommendations in docs/specs/features/evaluations/
Read the actual source files from the adopted agent's worktree — do NOT rely only on diffs. Navigate to the worktree directory and read the files to understand context.
Categorize each change into one of these types:
For each change, decide: adopt or skip. Skip if it:
Phase 3 — Apply adoptions:
For each accepted change:
Phase 4 — Verify:
After all adoptions are applied, run the project's tests (whatever command the project uses — check its docs if unsure). If they fail:
Phase 5 — Commit (one commit per adopted agent):
For each agent you adopted from, create a separate commit:
git commit -m "feat: adopt improvements from <agent> for feature <ID>
Adopted:
- <what was taken and why>
Skipped:
- <what was skipped and why>"
Phase 6 — Cleanup:
After all adoption commits are verified, clean up the adopted agents' worktrees:
aigon-feature-cleanup $1
After merging the winner (and completing adoption if applicable), clean up remaining worktrees:
aigon-feature-cleanup $1 # Delete locally
aigon-feature-cleanup $1 --push # Push to remote first
Use --push if you want to preserve the alternative implementations on the remote repository.
cc, gg, cx, cu)--adopt: Only available in Fleet mode — requires a winning agent--no-ff merge to preserve feature historylogs/alternatives/ for future referencefeature-close while on the feature branch with uncommitted changes, the CLI auto-commits them before proceeding. This is the drive-mode equivalent of the worktree submission flow.origin is GitHub and gh is available, close checks for a PR on the feature branch. No PR means normal local close. An open PR blocks close. A merged PR causes Aigon to sync {{DEFAULT_BRANCH_NAME}} from origin/{{DEFAULT_BRANCH_NAME}}, write the final done-state spec/log commit, push that close-state commit, and clean up the branch/worktree.After merging (and adoption if applicable), check whether the feature's changes require updates to project documentation.
README.md, architecture docs, API docs, design docs, guides, wikis, or any markdown files that describe the areas you just changedIf updates are needed, commit them as a separate commit:
git commit -m "docs: update documentation for feature <ID>"
If no docs need updating, skip this step.
After the command completes, check the pipeline and suggest the most useful next step:
If --adopt was used, the adoption should already be complete (Phase 2–6 above). If there are remaining non-adopted worktrees, suggest cleanup:
aigon-feature-cleanup <ID>
If the feature used Fleet mode (without --adopt) and has remaining worktrees, suggest cleanup:
aigon-feature-cleanup <ID>
Otherwise, check the pipeline:
./docs/specs/features/02-backlog/ matching feature-*.mdaigon-feature-start <next-ID>./docs/specs/features/01-inbox/ matching feature-*.mdaigon-feature-prioritiseEnd your response with the suggested next command on its own line. This helps agent UIs surface the next suggested Aigon command. Use the actual ID/name from the pipeline check above.