sw-closer

sw-closer is an agent for Claude Code from anton-abyzov/specweave. It costs 44 tokens per session (463 once invoked), scanned A, original, MIT.

An agent that closes a completed SpecWeave increment, meaning a defined unit of project work. It runs the project's completion checks and synchronisation steps in a fresh working context.

In plain words
What is it for?
Use it after finishing an increment to run code review, simplification, quality checks, product-manager validation, and synchronisation. It can also try specified fixes when initial completion checks find mismatches.
Why use it?
It reduces the risk of missing review, testing, product checks, or project-record updates when the implementation session is already large.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the sw plugin — 11 skills, 1 agent, 2 hooks shipped together

Good fit Use it after finishing an increment to run code review, simplification, quality checks, product-manager validation, and synchronisation. It can also try specified fixes when initial completion checks find mismatches.

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

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 11 skills, 1 agent, 2 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 sw-closer

README.md
[![agentmods](https://agentmods.dev/badge/agents/anton-abyzov/specweave/sw-closer/github.svg)](https://agentmods.dev/agents/anton-abyzov/specweave/sw-closer)
Your own site
<a href="https://agentmods.dev/agents/anton-abyzov/specweave/sw-closer"><img src="https://agentmods.dev/badge/agents/anton-abyzov/specweave/sw-closer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sw-closer

Your own site · 80×15
<a href="https://agentmods.dev/agents/anton-abyzov/specweave/sw-closer"><img src="https://agentmods.dev/badge/agents/anton-abyzov/specweave/sw-closer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 463 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.00044 $0.00463
Opus 5.5 $0.00018 $0.00185
Sonnet 5.5 $0.00009 $0.00093
Haiku 4.5 $0.00004 $0.00046

Measured today against content hash d9aaf545fb1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sw-closer 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 today.

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/agents/sw-closer.md · 44 lines

What it actually says

Increment Closer Subagent

You close one SpecWeave increment and report back. You run in a fresh context on purpose: the session that wrote the code should not be the one judging it.

Your prompt contains the increment id (and optionally its path).

Overrides to the preloaded sw:done

Follow sw:done with these changes, and nothing else:

  1. Step 1 (Board): an open or claimed task is reported, never implemented or skipped.
  2. Step 3 (Review): run sw-review but fix nothing; report critical and high findings.
  3. Skip step 4 (Docs) and step 6 (Ship); the caller owns both.
  4. metadata.json status planned: the increment was never activated. Report it and stop instead of forcing a transition.
  5. Step 5 (Complete) runs only on a ship verdict with no critical or high finding. On fix first, or any critical or high finding, skip it: completed:false, and list the findings under blockers so the caller fixes them and completes.

Never mark tasks done, write code or edit metadata.json by hand.

Return

Reply with this JSON only, so the caller can check it against the files:

{"increment":"0042","verify":{"ok":true,"path":"reports/verify.json"},
 "review":{"verdict":"fix first","path":"reports/review.md","critical_high":[{"severity":"high","file":"src/a.ts","line":88,"summary":"..."}]},
 "completed":false,"blockers":["review: high src/a.ts:88"],"deferred":[],"commits":["abc1234"]}

review.verdict is "skipped" when no review ran; blockers names open tasks, a red verify, a planned status or review findings that held back completion.

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. today Changed · +11 lines d9aaf545fb1e
  2. 1mo ago Changed · -9 lines · -7 tokens per session 75ac8feb46f8
  3. 1mo ago First seen · 42 lines · 51 tokens per session scan A 5250e77599e4

Subscribe to this mod's changes

sw-closer is an agent published in the GitHub repository anton-abyzov/specweave (169 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 463 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

Other agents, from other repositories

code-reviewer

Reviews a single feature's source files for bugs, security issues, performance problems, and code quality concerns. Reports findings by severity. Does NOT make breaking changes — only safe, non-breaking fixes.

jakubsuplicki/codument · 43 tokens

doc-scanner

Scans a codebase to identify features, modules, and documentation gaps. Maps the project structure and determines which source files belong to which features. Use for bootstrap scanning of undocumented projects.

jakubsuplicki/codument · 41 tokens

adversarial-planner

Independent adversary for an implementation PLAN, before any code is written. Attacks the written plan's scope, non-goals, and decisions against the committed constraints it must honor, and surfaces only grounded objections for the human to decide. Never rewrites the plan and never sees the author's reasoning …

jakubsuplicki/codument · 82 tokens

doc-writer

Creates and updates feature documentation by reading source code and writing real documentation content. Invoke with specific instructions about which doc to create/update and which source files to read.

jakubsuplicki/codument · 36 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens