Architecture - alexherrero/agentm GitHub Wiki

Architecture

AgentM is the substrate an agent runs on: a durable memory engine with four pillars β€” Memory, Experience, Opinions, and Personas. It installs onto your host (Claude Code or Antigravity), the crickets toolkit composes its capabilities on top, and the memory persists to a storage backend you choose.

High-level AgentM architecture: an agent runs on a host (Claude Code or Antigravity); the crickets toolkit installs on top and composes onto AgentM one-way through the capability seam; AgentM is the substrate β€” four pillars (Memory Β· Experience Β· Opinions Β· Personas) on a durable memory engine β€” which persists through the storage seam to a device-local or Google Drive vault backend

The pieces, and their designs

Everything inherits the shared Foundations, and the AgentM HLD is the parent that frames AgentM as four pillars on a memory engine. The designs under each pillar:

Memory β€” what AgentM remembers, and how it stores and recalls it.

  • Memory System β€” how AgentM saves what it learns and pulls the right pieces back when they're useful.
  • Memory↔Storage Seam β€” the clean line between the engine and wherever your files actually live, plus the safeguards that keep writes from clobbering each other when devices sync.
  • Memory index β€” the local search index that keeps recall fast and lets it match on meaning, not just keywords.

Experience β€” how AgentM learns and improves between sessions.

  • Experience & Dreaming β€” how it looks back on its work to learn from it, and reaches out on a schedule to learn new things (its "dreaming").
  • Runner β€” the part that runs AgentM's scheduled background work, using your host's own scheduler.
  • Goal contract β€” the rules for letting AgentM chase a goal on its own: what counts as done, and when to stop.

Opinions β€” the standards AgentM holds about how good work gets done.

  • Opinions & Gates β€” the standards it holds (what done, good, and efficient mean) that any tool can ask for by name.
  • Opinion registry β€” how a tool asks for one of those standards by name and gets back AgentM's current take.
  • Model + effort routing β€” how it picks the right model and effort for a job, to run as cheaply as the work allows without dropping quality.

Personas β€” the roles AgentM steps into for a task.

  • Personas β€” the roles it can take on (Engineer, Reviewer, Planner, and more) and how each one is defined.
    • Persona tier β€” what makes something a role rather than a tool: it borrows capabilities to do a job instead of owning them.
    • Persona activation β€” how it picks a role and puts it on for the task at hand.

(The older MemoryVault design and its parts are being folded into the designs above; Designs has the full index.)

This folder's own pages

Recent changes

Note

Latest: the design set is complete and published (v5.11.0, 2026-07-01). Every high-level design and its sub-designs are now living designs in the wiki, each decision recorded in its own design's history β€” the standalone ADR model is retired. See Designs for the full set.

⚠️ **GitHub.com Fallback** ⚠️