afx

A command-line tool for starting and managing separate coding-agent workers, called builders, in isolated workspaces. It also handles their protocols, status, messages, and scheduled tasks.

In plain words
What is it for?
Spawning builders for issues or custom tasks, resuming existing workers, checking their status, and managing their workspaces or scheduled jobs.
Why use it?
It reduces the manual work of setting up parallel coding sessions and helps keep their changes separated.

Skill for Claude CodeCodex

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 skills/cluesmith/codev/afx
Any agent
npx skills add cluesmith/codev --skill afx
Clone the repo
git clone --depth 1 https://github.com/cluesmith/codev

Made for: Claude Code, Codex.

Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,467 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00094 $0.02467
Opus 5 $0.00047 $0.01234
Sonnet 5 $0.00019 $0.00493
Haiku 4.5 $0.00009 $0.00247

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

Security

Grade C, and why

afx scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s http://localhost:4100/api/workspaces | python3 -m json.tool # → each .name is a valid <workspace> address

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:4100/api/workspaces | python3 -m json.tool # → each .name is a valid <workspace> address
.claude/skills/afx/SKILL.md · 247 lines

How it starts

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

Agent Farm CLI

afx spawn

Spawns a new builder in an isolated git worktree.

afx spawn [number] [options]

The ONLY flags that exist:

Flag Description
--protocol <name> Protocol: spir, aspir, air, bugfix, tick, maintain, experiment. Required for numbered spawns.
--task <text> Ad-hoc task (no issue number needed)
--shell Bare Claude session
--worktree Bare worktree session
--amends <number> Original spec number (TICK only)
--files <files> Context files, comma-separated. Requires --task.
--no-comment Skip commenting on the GitHub issue
--force Skip dirty-worktree and collision checks
--soft Soft mode (AI follows protocol, you verify)
--strict Strict mode (porch orchestrates) — this is the default
--resume Resume builder in existing worktree
--no-role Skip loading role prompt

There is NO -t, --title, --name, or --branch flag. The branch name is auto-generated from the issue title.

Examples:

afx spawn 42 --protocol spir           # SPIR builder for issue #42
afx spawn 42 --protocol aspir          # ASPIR (autonomous, no human gates)
afx spawn 42 --protocol air            # AIR (small features)
afx spawn 42 --protocol bugfix         # Bugfix
afx spawn 42 --protocol tick --amends 30  # TICK amendment to spec 30
afx spawn 42 --protocol spir --soft    # Soft mode
afx spawn 42 --resume                  # Resume existing builder
afx spawn --task "fix the flaky test"  # Ad-hoc task (no issue)
afx spawn 42 --protocol spir --force   # Skip dirty-worktree check

Pre-spawn checklist:

  1. git status — worktree must be clean (or use --force)
  2. Commit specs/plans first — builders branch from HEAD and can't see uncommitted files
  3. --protocol is required for numbered spawns

afx send

Sends a message to a running builder.

afx send [builder] [message]
Flag Description
--all Send to all builders
--file <path> Include file content
--interrupt Send Ctrl+C first
--raw Skip structured formatting
--no-enter Don't press Enter after message

Read the full file on GitHub · 247 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 · 247 lines · 94 tokens per session scan C acf47477425a

Subscribe to this mod's changes

afx is a skill published in the GitHub repository cluesmith/codev (286 stars, last pushed 5d ago), licensed Apache-2.0. It adds 94 tokens to every session and 2,467 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories