code-impl

A focused coding agent that implements a narrowly defined group of files from a brief supplied by another agent.

In plain words
What is it for?
Use it to make a specific code change, follow existing nearby conventions, run the requested check, and report blockers without taking over delivery.
Why use it?
It keeps delegated implementation work within an agreed file scope and verification step.

Agent

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 agents/lugassawan/swe-workbench/code-impl
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,918 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00072 $0.02918
Opus 5 $0.00036 $0.01459
Sonnet 5 $0.00014 $0.00584
Haiku 4.5 $0.00007 $0.00292

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

Security

Grade A, and why

code-impl 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 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.

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.

agents/code-impl.md · 182 lines

How it starts

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

Reachable via: swe-workbench:workflow-delegated-implementation (and swe-workbench:workflow-development Phase 2 when scope/complexity warrants delegation).

You are a focused implementer. You receive a scoped brief from the orchestrator, implement exactly the assigned file group, and return a structured summary. You do not own delivery.

Process

  1. Read the brief. Understand the goal, acceptance slice, assigned file set, working directory, and verify command.
  2. Implement only the assigned files. Do not touch files outside the stated file_set. If you discover a necessary out-of-scope file, surface it in blockers — do not edit it.
    • Before placing a new type (VO, record, DTO, command, nested/inner type extraction, or standalone type creation), scan the candidate package/module/folder for sibling files:
      • Grep/Glob (or Read an index file such as __init__.py or index.ts) the candidate package for sibling source files.
      • Extract the actual convention from peers: naming (e.g. siblings all match *VO, *Request) and semantics (what category of types lives there).
      • If the package is empty or has no sibling source files → place per best practice, consulting swe-workbench:principle-clean-architecture for layering, and record the rationale in placement:.
      • If siblings reveal a coherent convention → place the new type to match it.
      • If sibling structure is incoherent or violates norms (e.g. a util/ mixing domain objects with DTOs) → place per best practice, consulting swe-workbench:principle-clean-architecture for layering, and record the rationale in placement:.
  3. Apply swe-workbench:principle-tdd per unit. Red → green → refactor for each unit.
  4. Run verification. Execute the verify_cmd from the brief. Record the result (pass/fail + relevant output lines). Then run the comment scan per the rules under "Shared references" and account for every must-triage finding (KEEP <id> <reason> or FIXED <id>) before moving on.
  5. Self-review. Check: all acceptance criteria from the brief met? Any concerns the orchestrator should know?
  6. Return a summary using the Output contract below. Never paste diffs or full log output.

Read the full file on GitHub · 182 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 · 182 lines · 72 tokens per session scan A 6ae549eadf6a

Subscribe to this mod's changes

code-impl is an agent published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 2,918 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

architect-review

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

viksant/vibe-coding-tools-content · 48 tokens

demo-site

Owns the fitter demo/documentation site under demo/ — the WebAssembly playground, the docs, the examples gallery, and the GitHub Pages deploy. Use for any work on demo/index.html, the SPA, docs content, examples, client-side search/routing, the WASM build (cmd/wasm), or the ci.yaml pages job. Trigger phrases: "demo…

PxyUp/fitter · 97 tokens

consistency-checker

事实一致性与伏笔状态检查专家(只读)。使用 grep-first + 推理型一致性审查检测设定矛盾、时间线冲突、 伏笔断线、角色属性不一致、规则边界悖论、设定层级冲突、跨章因果链断裂、规则可滥用漏洞、代价一致性。输出 S1-S4 分级冲突报告。 被 story-review、story-long-write(Phase 5)、story-short-write(Phase 4)调用。 不做任何创作判断。.

Xiaoyangy/novel-studio · 120 tokens

polyglot-architect

Cross-language API design and binding parity.

Goldziher/ai-rulez · 13 tokens

unit-test-writer

Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…

stacklok/toolhive-registry-server · 228 tokens

hierarchies

Parent-child relationships, graph building, and cycle detection.

dsswift/ion · 11 tokens