sw-closer

sw-closer is an agent for Claude Code from anton-abyzov/specweave. It costs 44 tokens per session (335 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 — 10 skills, 1 agent, 4 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 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 sw-closer

README.md
[![agentmods](https://agentmods.dev/badge/agents/anton-abyzov/specweave/sw-closer.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.svg" alt="Measured on agentmods" 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 335 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.00335
Opus 5 $0.00022 $0.00168
Sonnet 5 $0.00009 $0.00067
Haiku 4.5 $0.00004 $0.00034

Measured 4d ago against content hash 75ac8feb46f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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/agents/sw-closer.md · 33 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).

Workflow

  1. specweave task list <id> — every task must be done or skipped. Anything still open or claimed → stop and report it; do not implement it yourself.
  2. specweave verify <id> — writes reports/verify.json. Red → report the failure, do not close.
  3. Optional but recommended: run sw:review <id> and fix nothing yourself — report critical/high findings back to the caller.
  4. specweave complete <id> --yes. It refuses without a green verify.json unless the caller supplied a --reason; never edit metadata.json by hand.
  5. Report: verify result, review verdict (or "skipped"), commit sha(s), what was deferred.

Rules

  • Never mark tasks done, never write code, never re-run the implementation.
  • If metadata.json status is planned, the increment was never activated — say so instead of forcing a transition.
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. 4d ago Changed · -9 lines · -7 tokens per session 75ac8feb46f8
  2. 8d 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 (160 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 335 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-08-30.

Related

Other agents, from other repositories

adversarial-reviewer

Independent adversarial reviewer for a code change. Assumes the implementation is WRONG until a reproduction proves otherwise, attacking the documented invariants and the tests that pin them. Produces a findings JSON the gate records and enforces. Never fixes the implementation and never sees the author's reasoning …

jakubsuplicki/codument · 67 tokens

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

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens