aigon-feature-close

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

A feature-completion command that merges the chosen implementation and finishes the feature workflow.

In plain words
What is it for?
Use it to close features in branch, worktree, or multi-agent workflows, and optionally adopt useful changes from other implementations.
Why use it?
It handles the final merge and cleanup steps, including choosing a winning agent when several agents worked on the feature.

Command for Cursor

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/aigon-feature-close
Clone the repo
git clone --depth 1 https://github.com/jayvee/aigon

Made for: Cursor.

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 aigon-feature-close

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayvee/aigon/aigon-feature-close.svg)](https://agentmods.dev/commands/jayvee/aigon/aigon-feature-close)
Your own site
<a href="https://agentmods.dev/commands/jayvee/aigon/aigon-feature-close"><img src="https://agentmods.dev/badge/commands/jayvee/aigon/aigon-feature-close.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% 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.00000 $0.02096
Opus 5 $0.00000 $0.01048
Sonnet 5 $0.00000 $0.00419
Haiku 4.5 $0.00000 $0.00210

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

Security

Grade A, and why

aigon-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

91% identical to afcl — 35 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.

.cursor/commands/aigon-feature-close.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 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 <name> or feature-start <name> <agent>:

aigon feature-close <name>

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

Fleet mode

If you used feature-start <name> cc ag cx cu:

aigon feature-close <name> <winning-agent>

Example: aigon feature-close <name> 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 <name> <winning-agent> --adopt <agents...|all>

Examples:

  • aigon feature-close <name> cc --adopt ag cu — adopt from specific agents
  • aigon feature-close <name> 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 · 203 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 · 203 lines · 0 tokens per session scan A 7a246ad410b0

Subscribe to this mod's changes

aigon-feature-close is a command published in the GitHub repository jayvee/aigon (25 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,096 tokens. A static security scan graded it A with 0 findings. It is 91% identical to afcl, differing in 35 lines, and is treated as a copy.