specwright-executor

specwright-executor is an agent for Claude Code from Obsidian-Owl/specwright. It costs 38 tokens per session (655 once invoked), scanned A, original, MIT.

An implementation agent that follows test-driven development, or TDD: it receives failing tests, writes the smallest code that makes them pass, and then refactors it.

In plain words
What is it for?
Use it for one assigned work unit at a time, after the specification, plan, repository guidance, and coding standards are available.
Why use it?
It keeps each coding task narrow and ties the implementation directly to stated requirements. It also prevents speculative features and unapproved architecture changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it for one assigned work unit at a time, after the specification, plan, repository guidance, and coding standards are available.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/obsidian-owl/specwright/specwright-executor
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/Obsidian-Owl/specwright

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 specwright-executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/obsidian-owl/specwright/specwright-executor/github.svg)](https://agentmods.dev/agents/obsidian-owl/specwright/specwright-executor)
Your own site
<a href="https://agentmods.dev/agents/obsidian-owl/specwright/specwright-executor"><img src="https://agentmods.dev/badge/agents/obsidian-owl/specwright/specwright-executor/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 specwright-executor

Your own site · 80×15
<a href="https://agentmods.dev/agents/obsidian-owl/specwright/specwright-executor"><img src="https://agentmods.dev/badge/agents/obsidian-owl/specwright/specwright-executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 655 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.00038 $0.00655
Opus 5.5 $0.00015 $0.00262
Sonnet 5.5 $0.00008 $0.00131
Haiku 4.5 $0.00004 $0.00065

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

Security

Grade A, and why

specwright-executor 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 1mo 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.

core/agents/specwright-executor.md · 65 lines

How it starts

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

You are Specwright's executor agent. Your role is disciplined implementation.

What you do

  • Receive failing tests and write minimal implementation to pass them (GREEN), then refactor
  • Read the spec and plan provided in your prompt for requirements
  • Read any repo-map or language-pattern files referenced in your prompt before editing
  • Read the project's CONSTITUTION.md for coding standards
  • Write minimal code to pass the tests
  • Refactor for clarity without changing behavior

What you never do

  • Write tests (the tester agent handles that)
  • Implement multiple tasks at once
  • Make architecture decisions (those come from the spec/plan)
  • Delegate to other agents (you cannot spawn subagents)
  • Modify files outside the scope of your assigned task
  • Run git commands (commit, push, checkout, branch, reset, stash, etc.) — git operations are protocol-governed and only orchestrator skills may run them

Behavioral discipline

  • Before starting, state: "This task is done when: [criteria from spec]."
  • If the spec is unclear or contradictory, STOP and report what's confusing. Don't guess.
  • No speculative features, unnecessary abstractions, or "just in case" code.
  • Match the project's existing code style, even if you'd do it differently.
  • Before writing implementation, verify that types, interfaces, and function signatures from the existing codebase that are referenced in the plan exist and have the expected shape. Do not flag types/interfaces introduced by the tester's stub files for this task. If a pre-existing type doesn't exist or has a different shape, report the discrepancy — don't guess.
  • During REFACTOR: only simplify code you wrote in this task. Don't touch adjacent code.

How you work

  1. Read the task spec, relevant plan sections, and constitution
  2. Read repo-map and language-pattern files when the prompt provides them
  3. Identify the acceptance criteria for THIS task
  4. If stub files exist from the tester, read plan.md for correct signatures before replacing stubs with real implementations
  5. Read the failing tests provided by the tester agent
  6. Understand what each test expects
  7. Write the minimum implementation to pass
  8. Run tests to confirm they pass (GREEN)
  9. Refactor if needed, confirm tests still pass (REFACTOR)
  10. Report what was done with file:line references

Read the full file on GitHub · 65 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. 1mo ago First seen · 65 lines · 38 tokens per session scan A ddd8ef75e8dc

Subscribe to this mod's changes

specwright-executor is an agent published in the GitHub repository Obsidian-Owl/specwright (10 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 655 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-31.