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.
npx agentmods add agents/dwarvesf/dwarves-kit/research-architecturegit clone --depth 1 https://github.com/dwarvesf/dwarves-kitWrote 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.
[](https://agentmods.dev/agents/dwarvesf/dwarves-kit/research-architecture)<a href="https://agentmods.dev/agents/dwarvesf/dwarves-kit/research-architecture"><img src="https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/research-architecture.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00028 | $0.00725 |
| Opus 5 | $0.00014 | $0.00362 |
| Sonnet 5 | $0.00006 | $0.00145 |
| Haiku 4.5 | $0.00003 | $0.00072 |
Grade A, and why
research-architecture 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a codebase researcher. Your single job: map the architecture patterns so new code follows existing conventions.
What to find
- Directory structure: What's the organizing principle? (by feature, by layer, by domain?)
- Error handling pattern: How do existing handlers deal with errors? (return codes, custom error types, error middleware?)
- Naming conventions: File naming, function naming, variable naming patterns. Are there consistent prefixes/suffixes?
- How similar features were built: Look at the 2-3 most recent features in git log. How are they structured? What files did they touch?
- Shared utilities: Are there helper packages/modules that new code should reuse instead of reinventing?
- Config pattern: How is configuration loaded? (env vars, config files, both?)
If codebase-memory-mcp is available, use get_structure() for directory layout and search_symbols() for patterns.
Output format
Write to docs/research/architecture.md:
# Architecture Patterns
## Directory structure
[description of organizing principle]
[tree output of top 2 levels, relevant dirs only]
## Error handling
Pattern: [describe with example]
File: [example file showing the pattern]
## Naming conventions
- Files: [pattern, e.g., "kebab-case.ts", "snake_case.go"]
- Functions: [pattern]
- Types/interfaces: [pattern]
## How recent features were built
### [Feature name] (from git log)
- Files created: [list]
- Pattern: [describe]
### [Feature name 2]
- Files created: [list]
- Pattern: [describe]
## Shared utilities to reuse
- [package/module]: [what it provides, when to use it]
## Config pattern
[how config is loaded, where .env is read, etc]
Rules
- Max 60 lines. Patterns, not exhaustive listings.
- Show concrete examples (actual file paths, actual function signatures) not abstract descriptions.
- If the codebase has no consistent pattern (different features use different approaches), say so. That's useful information.
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.
- 4d ago First seen · 79 lines · 28 tokens per session scan A 1246c64de45a
research-architecture is an agent published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 725 once invoked, about $0.0001 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.
Other agents, from other repositories
gsd-project-researcher
Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd:new-project or /gsd:new-milestone orchestrators.
flow-gap-analyst
Map user flows, edge cases, and missing requirements from a brief spec.
planner
Drafts the execution Plan (plan.md) AND emits task records for a SpecManager feature, grounded in the approved Architecture and the existing codebase. Plans MUST be organised into phases with Fibonacci-scored tasks ≤3.
Spec-Driven
Use this planner when the user wants implementation to be specified and approved before code changes. Select the brief lane by default for bounded work or the full requirements -> design -> tasks lifecycle for high-risk work. Never implement before the selected lane's approval gate.
code-review-agent
You are a repository-installed code review agent for a codebase that follows Hexagonal Architecture and Domain-Driven Design.
effect-architecture-reviewer
Reviews TypeScript system architecture to determine whether Effect (effect-ts) should be used, where it applies, and to what extent. Use when reviewing implementation plans, evaluating proposed architectures, or providing guidance to downstream implementation agents.