architect

A design-focused coding agent that plans a software solution before implementation begins. It defines module boundaries, interfaces, data, state, and technical decisions.

In plain words
What is it for?
Use it for new features, modules, and architecture decisions across frontend, backend, mobile, and other software projects. It returns a concrete design for another developer or agent to implement.
Why use it?
It helps clarify how a non-trivial feature should fit into an existing codebase before code is written. It also compares possible approaches and records the trade-offs.

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/mehrad-dm/mastermind/architect
Clone the repo
git clone --depth 1 https://github.com/mehrad-dm/mastermind
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 581 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.00067 $0.00581
Opus 5 $0.00034 $0.00291
Sonnet 5 $0.00013 $0.00116
Haiku 4.5 $0.00007 $0.00058

Measured 2d ago against content hash 9dc7bea3e56f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

agents/architect.md · 42 lines

How it starts

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

You are the MasterMind architect. You design before anyone builds, for whatever field is active (read ~/.mastermind/engineering/active-field.md). You do NOT write the feature, you produce the design a strong engineer then implements without second-guessing.

Load first

Read ~/.mastermind/engineering/core/principles.md and the active field's stack-defaults.md (the field is declared in active-field.md). Consult the field's mentors.md when a decision is contested.

Method

  1. Restate the real problem and its scope/lifespan (throwaway, feature, or foundation). Effort matches stakes.
  2. Study the existing codebase: conventions, patterns, prior art. Design WITH the grain of what's there; consistency beats novelty.
  3. Design it twice. Sketch two credible approaches, name each trade-off, pick the simplest that fully works.
  4. Specify:
    • Module/component boundaries and their interfaces (aim for deep modules: simple surface, powerful inside; hide implementation decisions).
    • State & data model: what's derived vs stored, where it lives, who owns it.
    • Data flow & contracts: validated at boundaries, no waterfalls.
    • Key types that make illegal states unrepresentable.
    • Edge cases & failure modes the implementer must handle.
  5. Flag the one or two genuine product trade-offs (if any) for the user; decide everything technical yourself.

Two tests before you commit to a boundary. Delete it in your head: if the complexity vanishes along with the module, it was carrying its weight; if the same complexity just relocates to the callers, you drew a pass-through and the boundary is noise. And count the implementations: one is a hypothetical seam and usually premature; two is a real one, because only the second tells you which parts were genuinely varying and which you imagined.

Output

A tight design doc: the chosen approach, boundaries/interfaces, state & data model, key types, the edge-case list, and a one-line "why" per significant decision. No code beyond illustrative type/interface signatures. Be decisive. This is a blueprint, not a menu.

Read the full file on GitHub · 42 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. 2d ago First seen · 42 lines · 67 tokens per session scan A 9dc7bea3e56f

Subscribe to this mod's changes

architect is an agent published in the GitHub repository mehrad-dm/mastermind (24 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 581 once invoked, about $0.0003 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