aft

aft is a command for Claude Code from jayvee/aigon. It costs 26 tokens per session (794 once invoked), scanned A, original, Apache-2.0.

A command that hands an in-progress feature from one coding agent to another while preserving its worktree, branch, commits, and current work. A worktree is a separate checkout of the same Git repository.

In plain words
What is it for?
Use it to transfer a feature to another agent, add a reason to the handoff record, or transfer the work without launching the replacement automatically.
Why use it?
It allows work to continue when an agent reaches a usage limit, gets stuck, or needs to be replaced without losing progress.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code; mentions Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayvee/aigon/aft.svg)](https://agentmods.dev/commands/jayvee/aigon/aft)
Your own site
<a href="https://agentmods.dev/commands/jayvee/aigon/aft"><img src="https://agentmods.dev/badge/commands/jayvee/aigon/aft.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 794 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.1 $0.00026 $0.00794
Opus 5 $0.00013 $0.00397
Sonnet 5 $0.00005 $0.00159
Haiku 4.5 $0.00003 $0.00079

Measured 2d ago against content hash 77d67b17dd2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

aft 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 2d ago.

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

1 near-identical copy found in the catalogue:

.claude/commands/aft.md · 54 lines

How it starts

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

aigon-feature-transfer

Hand a stuck or paywalled in-progress feature from its current agent to a different agent, without losing commits or in-flight work. Intended for:

  • An agent hitting a usage/token limit mid-implementation (Codex paywall, Claude 5h limit).
  • An agent stalling on a prompt, auth flow, or tool confusion that won't resolve itself.
  • A human deciding that a different agent (e.g. Claude Code) should take over from here.

The worktree, commits, branch, and workflow history are all preserved. Only the active agent changes.

Usage

aigon feature-transfer {{args}} --to=<agent> [--reason="..."] [--no-launch]

Flags:

  • --to=<agent> (required) — target agent id (e.g. cc, cx, ag, cu).
  • --reason="..." — free-text reason recorded in the transfer briefing.
  • --no-launch — do the transfer but don't auto-spawn the new agent; handy for scripted orchestration.

What it does (in order)

  1. Captures the last ~3000 lines from every live tmux pane for the feature.
  2. Writes a briefing to docs/specs/features/logs/feature-<ID>-transfer-<timestamp>.md — last commits, uncommitted diff, pane tails, and next-steps for the new agent.
  3. Commits any uncommitted work in the worktree as wip(transfer): save <old> state before handoff to <new> so nothing is lost by the directory move.
  4. Kills the old agent's tmux sessions and removes its heartbeat file.
  5. Moves the worktree with git worktree move — directory renames from feature-<ID>-<old>-<desc>/ to feature-<ID>-<new>-<desc>/. The branch name is preserved (it encodes who originally started the work — not a problem, it's cosmetic after merge).
  6. Re-seeds the workflow engine by emitting a fresh feature.started event so the dashboard and snapshot reflect the new agent. Prior events stay in history.
  7. Launches the new agent with aigon feature-do <ID> --agent=<new> unless --no-launch was passed.

The new agent's first task is to read the briefing and the wip(transfer) commit before doing anything else — the briefing lays out exactly where the previous agent stopped and why.

Read the full file on GitHub · 54 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. 2d ago First seen · 54 lines · 26 tokens per session scan A 77d67b17dd2c

Subscribe to this mod's changes

aft is a command published in the GitHub repository jayvee/aigon (25 stars, last pushed 5d ago), licensed Apache-2.0. It adds 26 tokens to every session and 794 once invoked, about $0.0001 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.