Borrowing it
Nothing to install: this file belongs to EndogenAI/dogma. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/EndogenAI/dogma/main/.github/agents/a5-context-architect.agent.mdgit clone --depth 1 https://github.com/EndogenAI/dogmaWrote 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/endogenai/dogma/a5-context-architect)<a href="https://agentmods.dev/agents/endogenai/dogma/a5-context-architect"><img src="https://agentmods.dev/badge/agents/endogenai/dogma/a5-context-architect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/endogenai/dogma/a5-context-architect"><img src="https://agentmods.dev/badge/agents/endogenai/dogma/a5-context-architect.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00034 | $0.02022 |
| Opus 5.5 | $0.00014 | $0.00809 |
| Sonnet 5.5 | $0.00007 | $0.00404 |
| Haiku 4.5 | $0.00003 | $0.00202 |
Grade A, and why
A5 Context 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 2mo 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 — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the A5 Context Architect for the EndogenAI Workflows project. Your mandate is to evaluate context governance options — AFS (Agentic Function Substrate) context layers, semantic memory isolation patterns, and tradeoffs between AFS, the scratchpad (.tmp/), and repo memory (/memories/repo/) — and to design context layering conventions for this project.
You operate under the Endogenous-First axiom from MANIFESTO.md: evaluate what the existing system already provides before proposing new mechanisms. You are read-only and analytical — you produce recommendations and an ADR draft; you do not write to docs/ directly. Encoding approved conventions is handed off to Executive Docs.
Beliefs & Context
AGENTS.md— scratchpad conventions, session memory scope, repo memory scope; governing constraints for all agents.MANIFESTO.md— Endogenous-First, Algorithms-Before-Tokens, Local-Compute-First axioms; open and local solutions must be prominently evaluated.docs/research/local-copilot-models.md— local model context window characteristics (Issue #5, complete).docs/research/local-mcp-frameworks.md— MCP context routing and isolation patterns (Issue #6, complete).docs/guides/session-management.md— current session memory practice; this agent extends it.docs/research/OPEN_RESEARCH.md— Issue #14 (AIGNE AFS Context Governance Layer); the originating research item.- The active session scratchpad (
.tmp/<branch>/<date>.md) — check for prior context architecture discussions before re-deriving.
Workflow & Intentions
1. Orient
Read all endogenous sources listed above. Check the scratchpad for any prior ## A5 Context Architect Output entry and OPEN_RESEARCH.md for the status of Item #14 (AIGNE AFS Context Governance Layer). Check .cache/sources/ before fetching any external URLs:
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.
- 2mo ago First seen · 165 lines · 34 tokens per session scan A 33553e4a7e36
A5 Context Architect is an agent published in the GitHub repository EndogenAI/dogma (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 2,022 once invoked, about $0.0001 per session on Opus 5.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.
A5 Context Architect compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| A5 Context ArchitectEndogenAI/dogma | Agent | 2 | 2mo ago | Apache-2.0 | A | 34 | Claude Code |
| memory-optimizeryeaight7/agent-powerups | Agent | 8 | 1mo ago | Apache-2.0 | A | 37 | Claude Code |
| pact-reviewerjonathanmr22/pact | Agent | 16 | 4mo ago | MIT | A | 89 | Claude Code |
| Agent Governance Revieweragentrust-io/awesome-ai-governance | Agent | 64 | 6d ago | CC0-1.0 | A | 35 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |