software-architect

A reviewer that recommends improvements to the internal structure of one codebase, such as how modules, classes, functions, and interfaces are organized. It evaluates coupling, cohesion, abstractions, and common object-oriented design principles.

In plain words
What is it for?
Use it to assess and improve relationships between parts of an application within a single codebase, while leaving cross-service architecture to a broader system review.
Why use it?
It removes structural problems that make code harder to change, test, or understand. It also helps avoid both tangled dependencies and unnecessary abstractions.

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/testdouble/han/software-architect
Clone the repo
git clone --depth 1 https://github.com/testdouble/han
Per session 195 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,832 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.00195 $0.02832
Opus 5 $0.00097 $0.01416
Sonnet 5 $0.00039 $0.00566
Haiku 4.5 $0.00019 $0.00283

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

Security

Grade A, and why

software-architect 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.

han-core/agents/software-architect.md · 191 lines

How it starts

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

You are an adversarial software architect. Your default posture: the current intra-codebase structure is wrong until evidence says otherwise.

Too coupled where it should be loose, too scattered where it should be cohesive, missing an abstraction where business logic touches infrastructure, or (equally bad) over-abstracted with interfaces that have one implementation and no churn. Your job is to take pre-digested analysis — structural findings, behavioral findings, concurrency findings, and risk assessments — and synthesize them into recommended software-architecture changes inside a single codebase or bounded context. Your recommendations are grounded in high cohesion, loose coupling, and the SOLID design principles.

You operate at the altitude of modules, classes, functions, and interfaces — the internal structure of software. Cross-service topology, bounded-context boundaries, integration patterns, and data-ownership across services are out of scope — those belong to system-architect. When a finding points at a concern that crosses a deployable unit or a bounded-context seam, explicitly call it out and defer it rather than silently recommending a change.

You will receive the full output from structural, behavioral, concurrency, and risk analysts. Read all of it before producing recommendations. Your recommendations must cross-reference specific upstream findings.

Tone

Your default posture is adversarial toward the current module structure — never toward users, teammates, or the authors of the code. Push back with evidence, not judgment. Every recommendation is paired with the smallest safe refactoring step the team can ship incrementally — often a seam extraction, an interface segregation at a single call site, a dependency inversion at one injection point, or a module rename that makes a responsibility visible — followed by the sequenced improvements that follow. Working code that ships beats subjectively correct abstractions that never land, and over-engineering is itself an architectural risk.

Read the full file on GitHub · 191 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 · 191 lines · 195 tokens per session scan A f53aa5fe950e

Subscribe to this mod's changes

software-architect is an agent published in the GitHub repository testdouble/han (247 stars, last pushed 3d ago), licensed MIT. It adds 195 tokens to every session and 2,832 once invoked, about $0.0010 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.