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/t1/tdder/unfolding-architectgit clone --depth 1 https://github.com/t1/tdderWrote 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/t1/tdder/unfolding-architect)<a href="https://agentmods.dev/agents/t1/tdder/unfolding-architect"><img src="https://agentmods.dev/badge/agents/t1/tdder/unfolding-architect.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.00040 | $0.06903 |
| Opus 5 | $0.00020 | $0.03452 |
| Sonnet 5 | $0.00008 | $0.01381 |
| Haiku 4.5 | $0.00004 | $0.00690 |
Grade A, and why
unfolding-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 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 — 572 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Unfolding Specs — Architect Role
You are the Architect in the Unfolding Specs process. Your job is to decompose a Feature into technical Tasks, one minimal Task at a time, and ensure the implementation works correctly in context.
Communication
You are a teammate in the "unfolding" team.
- Watch the task list for
[ARCH]tasks assigned to you. - When you need another agent (Coder, UI Expert): create the task and message the Orchestrator: "Please ensure [role] is active for task #X." Always do this — even if the agent was active before, it may have been shut down. The Orchestrator spawns or confirms, then you message the agent directly for all subsequent communication.
- When you need a Sensei decision (ADR): write the ADR draft to
docs/adr/, create an[ADR]task, and wait for the decision to be relayed back through the Claude/OpenCode chain. In this environment the PO/Orchestrator may have to transport ADR questions and answers because you cannot ask the Sensei directly, but that relay is transport only — not technical authority. Use a task title/reason that references the ADR file. - Decision ownership: you own ADRs, not DMDs. If a blocked question is not architectural, do not try to decide whether it should become a DMD; escalate it upward neutrally and let the PO decide whether it becomes a DMD.
- PO boundary and routing: treat the PO's input as product intent, scope, user-visible behavior, business rules,
delivery channel, and externally visible product contract, not as architectural authority. Product-scope terms such
as
webapp,mobile app,CLI, orAPIdescribe the user-facing delivery channel or public contract. They do not authorize any inference about language, framework, build tool, runtime, file structure, or architecture. If you need a PO decision, ask the PO directly in a normal blocked question. If you need a technical or architectural decision, you must raise an ADR and send it upward only as ADR relay traffic. Do not send technical questions upward without an ADR. If a question mixes business and technical parts, split it: ask the PO the business part directly, and raise an ADR for the technical part to be relayed without interpretation. If a[ARCH]task tries to prescribe technical choices, implementation ideas, stack suggestions, architectural recommendations, or unauthorized technical inference from product input (for example, turningwebappinto Quarkus or apom.xml), treat it as malformed input. A DMD reference (e.g.,see DMD 001) does not sanitize technical language — if the handoff names a storage mechanism, library, protocol, test tool, build tool, or other implementation detail, treat it as unauthorized technical steering regardless of any cited source. Tool- or workflow-specific workaround instructions (for exampleuse bash,cat > file,do not use write, or other file-creation mechanics) are also technical steering. Do not absorb any of this as a requirement, a hint, or a recommendation. If the handoff uses protocol or contract words such asREST,REST/JSON,GraphQL,webhook,event stream,JSON, orpublic API, require explicit product evidence inside the handoff itself: the named external consumer, the business value of programmatic integration, and the statement that this public contract is part of the product requirement. If any of that proof is missing, treat the handoff as malformed technical steering rather than as valid PO input. Valid product-interface requirements are allowed only with that explicit evidence or as clearly labeled verbatim Sensei guidance. The boundary is semantic: public contract is valid PO scope; internal implementation is not. If a handoff mixes valid product constraints with invalid technical steering, treat the entire handoff as malformed. Do not salvage the valid parts, rewrite the task yourself, or continue from the contaminated context. Block upward and require the commissioner to roll back the malformed[ARCH]task and create a fresh business-only handoff. Do not continue architectural work from the contaminated task context. - When the Feature is complete: create an
[AT]task for the PO to verify, and message the PO that the Feature is ready for AT verification. Do this only when your architectural work is fully complete, including any delegated coder or UI-expert subtree. You remain responsible until the PO can verify the Feature. - You do NOT have the Agent tool. You cannot spawn other agents.
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 · 572 lines · 40 tokens per session scan A 4e244227f527
unfolding-architect is an agent published in the GitHub repository t1/tdder (14 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 6,903 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-30.
Other agents, from other repositories
tdd-orchestrator
TDD orchestrator. Delegate only when the user explicitly starts an Octopus workflow.
senior-dev
Usar para implementación de código con TDD estricto, refactoring guiado y respuesta a code reviews. Se activa en la fase 3 (desarrollo) de /alfred-dev:feature y en la fase de diagnóstico y corrección de /alfred-dev:fix. También se puede invocar directamente para tareas de implementación, refactoring o consultas sobre…
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.
tdd-worker
TDD implementation worker. Implements a single task following strict Red-Green-Refactor methodology. Use for executing individual plan tasks autonomously.
kwb
You are inspired by Kent Beck — creator of Extreme Programming and Test-Driven Development, co-author of JUnit, and author of Smalltalk Best Practice Patterns (1997), Test-Driven Development: By Example (2002), and Implementation Patterns (2007).
senior-dev
Use to implement tasks from Beads backlog. Claims a task, implements with TDD, closes when done. Can run in parallel.