Raw capture β raw/agentic-product-standard.md
url: https://github.com/Moai-Team-LLC/agentic-product-standard date_fetched: 2026-07-05 backfilled: true
Distilled from the production practices of Anthropic, OpenAI, Cognition, Sierra, LangChain, and leading practitioners β 2024β2026.
Product Standard β Β· Agent Standard β Β· Install the Skills β Β· Decision Checklist β
An agentic product is not "a product with AI."It is a product where part of the process is dynamically directed by an LLM within adeterministic architecturewithexplicit trust boundaries.
Most teams ship agent demos. Few ship agents that survive contact with production. The difference is almost never the model β it's the architecture, the harness, and the eval discipline around it. This repo is the field-tested standard for that work, plus a set of Claude Code skills that put it into your editor.
Six principles converged independently across the production practices of the labs and the leading practitioners. They are the spine of every decision in this standard:
| # | Principle | What it means |
|---|---|---|
| 1 | Determinism by default, agency by necessity | Every degree of autonomy must be earned, not granted upfront. |
| 2 | Architecture beats framework | Patterns outlive libraries. |
| 3 | Harness > model | 98% of reliability lives in the code aroundthe LLM. |
| 4 | Context engineering is the core discipline | What enters the context window determines everything. |
| 5 | Eval-driven development is non-negotiable | No measurement β no improvement. No trace review β no understanding. |
| 6 | Security is a structural property, not a guardrail | Safety comes from architecture β identity, least privilege, isolation, pinned tools β not filters bolted onto the edges. |
The single most important rule:Architecture is what remains when the model improves. The model is the variable, the harness is the constant. Invest proportionally.
agentic-product-standard/
βββ STANDARD.md β the canonical standard (product level)
βββ AGENT_STANDARD.md β the single-agent operational standard (mirrored in agent-builder)
βββ SCORECARD.md β M0βM3 self-assessment, mapped to the Autonomy Ladder
βββ CONTEXT.md β shared vocabulary every skill speaks
βββ setup.sh β quick setup: skills + (optional) AgenticMind, one run
βββ templates/security/ β red-team kit: lethal-trifecta gate, injection suite, MCP pin
βββ templates/ci/eval-gate.yml β CI workflow that blocks merges on eval regression
βββ examples/agenticmind-case-study.md β reference implementation, audited against the canon
βββ docs/adr/ β architecture decision records (why the repo is shaped this way)
βββ skills/ β Claude Code skill set (operationalizes the standard)
βββ agent-builder/ β single-agent track (bundles AGENT_STANDARD.md + templates/)
βββ agentic-product-architect/ β multi-agent track: master router + sub-skills
βββ SKILL.md β master: router + philosophy
βββ architecture-design/ β autonomy ladder, 5 patterns, single vs multi
βββ context-engineering/ β write/select/compress/isolate, the 40% rule
βββ harness-engineering/ β the 8 layers around the LLM loop
βββ tool-design-mcp/ β MCP-first, <20 tools, RAG-MCP, sandboxing
βββ memory-architecture/ β Mem0 / Zep / Letta / LangMem / files
βββ tenant-isolation/ β multi-tenant: pooled/silo, leakage paths, leakage eval
βββ durable-execution/ β Temporal Workflow + Activity pattern
βββ eval-driven-dev/ β Husain/Shankar pyramid + judge calibration
βββ framework-selection/ β LangGraph / Claude SDK / OpenAI SDK / others
βββ production-readiness/ β 12-point Definition of Done audit
βββ antipatterns-review/ β code review through 12 known failure modes
Two standards, one practice:
STANDARD.md- product-levelreference β read it once, return to it often.AGENT_STANDARD.md- single-agentoperational standard β contract, schemas, permission tiers, durable state, evals (also bundled into the- agent-builderskill so it ships self-contained).skills/- practiceβ two Claude Code skills (- agent-builderfor one agent,- agentic-product-architectfor multi-agent products) that auto-load the right guidance while you design, build, and review.The skill set works with Claude Code. Two tracks share the same sub-skills: ** agent-builder** for building one production-grade agent (it bundles
AGENT_STANDARD.md + copy-paste templates/), and β a master skill that routes to ten specialized sub-skills for multi-agent products. Each is independently triggerable.
agentic-product-architectIf you have skills (the community skill installer), pull the skill straight from this repo β it scans skills/, lets you pick agent-builder and/or agentic-product-architect, and installs them into the agents you choose:
npx skills@latest add Moai-Team-LLC/agentic-product-standardThis installs the
skills only. To also stand up the runnable memory layer (AgenticMind), run thesetup.sh --with-agenticmindflow below β or, after adding the skills, point your agent's MCP client at a self-hosted AgenticMind (see its Quickstart).
setup.sh installs the skills and, in the same run, can stand up AgenticMind β the reference implementation β as a runnable knowledge & memory layer your agent calls over MCP. Design guidance and a working substrate, end to end:
git clone https://github.com/Moai-Team-LLC/agentic-product-standard.git
cd agentic-product-standard
./setup.sh --with-agenticmind # skills β clone AgenticMind β its setup.sh (deps + Postgres + migrations)
Run bare (./setup.sh) and it installs the skills, then asks whether to set AgenticMind up next. AgenticMind's leg needs Bun β₯1.3 + Docker; the skills themselves need neither.
./setup.sh # install skills here, then prompt about AgenticMind
./setup.sh --user # install skills into ~/.claude/skills (every project)
./setup.sh --skills-only # skills only, no prompt
User-level (available in every project):
cp -R agentic-product-standard/skills/* ~/.claude/skills/ # both tracks; they share sub-skillsProject-level (scoped to one repo):
mkdir -p .claude/skills
cp -R /path/to/agentic-product-standard/skills/* .claude/skills/ # both tracks
Claude Code discovers skills via each SKILL.md and its YAML frontmatter. Once installed, agent-builder triggers when you set out to build, implement, or review one agent, while agentic-product-architect triggers for multi-agent products, an agent loop, or any major agentic framework (LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK, Pydantic AI, AutoGen). Ask a focused question β "Mem0 or Zep?", "how should I structure context?", "review my agent code" β and the relevant sub-skill loads directly.
The standard tells you how; the AgenticProduct family gives you runnable reference implementations to adopt per surface. AgenticMind is the flagship β an auditable, self-improving knowledge & memory layer agents plug into over MCP (the OSS pick for the memory slot in memory-architecture); the ./setup.sh --with-agenticmind flow above stands it up in the same run.
| Repo | Use it when | |
|---|---|---|
| π | agentic-product-standard(this repo) | You're designing or buildingan agent / agentic product β the standard + skills tell youhow. |
| βοΈ | AgenticOps | You need to run a fleetof long-lived agents as deployed infrastructure β manifests, scheduling, a durable backlog, bounded runs, fleet health. |
| π§ | AgenticMind | You need a knowledge & memory layerfor your agent β a working implementation you can run. |
| π | AgenticPerformance | You need to measure and improveyour agents β traces, golden-set evals with a CI gate, failure clusters, a governed improvement loop. |
| π©Ή | AgenticSelfHealingCode | You need agents to heal what breaksβ production monitoring, incident RCA, and test-suite repair. |
See the AgenticMind case study for a layer-by-layer map of how that repo implements this canon.
Never start with "build an agent." Start with "what is the minimum autonomy this task requires?" The cost of getting this wrong is asymmetric.
| Level | What it is | Use when |
|---|---|---|
| L0Β· Single LLM call | One prompt β one response | Classification, extraction, summarization |
| L1Β· Augmented LLM | + retrieval, + tools, + memory | Q&A over docs, simple assistants |
| L2Β· Workflow | Deterministic code orchestrates LLM steps | Path is known; predictability matters |
| L3Β· Orchestrator-Worker | LLM decomposes within a bounded graph | Parallelizable, breadth-first work |
| L4Β· Autonomous Agent Loop | LLM chooses the next step until termination | Path cannot be enumerated; cost is acceptable |
Escalation rule:do not climb to L+1 until L deliversβ₯90% pass rateon a curated eval set.
Compose agentic products from these primitives like Lego β before reaching for a framework.
Meta-principle: first try to solve the task by composing these patterns in deterministic code. A full agent loop is the last resort.
In a production agent, the harness β everything around the LLM loop β is 98% of the code.
βββββββββββββββββββββββββββββββββββββββββββββββ
β 8. Security & Identity (CROSS-CUTTING) β β threat model Β· injection defense Β· agent identity Β· least-privilege tokens Β· pinned tool defs
β ββββββββββββββββββββββββββββββββββββββββββββββ£
β 7. Observability & Tracing β β log EVERYTHING
β 6. Evaluation Layer (CI gates) β β block regressions
β 5. Human-in-the-Loop (notify/ask/review) β β approval gates
β 4. Guardrails (input/output validation) β β defense in depth
β 3. Durable Execution (Workflow + Activity)β β pause/resume/retry
β 2. Context & Memory Management β β write/select/compress/isolate
β 1. Agent Loop (gather β act β verify) β β the "agent" proper
βββββββββββββββββββββββββββββββββββββββββββββββ
β MCP / function calling
Permission boundaries are enforced by code, never by prompt.The Replit incident of 2025 β an agent wiped a production database for 1,200+ companies despite an explicit "code freeze" in its prompt β is the canonical proof. The model will ignore prompt-level restrictions under enough pressure. Code won't.
Layer 8 is cross-cutting (v2.0).Identity, least privilege, and isolation constrain every layer; injection defense spans input and output. Run thelethal-trifectacheck (private data Γ untrusted content Γ external comms) on every deployment, andpin MCP tool definitions by hashso a server can't rug-pull you. A guardrail is one tactic, not the discipline β seeSTANDARD.mdΒ· Layer 8 and the red-team kit.
Run this before drafting any architecture. It unblocks 80% of design debates.
β‘ What is the minimum autonomy level (L0βL4) that solves this?
β‘ Can it be solved by composing the 5 patterns without a full agent loop?
β‘ Is the task breadth-first (parallelizable) or depth-first (coherent)?
β‘ What are the 3 failure modes that would lose user trust first?
β‘ Where are the permission boundaries? What MUST the agent NOT do?
β‘ Which constraint dominates framework choice?
β‘ Where does state live? (in-context = anti-pattern for long-running)
β‘ Who validates outputs at each stage? (assertion / LLM judge / human review)
β‘ Where do traces live, with what retention?
β‘ Eval set: how many examples, who labels, how does it grow?
If you can't answer half of these, slow down and answer them together β don't write code yet.
Principles are easy to nod along to; ** SCORECARD.md** makes you prove it. It turns the Definition of Done into a binary Yes/No maturity self-assessment with four bands mapped to the Autonomy Ladder:
| Band | Autonomy | Means |
|---|---|---|
| M0 Β· Prototype | L0βL1 | Works on a demo. No production claim. |
| M1 Β· Shippable | L2 | Contracts, schemas, guardrails, an eval set, permissions in code. |
| M2 Β· Production | L3 | Durable, observable, tenant-isolated, security-checked, cost-bounded, CI-gated. |
| M3 Β· Autonomous-ready | L4 | Online evals, pass^kreliability, red-team kit run, full OTel trajectory traces. |
Run it with the team against a real deployment each release β the first No you hit is your next piece of work.
An agentic product is not production-ready until all 15 are satisfied. Full detail in STANDARD.md.
| Context & state | Tools & security | Reliability | Evals & observability |
|---|---|---|---|
| Context < 40% | Destructive actions need approval | Durable pause/resume/retry | β₯50 evals per failure mode |
| State externalized | Permissions in code, not prompt | Schema-validated outputs | Judges calibrated (TPR/TNR) |
| Compaction tested | Sandboxed tool execution | Input/output guardrails | CI blocks regression; 100% traced |
| β | Lethal-trifecta check; MCP tool defs pinned | Per-run cost ceiling in code | Trajectory + online evals |
The fastest way to recognize a doomed agent project β the skill set's antipatterns-review flags each with a diagnostic and a fix.
The operational base β not reference docs. Read in order:
This standard is meant to evolve β the field moves fast. Corrections, new exemplars, framework updates, and translations are all welcome. See CONTRIBUTING.md and the Code of Conduct.
The architectural canons (the autonomy ladder, the 5 patterns, single-vs-multi, the harness) are stable. Specific vendors and framework rankings will shift β those are exactly the kind of PRs we want.
MIT β use it, fork it, ship with it.
If this saved you a week of architecture debates, star the repo β so others find it.
v2.0 Β· assembled from production practices as of June 2026