afs

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

A command that prepares a project workspace for feature implementation. Depending on the number of agents, it creates a branch or separate worktrees and records the workflow transition.

In plain words
What is it for?
Use it to start a backlog feature in one workspace, or prepare parallel workspaces for multiple agents.
Why use it?
It avoids manually setting up branches, worktrees, and feature records, which can leave the project workflow out of sync.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayvee/aigon/afs.svg)](https://agentmods.dev/commands/jayvee/aigon/afs)
Your own site
<a href="https://agentmods.dev/commands/jayvee/aigon/afs"><img src="https://agentmods.dev/badge/commands/jayvee/aigon/afs.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 596 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.00020 $0.00596
Opus 5 $0.00010 $0.00298
Sonnet 5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

afs 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 3d 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

2 near-identical copies found in the catalogue:

.claude/commands/afs.md · 50 lines

How it starts

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

aigon-feature-start

Prepare your workspace to implement a feature in Drive or Fleet mode.

CRITICAL: Use the CLI command below. Do NOT manually move spec files, lifecycle-view links, create branches, or create worktrees — the CLI records the workflow transition and prepares branch/worktree state.

Argument Resolution

If no ID is provided or doesn't match a backlog entry, list ./docs/specs/features/02-backlog/feature-*.md, filter to matches, and ask the user to choose.

Step 1: Run the CLI

Pass EXACTLY the args the user provided. Do NOT add agents that weren't specified.

# Drive mode (branch in current repo) — ID only
aigon feature-start {{args}}

# Drive worktree mode (parallel development) — ID + 1 agent
aigon feature-start {{args}} <agent>

# Fleet mode (competition) — ID + 2+ agents
aigon feature-start {{args}} <agent1> <agent2> [agent3...]

Mode is determined by arg count (0 / 1 / 2+ agents). The CLI transitions the feature from backlog to in-progress, refreshes the generated lifecycle view (stable layout), creates branch or worktree(s), and creates implementation log(s).

If the CLI reports errors while recording or publishing the workflow transition, resolve them before proceeding.

Step 2: Confirm setup and next steps

feature-start creates the workspace AND opens agent terminals automatically — there is no separate "open" step.

  • Drive mode (branch): you end up on the feature branch in your current terminal. Start implementation manually with /aigon:feature-do <ID>. Close with /aigon:feature-close <ID> when done.
  • Drive worktree: agent terminal is already running. Wait for submit, then /aigon:feature-close <ID> from the main repo.
  • Fleet: all agent terminals are running and implementing. Wait for all to submit, then /aigon:feature-eval <ID>.
  • Re-open a crashed session: /aigon:feature-open <ID> (or /aigon:feature-open <ID> <agent> for a specific Fleet agent).

Worktrees are created in ../<repo>-worktrees/ to keep them grouped with the project.

Read the full file on GitHub · 50 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. 3d ago First seen · 50 lines · 20 tokens per session scan A 591f456cdc79

Subscribe to this mod's changes

afs is a command published in the GitHub repository jayvee/aigon (25 stars, last pushed 5d ago), licensed Apache-2.0. It adds 20 tokens to every session and 596 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.