auto

auto is a skill for Claude Code from anton-abyzov/specweave. It costs 40 tokens per session (834 once invoked), scanned A, original, MIT.

An unattended workflow that keeps feeding an agent back into its task loop until planned work is finished or a safety limit is reached. A Stop hook controls whether another turn runs.

In plain words
What is it for?
Use it to run one or more increments until their tasks are complete, inspect progress, preview the run, reset stale state, or cancel it.
Why use it?
It removes the need to manually restart the agent after every task while guarding against stale sessions, repeated failures, and endless loops.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the sw plugin — 10 skills, 1 agent, 4 hooks shipped together

Good fit Use it to run one or more increments until their tasks are…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anton-abyzov/specweave/auto
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.

Any agent
npx skills add anton-abyzov/specweave --skill auto
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/specweave

Made for: Claude Code.

Or install sw, the plugin that ships this one along with the rest of its 10 skills, 1 agent, 4 hooks.

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 auto

README.md
[![agentmods](https://agentmods.dev/badge/skills/anton-abyzov/specweave/auto.svg)](https://agentmods.dev/skills/anton-abyzov/specweave/auto)
Your own site
<a href="https://agentmods.dev/skills/anton-abyzov/specweave/auto"><img src="https://agentmods.dev/badge/skills/anton-abyzov/specweave/auto.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00040 $0.00834
Opus 5 $0.00020 $0.00417
Sonnet 5 $0.00008 $0.00167
Haiku 4.5 $0.00004 $0.00083

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

Security

Grade A, and why

auto 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.

plugins/specweave/skills/auto/SKILL.md · 66 lines

How it starts

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

Auto Mode

Unattended execution. specweave auto writes a session file; the plugin's Stop hook reads it after every turn and either blocks (with what remains) or lets the session end. There is no daemon and no background process — the loop is the hook.

Start / inspect / stop

Intent Command
Start on specific increments specweave auto 0042 0043
Start on whatever is active specweave auto
Preview without activating specweave auto --dry-run
Clear stale session state specweave auto --reset
Progress of the running session specweave auto-status [--json]
Stop it (emergency) specweave cancel-auto [--force]

How the loop actually ends

The Stop handler decides each turn, in this order (any error → the session is released, never trapped):

  1. No auto-mode.json, or active !== true → session over.
  2. Session file older than auto.maxSessionAge (default 7200 s) → released.
  3. Turn count above auto.maxTurns (default 20) → safety stop.
  4. stop_hook_active and no progress for 3 consecutive turns → loop guard releases it.
  5. No increment left to work on → released.
  6. Zero pending tasks and every AC satisfied → blocks once with all_complete_needs_closure — that is your cue to close.
  7. Otherwise → blocks with <P> task(s) / <A> AC(s) remain and you keep going.

So: you never decide to keep looping. You do the next task, stop, and the hook either returns you or lets you go.

What you do inside the loop

  1. specweave task next <id>task claim → implement inside the task's Files → commit <id>: …specweave task done T-NN <id> --run "<Test>". Same loop as sw:do.
  2. Test fails → fix it in the next turn. Never mark a task done without a passing run.
  3. Genuinely blocked (missing secret, ambiguous spec, external dependency) → specweave task block T-NN <id> --note "<what is missing>" and stop. Blocked tasks do not count as remaining work, so the loop ends instead of thrashing.
  4. On all_complete_needs_closure: specweave verify <id>, then sw:done <id>.

Read the full file on GitHub · 66 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 · 66 lines · 40 tokens per session scan A e4a9664070f4

Subscribe to this mod's changes

auto is a skill published in the GitHub repository anton-abyzov/specweave (159 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 834 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.