agent-architecture
Skill3 starsChanged 38 days agoMITView on GitHub
Choose the simplest AI-system architecture that correctly handles the task’s uncertainty. Use when designing or reviewing runtime autonomy, deciding whether a product needs an agent, or placing reasoning, tools, state and authority boundaries. Do not use for ordinary application architecture or executing a coding plan without an AI runtime design decision.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- taixuann/development-spacetheir own version, first seen Nov 8, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- eshwarvijay/agent-architecturetheir own version, first seen Oct 25, 2026
- ruvnet/ruflotheir own version, first seen Oct 21, 2026
- ruvnet/claude-flowtheir own version, first seen Oct 8, 2026
- poorvith-mp/skills-agentstheir own version, first seen Sep 6, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- ruvnet/claude-flow★ 80ksame name
- ruvnet/ruflo★ 79ksame name
- github/awesome-copilot★ 41ksame name
- eshwarvijay/agent-architecture★ 9same name
- mattstruble/skills★ 2same name
- Zekiog/ruflo★ 2same name
- fidgetcoding/fidgetflo★ 1same name
- jpoindexter/theft-kit★ 1same name
- Soulcynics404/AgentForge★ 1same name
- taixuann/development-space★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- agent-cost-and-latencySkill
- agent-development-workflowSkill
- agent-evalsSkill
- agent-failure-recoverySkill
- agent-guardrailsSkill
- agent-observabilitySkill
- agent-orchestrationSkill
- agent-securitySkill
- agent-state-and-memorySkill
- agent-testingSkill
- deterministic-authoritySkill
- evidence-provenanceSkill
- human-in-the-loopSkill
- prompt-engineeringSkill
- rag-engineeringSkill
- structured-output-designSkill
- tool-designSkill
- tool-evalsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Start with the user outcome, not an agent framework.
- Distinctive: line 42
Verify with a task requiring no model, a fuzzy but fixed workflow, an adaptive tool task, and an authority violation.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Architecture
Start with the user outcome, not an agent framework. Produce a decision record before a large implementation; adapt its detail to the system's risk.
Select the architecture
- Express success as observable outcomes, disallowed actions, and representative acceptance cases. Establish an existing-system or deterministic baseline before choosing autonomy.
- Map important components: deterministic? model needed? why? failure consequence? validation? Put models where interpretation is genuinely uncertain and code where correctness can be specified. Choose among these hypotheses by task fit; they are not a universal ranking:
| Class | Choose when | Validation/comparison check |
| Deterministic software | Rules, inputs and transitions are known | Assert known rules and edge cases; confirm no material semantic interpretation is being guessed |
| Deterministic workflow / model-assisted pipeline | Step order is known; bounded interpretation may use a model | Verify extracted meaning and downstream rules on ambiguous cases |
| Single agent | Next steps depend on observations; no external capability is needed | Verify adaptive choices and termination against a fixed-control baseline |
| Agent with tools | Adaptive reasoning must use bounded external capabilities | Verify contextual tool choices, contracts and admission against fixed routing |
| Multi-agent system | Independent work, specialization, isolation or review creates measured benefit | Net gain exceeds coordination/merge cost; multiple responsibilities alone are insufficient |
| Hybrid design | Components need different control modes, such as a fixed extraction path and bounded adaptive retrieval | Validate each boundary and compare the composition; hybrid does not imply multiple agents |
- Justify autonomy with evidence that next-step choice depends on ambiguous observations; compare simpler plausible alternatives in evals. Do not require brittle regex to fail before using a model for semantic interpretation. A marketing label, unknown future requirements, or a framework's availability is insufficient. Unknown requirements call for a bounded experiment, not a speculative swarm.
Specify the boundaries
- Map one representative run: intent → success/evals → context/state → model proposal → deterministic validation → policy authorization → approval if required → tool execution → evidence → evaluation → deterministic state update.
- Assign owners for reasoning (interpretation/planning), execution (side effects), trust (untrusted inputs), and authority (permissions/business rules). The model may propose actions but cannot promote its prose into trusted state. Show where each input becomes validated data. Keep routing/control, safety/validation/authority and I/O adapters in separate modules with narrow interfaces so each boundary can be tested and audited; a single monolithic agent module hides them.
- Define context sources and budgets; persisted state, memory and source of truth; coherent tool contracts; least-privilege identities; approval gates; and evidence provenance. Use application-owned state for money, permissions and workflow status.
- Define terminal statuses and hard ceilings for time, steps, model/tool calls and spend. Include cancellation, no-progress detection, policy denial, unavailable evidence and partial completion. Completion requires outcome verification, not the agent's declaration.
- Design checkpoints at durable boundaries, ambiguous-side-effect reconciliation, and resume authorization. Capture run IDs, versions, transitions, costs and evaluator outcomes so a failed trajectory is reconstructable.
Deliver and verify
Deliver the classification and rationale, boundary/ownership table, one happy and one denied/failed trajectory, budgets and termination rules, recovery path, and eval release gate. Name unresolved assumptions and the experiment that resolves each.
Verify with a task requiring no model, a fuzzy but fixed workflow, an adaptive tool task, and an authority violation. Do not add a loop to a fixed pipeline. Do not add workers to a single context merely to label them specialist agents.
Requirements and implementation planning may use any available brainstorming, spec or planning skill. This skill owns the deployed system's autonomy decision. Use agent-evals for scoring, deterministic-authority for admission logic, and agent-orchestration for next-step control and justified workers; none is a mandatory dependency.
Reject misleading architecture evidence
Check agentification (fixed rules given adaptive loops), deterministic overcorrection (semantic ambiguity forced into fragile rules), framework cargo culting (no needed framework capability) and multi-agent theater (roles without measurable benefit). Ordinary functions, state machines and queues are valid orchestration implementations. Adopt a framework only for demonstrated resumability, tracing, concurrency or maintainability needs.
Reject validation theater (shape without meaning), evaluation theater (tests unable to reject a bad variant), fallback theater (unreliable output relabeled success) and evidence theater (citations unrelated to the decision). Define the counterexample and acceptance check that rejects each applicable failure. Identify model roles—interpretation, extraction, classification, routing, reasoning, verification or explanation—and evaluate choices per role; one model may fill several roles.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

