afcl

afcl is a command for Claude Code from jayvee/aigon. It costs 30 tokens per session (2,167 once invoked), scanned A, original, Apache-2.0.

A command that finishes a feature by selecting an implementation, merging its branch, and cleaning up. In fleet mode, several agents implement the same feature and one result is chosen.

In plain words
What is it for?
Use it to close branch or worktree-based features, choose a winning agent, and selectively copy useful changes from other implementations.
Why use it?
It removes the manual work of comparing agent results, merging the winner, and handling leftover work. It can also show changes from other agents for possible adoption.

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/afcl
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 afcl

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayvee/aigon/afcl.svg)](https://agentmods.dev/commands/jayvee/aigon/afcl)
Your own site
<a href="https://agentmods.dev/commands/jayvee/aigon/afcl"><img src="https://agentmods.dev/badge/commands/jayvee/aigon/afcl.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 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,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00030 $0.02167
Opus 5 $0.00015 $0.01084
Sonnet 5 $0.00006 $0.00433
Haiku 4.5 $0.00003 $0.00217

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

Security

Grade A, and why

afcl 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

Copies of this mod

2 near-identical copies found in the catalogue:

.claude/commands/afcl.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 · 30 tokens per session scan A 643a9620aabd

Subscribe to this mod's changes

afcl is a command published in the GitHub repository jayvee/aigon (25 stars, last pushed 4d ago), licensed Apache-2.0. It adds 30 tokens to every session and 2,167 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.