AgenticMind
AGENTS.md4 starsChanged 6 months agoApache-2.0View on GitHub
Guidance for AI agents and coding assistants working in this repository. AgenticMind is an auditable, self-improving knowledge & memory substrate for AI agents, served over the Model Context Protocol (MCP). It is not an agent and has no agent loop — the consuming product owns that. AgenticMind owns one concern: answers an agent can trust (citation-enforced + a replayable why-trace), a memory that compounds (judge-gated), exposed as MCP tools. AgenticMind is the reference implementation of the Agentic Product Standard. If…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- docs/llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If you are designing or building an agentic product (architecture, harness, memory, evals, tools/MCP, durable execution), read the canon …
- Very specific: line 21
When a product needs the memory / knowledge layer (the Standard's Layer 4), AgenticMind *is* that layer — point the agent's MCP client at …
- Distinctive: line 46
Every new failure mode becomes a permanent eval case: Don't add behavior without a test.
- Very specific: line 76
Evidence is immutable & sourced: Every record is insert-only, timestamped, and references a real source id/hash (guard_events.id, an …
- Very specific: line 79
Honest coverage: Every bundle states its coverage ratio (auto-collected native vs.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Guidance for AI agents and coding assistants working in this repository.
What this is
AgenticMind is an auditable, self-improving knowledge & memory substrate for AI agents, served over the Model Context Protocol (MCP). It is not an agent and has no agent loop — the consuming product owns that. AgenticMind owns one concern: answers an agent can trust (citation-enforced + a replayable why-trace), a memory that compounds (judge-gated), exposed as MCP tools.
It implements a standard — read it first
AgenticMind is the reference implementation of the Agentic Product Standard. If you are designing or building an agentic product (architecture, harness, memory, evals, tools/MCP, durable execution), read the canon and use its skills:
➡️ https://github.com/Moai-Team-LLC/agentic-product-standard
When a product needs the memory / knowledge layer (the Standard's Layer 4), AgenticMind is that layer — point the agent's MCP client at it instead of reinventing retrieval, grounding, and a self-improving corpus.
Commands
bun run check # format + lint + tsc + tests (the full gate)
bun test # unit tests
bun run tsc # typecheck
bun run build-eval # regenerate the eval suite (self-validating)
bun run seed-eval # ingest the eval corpus into a DB
bun run eval # run the eval suite (needs DB + a chat key)
bun run reembed # recompute embeddings after a dimension changeLint (oxlint) needs Node ≥22.18 (see .nvmrc); the rest run under Bun.
Conventions (please honor)
- Conventional Commits, enforced by commitlint + a husky
commit-msghook and a PR CI check. Header ≤72 chars. SeeCONTRIBUTING.md. - The MCP tool contract is versioned and frozen (
MCP_CONTRACT_VERSION,CONTRACT.md). A snapshot test guards it — any change to a tool's name/shape must bump the version and update the test in the same change. - Every new failure mode becomes a permanent eval case. Don't add behavior without a test; don't add a tool without a contract entry.
- No secrets, PII, or domain-private data in code, tests, or fixtures.
- Functional style,
neverthrowResult types, strict TypeScript.
Where things live
packages/shared/src/lib/knowledge/ ← the tiered engine (the product)
packages/shared/src/lib/ai/ ← pluggable embeddings + chat providers
packages/shared/src/database/ ← Drizzle schema + queries (Postgres + pgvector)
apps/server/src/{index,mcp}.ts ← headless Bun MCP host (the agent surface)
apps/worker/src/ ← the compounding sweep (self-improvement)
eval/ ← grounded eval suite + corpuspackages/assurance (@agenticmind/assurance) — AAL Evidence
The enterprise compliance & evidence layer of the Agent Assurance Layer. It consumes AAL Core's
structured findings (aal scan --json), maps target facts to the control catalog
(catalog/aal-control-catalog.yaml — AIUC-1 / OWASP ASI / ISO 42001), harvests evidence from the
engine's existing artifacts, scores every control Green/Yellow/Red, and emits an auditor bundle.
Native-OK, unlike AAL Core. This package MAY (and does) import @agenticmind/shared — deep
native integration is the point. AAL Core stays framework-neutral; the coupling lives only here.
Four hard rules (never weaken):
- No Green on absence of evidence. A control with no collected evidence is
not_verified(YELLOW) at best. A control with a failing Plane-A test is RED, regardless of any declared mitigation (tests beat claims). - Evidence is immutable & sourced. Every record is insert-only, timestamped, and references a
real source id/hash (
guard_events.id, anask-telemetryid, atool_audit_eventsid, the.mcp-tools.lockhash). Hash-not-text: no raw incident payloads. - Honest coverage. Every bundle states its coverage ratio (auto-collected native vs. generic/manual/none). Never over-claim.
- Remediation is structural-only (when the autonomy ladder lands): prompts/context/manifests/ declared-mitigations — never a side-effecting tool, permission, or trust boundary (Cycle of Trust).
Where its data lives: evidence is derived on demand from existing engine tables
(guard_events, ask-telemetry, mcp-tokens, tool_audit_events); the layer's own persisted
tables (control_status, evidence_records, run history) land with the drift/continuous-assurance
step (FR-10). Native reads: src/evidence/collect-db.ts.
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.

