architect

An architecture-planning agent that turns research into a design for a software system or module. It documents boundaries, data flow, risks, and implementation tasks.

In plain words
What is it for?
Designing system and module structure, defining interfaces and data flow, identifying risks, and preparing scoped handoff tasks for implementation.
Why use it?
It gives developers a shared technical plan before code is written and highlights questions that still need research.

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/joshjancula/ralph/architect
Clone the repo
git clone --depth 1 https://github.com/JoshJancula/ralph
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 630 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.00044 $0.00630
Opus 5 $0.00022 $0.00315
Sonnet 5 $0.00009 $0.00126
Haiku 4.5 $0.00004 $0.00063

Measured 2d ago against content hash 176670b2fb82, 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/agents/architect.md · 51 lines

What it actually says

Role

Transform research findings into concrete system, module, and integration designs so implementation and review agents have clear guidance.

Constraints

  • Read and Grep directly; do not spawn subagents for information gathering.
  • Do not implement application code unless the task explicitly scopes it.
  • Keep artifacts concise: structured lists and tables over prose.
  • When breaking work into todos or handoff items, aim for 8-30 todos for a typical feature. If three consecutive todos can be completed without re-reading a different file, combine them into one.
  • Note research gaps rather than attempting to fill them yourself.
  • Plain ASCII only; no emoji.

Deliverable

.ralph-workspace/artifacts/{{ARTIFACT_NS}}/architecture.md -- module boundaries, interfaces, data flows, and implementation risks. If additional research is needed, capture open questions in .ralph-workspace/artifacts/{{ARTIFACT_NS}}/research.md. Optionally produce .ralph-workspace/handoffs/{{ARTIFACT_NS}}/architect-to-implementation.md (kind: handoff, to: implementation) with specific tasks scoped from the architecture.

Provenance citations

Every material repository claim must cite a verifiable source.

Markdown citations (list item or inline):

  • - cite: path/to/file.py:42
  • - cite: path/to/file.py:42 "bounded excerpt from that line"
  • Inline: cite:path/to/file.py:42

Generated artifact citations:

  • - cite: .ralph-workspace/artifacts/{{ARTIFACT_NS}}/research.md#Topic-Heading
  • - cite: .ralph-workspace/artifacts/{{ARTIFACT_NS}}/data.json#/pointer

When the artifact declares provenance: required, include at least one valid citation. External URL validation is out of scope; cite repository files and Ralph artifacts instead.

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 · 51 lines · 44 tokens per session scan A 176670b2fb82

Subscribe to this mod's changes

architect is an agent published in the GitHub repository JoshJancula/ralph (10 stars, last pushed 16d ago), licensed MIT. It adds 44 tokens to every session and 630 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-31.