feature-close

feature-close is a command for Claude Code from jayvee/aigon. It costs 24 tokens per session (2,162 once invoked), scanned A, a copy of afcl, Apache-2.0.

A command for completing a feature by merging an implementation branch and cleaning up its related work. In Fleet mode, it can also show changes from losing agents for selective adoption.

In plain words
What is it for?
Use it to close a feature in branch, worktree, or multi-agent Fleet mode, optionally adopting selected changes from other agents.
Why use it?
It brings the chosen implementation into the main development flow and removes the temporary feature setup afterward.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jayvee/aigon/feature-close
Clone the repo
git clone --depth 1 https://github.com/jayvee/aigon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature-close

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayvee/aigon/feature-close.svg)](https://agentmods.dev/commands/jayvee/aigon/feature-close)
Your own site
<a href="https://agentmods.dev/commands/jayvee/aigon/feature-close"><img src="https://agentmods.dev/badge/commands/jayvee/aigon/feature-close.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.02162
Opus 5 $0.00012 $0.01081
Sonnet 5 $0.00005 $0.00432
Haiku 4.5 $0.00002 $0.00216

Measured yesterday against content hash e498bc781943, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feature-close scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to afcl — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/aigon/feature-close.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aigon-feature-close

Complete a feature by merging the implementation and cleaning up.

Argument Resolution

If no ID is provided, or the ID doesn't match an existing feature:

  1. Run aigon feature-list --active
  2. If a partial ID or name was given, filter to matches
  3. Present the matching features and ask the user to choose one

Usage

Drive mode (branch or worktree)

If you used feature-start {{args}} or feature-start {{args}} <agent>:

aigon feature-close {{args}}

The command auto-detects whether the feature uses a branch or a Drive worktree.

Fleet mode

If you used feature-start {{args}} cc ag cx cu:

aigon feature-close {{args}} <winning-agent>

Example: aigon feature-close {{args}} cc to merge Claude's implementation

Fleet mode with adoption

Merge the winner and print diffs from losing agents for selective adoption:

aigon feature-close {{args}} <winning-agent> --adopt <agents...|all>

Examples:

  • aigon feature-close {{args}} cc --adopt ag cu — adopt from specific agents
  • aigon feature-close {{args}} cc --adopt all — adopt from all losing agents

What happens

Drive Mode

  1. If on the feature branch with uncommitted changes, auto-commits them (feat: implementation for feature <ID>)
  2. Pushes the feature branch to origin (to save work remotely)
  3. Switches to main/master branch
  4. Merges the feature branch with --no-ff
  5. Records done lifecycle and refreshes the generated view
  6. Moves implementation log to logs/selected/
  7. Deletes the local feature branch
  8. Commits the spec and log moves

Fleet Mode (without --adopt)

  1. Pushes the winning agent's branch to origin
  2. Switches to main/master branch
  3. Merges the winning agent's branch with --no-ff
  4. Records done lifecycle and refreshes the generated view
  5. Organizes logs:
    • Winning agent's log → logs/selected/
    • Other agents' logs → logs/alternatives/
  6. Removes the winning agent's worktree
  7. Deletes the winning agent's local branch
  8. Commits the changes
  9. Shows cleanup options for remaining worktrees/branches

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 208 lines · 24 tokens per session scan A e498bc781943

Subscribe to this mod's changes

feature-close is a command published in the GitHub repository jayvee/aigon (25 stars, last pushed 4d ago), licensed Apache-2.0. It adds 24 tokens to every session and 2,162 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to afcl, differing in 2 lines, and is treated as a copy.