Skip to content

Architecture

text
cmd/minerva
internal/
  cli/            Cobra commands
  mcp/            MCP stdio server
  skill/          SKILL.md discovery + Minerva activation
  profile/        agent.yaml management
  templates/      role prompts (builtin + disk)
  library/        export/import/lint portable bundles
  bridge/         local-agent integration snippets
  monitor/        presence (bins + tiers)
  integration/    deep readiness (sibling CLIs)
  status/         unified doctor/status report
  suggest/        shared suggestion engine
  analytics/      append-safe events
  evidence/       fcheap tag conventions + close receipts
  textdiff/       unified diffs for compare
  version/
docs/             VitePress site (this site)
specs/            Glyphrun CLI contracts
browser-specs/    Cairn docs-site contracts

Design rules

  1. Disk is the SSOT for library content shared with harnesses.
  2. Sibling tools own domain truth — Minerva shells their --json APIs.
  3. Presence ≠ readiness — especially codemap/vecgrep.
  4. Suggest proposes; host applies — except allowlisted activate.
  5. No secret values in analytics, skills, or stashes.
  6. Dogfood with glyph (CLI) and cairn (site).
ToolRelationship
local-agent / sonarRuntime consumers of ~/.agents (session-native)
MCPHubGateway + call intelligence
CortexTask kernel (overview/stale signals only)
BobRepo contract
Codemap / VecgrepRetrieval readiness
fcheapEvidence vault
glyph / cairnContract testing

Know what is installed. Know what is ready. Act on evidence.