Home
MithrilDocumentation
Dashboard →

Documentation

Build with Mithril

Integrate Mithril's governance pipeline into your stack — via MCP for agents, REST API for services, or the Python SDK for direct use. Every memory write is trust-scored, contradiction-checked, and audited.

Quick Commands

make demoRun the attack simulation
make apiStart the REST API server
make mcpRun MCP server for agents
make benchmarkRun labeled benchmark
make devStart API + UI together
make testRun unit tests

Pipeline at a Glance

Incoming Claim  (MCP tool · Slack export · file · API · dashboard)
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Credential Exfiltration Guard                          │
│  AWS keys, GitHub tokens, JWTs, PEM → redacted          │
└─────────────────────────────────────────────────────────┘
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Adaptive Source Reputation (SQLite-backed, self-tuning) │
│  source_rep × 0.40                                      │
└─────────────────────────────────────────────────────────┘
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Contradiction Detection (cognee.recall + LLM scoring)  │
│  contradiction × -0.40 · corroboration × 0.25           │
└─────────────────────────────────────────────────────────┘
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Content Danger Check (LLM scoring, no memory needed)   │
│  dangerous content × -0.35                              │
└─────────────────────────────────────────────────────────┘
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Trust Score = normalize(src + corroboration + fresh     │
│               - contradiction - content danger)          │
└─────────────────────────────────────────────────────────┘
     │
     ▼
┌─────────────────────────────────────────────────────────┐
│  Admission Gate                                         │
│  ≥0.85 Accept · ≥0.60 Warn · ≥0.40 Review              │
│  ≥0.20 Quarantine · <0.20 Reject                        │
└─────────────────────────────────────────────────────────┘
     │
     ├── ACCEPT / WARN  → cognee.remember(verified)
     ├── QUARANTINE / REVIEW / REJECT → SQLite quarantine
     ├── Source reputation updated from outcome
     └── All decisions → Audit log