Build. Learn. Evolve.
Without stopping.
Monomind wraps Claude Code with persistent memory, multi-agent swarms, a code knowledge graph, and self-optimizing neural training โ all wired into one CLI.
From zero to autonomous in five minutes
Install Monomind, wire it into Claude Code, and run your first autonomous agent loop.
The MCP server requires the explicit mcp start subcommand. Auto-detect is disabled by default (set MONOMIND_MCP_AUTODETECT=1 to restore legacy behavior).
| Command | What it does |
|---|---|
| npx monomind init | Initialize project with wizard |
| npx monomind doctor | Health diagnostics; auto-fix with --fix |
| npx monomind daemon start | Start background worker daemon |
| npx monomind memory store | Store a memory with optional namespace |
| npx monomind memory search | BM25 + semantic hybrid search |
| npx monomind swarm init | Initialize a multi-agent swarm |
| npx monomind hooks list | Show all registered hooks |
| /mastermind:autodev | Autonomous build loop inside Claude Code |
How Monomind is built
A TypeScript monorepo with 17+ packages, each owning a bounded context. Claude Code handles all execution; MCP tools coordinate.
| Package | Path | Purpose |
|---|---|---|
| @monomind/cli | packages/@monomind/cli/ | CLI entry point โ 41 commands |
| @monomind/hooks | packages/@monomind/hooks/ | 17 hooks + 12 background workers |
| @monomind/memory | packages/@monomind/memory/ | AgentDB + HNSW vector search |
| @monomind/security | packages/@monomind/security/ | Input validation, CVE remediation |
| @monomind/guidance | packages/@monomind/guidance/ | Governance control plane |
| @monomind/swarm | packages/@monomind/swarm/ | Multi-agent swarm coordination |
| @monomind/neural | packages/@monomind/neural/ | SONA + LoRA + EWC++ training |
| monograph | packages/monograph/ | Code knowledge graph, 23 MCP tools |
| monomind | / (root) | Umbrella package published to npm |
| Tier | Handler | Latency | Cost | Use Cases |
|---|---|---|---|---|
| 1 | Agent Booster (WASM) | <1ms | $0 | Simple transforms โ skip LLM entirely |
| 2 | Claude Haiku | ~500ms | $0.0002 | Simple tasks, complexity <30% |
| 3 | Claude Sonnet/Opus | 2โ5s | $0.003โ0.015 | Architecture, security, complex reasoning |
Memory & Knowledge
Four-tier memory palace, HNSW vector indexing, BM25 search, and Monograph โ the code knowledge graph with 23 MCP tools.
In-flight
drawers.jsonl. Each drawer has a key, value, tags array, timestamp, and score. Ephemeral โ not persisted across sessions unless promoted.Working
Long-term
Shared
| Backend | Use Case | Notes |
|---|---|---|
| SQLiteBackend | Small projects, single-agent | Default. No external deps. |
| AgentDBBackend | Vector semantic search | Pure-TypeScript HNSW index. |
| HybridBackend | Production (recommended) | SQLite + AgentDB per ADR-009. Auto-routes by query type. |
| PartitionedHNSW | Multi-agent L3 | Domain-sharded; agent-scoped writes. |
| DiskAnnBackend | Very large datasets | Disk-resident ANN index. |
Monograph builds a SQLite-backed graph of your codebase โ nodes are files/classes/functions, edges are imports/calls/dependencies. Use it before touching 3+ files.
| Tool | When to use |
|---|---|
| monograph_suggest | Start every task โ returns relevant files ranked by task description |
| monograph_query | BM25 keyword search; returns file + line number |
| monograph_impact | Before changing anything โ full blast radius analysis |
| monograph_context | 360ยฐ view of a file: importers, imports, siblings |
| monograph_god_nodes | High-centrality files (external/test auto-filtered) |
| monograph_shortest_path | How two modules connect |
| monograph_rename | Dry-run multi-file rename with graph + text occurrences |
| monograph_detect_changes | Map git diff to affected graph nodes |
| monograph_community | Files forming a cohesive module cluster |
| monograph_cypher | Ad-hoc graph queries (Cypher syntax) |
Hooks & Workers
22 hook events, 10 core background workers, and an intelligence pipeline that learns from every edit, task, and session.
| Event | Category | Description |
|---|---|---|
| pre-edit | core | Context and agent suggestions before editing a file |
| post-edit | core | Record edit outcome for neural pattern learning |
| pre-command | core | Intercept command before execution |
| post-command | core | Record command result |
| pre-task | core | Register task start; get AGENT_BOOSTER_AVAILABLE or TASK_MODEL_RECOMMENDATION |
| post-task | core | Record completion; train patterns |
| session-start | session | Restore cross-session context |
| session-end | session | Persist state; flush working memory |
| session-restore | session | Replay session state into context |
| notify | session | Push notification to user or external system |
| route | intelligence | 3-tier model routing decision |
| explain | intelligence | Explain decision rationale |
| pretrain | intelligence | Pre-training signal ingestion |
| build-agents | intelligence | Auto-spawn agents for a task |
| transfer | intelligence | Transfer learning across tasks |
| teammate-idle | teams | Auto-assign task to idle teammate |
| task-completed | teams | Train patterns; notify team lead |
| Worker | Priority | Function |
|---|---|---|
| security | critical | Continuous security scanning and CVE alerting |
| health | critical | System health monitoring, daemon watchdog |
| swarm | critical | Swarm coordinator heartbeat and agent lifecycle |
| performance | normal | Token cost tracking, latency profiling |
| patterns | normal | Pattern extraction from hook trajectories |
| learning | normal | SONA LoRA fine-tune on high-signal runs |
| git | normal | Commit analysis, branch diff summaries |
| ddd | low | Domain-driven design pattern detection |
| adr | low | Architecture Decision Record harvesting |
| cache | bg | Context preloading and cache warming |
Swarm Coordination
Six topologies, five consensus algorithms, and a 15-agent domain hierarchy โ from a single coordinator to a Byzantine fault-tolerant hive.
| Algorithm | Fault Tolerance | Best For |
|---|---|---|
| Raft | f < n/2 | Default. Strong consistency, single leader. Production code changes. |
| Byzantine | f < n/3 | Untrusted agent environments, security-critical decisions. |
| Gossip | Eventual | Large swarms where propagation latency is acceptable. |
| CRDT | Partition-tolerant | Concurrent state merges without coordination (offline agents). |
| Quorum | Majority | Read-heavy workloads with strict majority agreement. |
| Domain | Agents |
|---|---|
| Queen / Orchestration | QueenCoordinator, AttentionCoordinator |
| Architecture | Architect, SystemDesigner |
| Engineering | Coder, BackendDev, FrontendDev |
| Quality | Tester, Reviewer, SecurityAuditor |
| Memory / Intelligence | MemorySpecialist, NeuralTrainer |
| Operations | PerfEngineer, MonitorAgent |
| Research | ResearchAgent |
Neural Learning
SONA self-optimizing architecture, LoRA adapters, EWC++ memory preservation, and a full RL agent suite โ running automatically in the background.
| Mode | LoRA Rank | Batch | Latency Target | Memory |
|---|---|---|---|---|
| real-time | 1โ2 | 1 | <50ms | <512MB |
| balanced | 4โ8 | 4 | <500ms | <2GB |
| research | 16 | 16 | uncapped | <8GB |
| edge | 1 | 1 | <10ms | <256MB |
| batch | 8โ16 | 32 | offline | <16GB |
| Algorithm | Use Case |
|---|---|
| PPO | Default RL trainer. Proximal Policy Optimization โ stable, on-policy. |
| DQN | Deep Q-Network โ discrete action spaces, tool selection. |
| A2C | Advantage Actor-Critic โ faster convergence for parallel environments. |
| DecisionTransformer | Sequence-based RL โ models trajectories as token sequences. |
| QLearning | Classic tabular Q โ lightweight for small state spaces. |
| SARSA | On-policy TD โ conservative, lower variance than Q-Learning. |
| CuriosityModule | Intrinsic motivation โ exploration bonus for novel states. |
CLI Commands
All 53+ commands across 19 categories. Run npx monomind <command> --help for full flag reference.
Slash Commands
~110 executable commands across 22 categories. Invoke via /command inside Claude Code.
Mastermind
18 autonomous operation commands with Brain Load/Write protocol, --tillend loop mechanics, and the autodev research-build-review cycle.
--focus security, --focus dx, --focus performance.mastermind:build with concrete spec, acceptance criteria, and blast radius guard. Spawns architect โ coder โ tester โ reviewer agent chain.mastermind:review inline. Runs Code Reviewer + Security Engineer + Reality Checker in parallel. Repeats up to 5 iterations until zero findings.--tillend, schedules next session via ScheduleWakeup.| Flag | Default | Purpose |
|---|---|---|
| --tillend | off | Repeat until empty round (zero findings, zero actions) |
| --repeat <N> | off | Repeat exactly N times |
| --wait <seconds> | 60 | Minimum seconds between repeat runs |
| --maxruns <N> | 50 | Safety cap for --tillend |
| --auto | off | No confirmation prompts |
| --confirm | off | Ask before each action |
| --focus <area> | โ | Bias toward: security, dx, performance |
| Command | Purpose |
|---|---|
| /mastermind:autodev | Autonomous research โ build โ review loop |
| /mastermind:build | Build a specific feature from a brief |
| /mastermind:review | Iterative code review; auto-fixes findings |
| /mastermind:architect | System architecture design and review |
| /mastermind:research | Deep research with structured output |
| /mastermind:techport | Technical portfolio โ assess project state |
| /mastermind:idea | Idea generation and evaluation |
| /mastermind:ops | Operations planning and tracking |
| /mastermind:finance | Financial modeling and analysis |
| /mastermind:marketing | Marketing strategy and content |
| /mastermind:sales | Sales strategy and pipeline |
| /mastermind:content | Content creation and strategy |
| /mastermind:createorg | Create and configure an organization structure |
| /mastermind:runorg | Run organization-level workflows |
| /mastermind:release | Manage a software release |
| /mastermind:master | High-level project master control |
| /mastermind:brain | Inspect and manage brain context |
| /mastermind:goals | Goal tracking and progress |
Dashboard
The Neural Control Room โ a local web dashboard served at localhost:4242 with live session feeds, memory inspection, swarm monitoring, knowledge graph exploration, and full agent organization management.
The dashboard is a single-page application with a 196px fixed sidebar and a scrollable main area. URL parameters support deep-linking: ?proj=<path> switches project context and &sess=<id> opens a specific session.
| Topbar Element | Description |
|---|---|
| Live dot | Pulses green when an active Claude Code session is detected |
| Today cost badge | Cumulative USD spend for the current calendar day |
| Session cost ticker | Running cost of the currently focused session, updates in real time |
| Activity chip | Current agent type and task description from the most recent hook event |
| โฌก Mastermind | Opens the Mastermind overlay (violet hexagon button) |
| โ Budget | Opens a modal for setting daily and monthly spend limits (USD). Fields: Daily limit, Monthly limit. Once saved, the alerts rail shows a warning when actual spend approaches the limit. |
| โK Search | Opens the command palette for cross-view navigation |
| ? Help | Shows keyboard shortcuts reference |
| โบ Refresh | Force-reloads current view data |
Status strip (shown below topbar when data is present):
| Chip | Meaning |
|---|---|
| HNSW ON / OFF | Whether the HNSW vector index is loaded and searchable |
| PATTERNS N | Number of learned routing patterns in AgentDB |
| CHUNKS N | Number of indexed text chunks available for semantic search |
| SWARM topology | Active swarm topology name (hierarchical, mesh, adaptiveโฆ) |
| LAST ROUTE | Agent name that the routing hook most recently selected |
The sidebar footer shows your GitHub username and the absolute path of the current working directory.
The Now view is a three-column layout: feed pane (left), optional detail panel (slides in from the right edge of the feed), and metrics pane (252px, fixed right).
| Feed Control | Key | Behavior |
|---|---|---|
| Play / Pause | Space | Toggle live-tail; pausing freezes the list without disconnecting |
| Clear | โ | Removes all entries from the visible feed buffer |
| Filter | / | Opens inline search โ filters entries by text or tool name |
| Jump to live | G | Scrolls to the newest entry and resumes live-tail |
| Ambient mode | A | Hides all chrome; only the feed remains |
| Replay | โ | Re-plays the current session from the beginning at configurable speed |
| Focus | F | Expands the feed to full width, hiding metrics pane |
| Export | โ | Downloads visible feed entries as JSONL |
Feed entry types:
| Type | Appearance |
|---|---|
| Tool events | Colored category icon (file, bash, web, memory, agentโฆ), tool name, condensed args |
| User messages | Italic text with a person icon and timestamp |
| Error entries | Red left border, error message, optional stack trace expand |
Additional feed UI elements:
- Session context bar โ pinned at top of feed: session ID, model, start time, current cost
- Recap card โ collapsible summary of the previous session's key decisions
- Replay bar โ scrubber, speed selector (0.5ร, 1ร, 2ร, 4ร), play/pause when in replay mode
- Timeline bar โ horizontal ruler showing tool-call density over session time
- Time-range filter โ drag handles on the timeline to zoom into a time window
- Weekly card โ dismissible summary card (stored in localStorage) showing 7-day stats
- Daily digest card โ dismissible AI-generated digest of today's activity
- Feed minimap โ 8px-wide column of colored pips on the right scroll edge for quick navigation
Group rows โ when 3 or more consecutive events share the same category, they are collapsed into a single row showing the count and a โธ expand affordance. Clicking the group row expands all entries in place.
Detail panel: slides in 280px when an entry is clicked. Shows full event metadata, raw JSON payload, and a Copy button.
Metrics pane groups (252px, right):
| Group | What it shows |
|---|---|
| Today | Today API cost, call count, and a 7-day activity sparkline |
| Active Loops | Running loop names with live countdown timers |
| Recent Sessions | Last 5 sessions with cost and duration chips |
| Tool Usage | Bar chart of most-called tools in the current session |
| Burn Rate | Three rolling gauge rows โ 5 min, 15 min, 60 min โ each showing tool-call rate in calls/minute. Color: green < 4 calls/min, amber 4โ10, red โฅ 10 |
| Session Lanes | Parallel swimlanes showing concurrent agent activity |
| Cache Efficiency | Per-session cache hit rate rows (cached tokens / total input tokens), with the rolling average shown in the group header. |
| Token Velocity | Tokens/minute sparkline for the current session |
| 30-Day Cost Trend | Bar chart of daily spend over the last 30 days |
| Activity Heatmap | Hour-of-day ร day-of-week grid colored by event density |
Projects are discovered from Monomind's config registry. The view renders an auto-fill card grid (min 240px) with a filter input at the top.
| Card Element | Description |
|---|---|
| Active badge | Green "ACTIVE" pill โ shown when the project's directory is the current working directory |
| Health score circle | 0โ100 score: green โฅ 70, amber 40โ69, red < 40 |
| Name & path | Project display name and filesystem path |
| Sessions count | Total recorded sessions for this project |
| Memories count | Number of memory files scoped to this project |
| Last active | Relative time since the last session event |
Clicking a card switches the global project context (updates the ?proj= URL param) and navigates to the Sessions view filtered to that project.
Sessions are created automatically when you use Claude Code in any project. Start a session by opening Claude Code in your project directory:
Sessions are grouped by recency: Today, Yesterday, This week, Older โ each group header is collapsible. A 12-week clickable calendar heatmap appears above the session list. Each cell represents one day; opacity scales with session count. Clicking a cell filters the session list to that day. The heatmap header shows a week-over-week delta indicator (e.g. โ12%, โ5%, โ flat).
Each session row includes:
- Prompt text (truncated) with expand on hover
- Timestamp (relative) and compacted badge (when the session was auto-compacted)
- Summary excerpt โ 2-line clamp of the AI-generated session summary
- Meta line:
duration ยท N messages ยท $cost - Anomaly badges:
costly(cost > 2ร average) anderrors(tool errors detected) - Auto-tags: topic tags inferred from session content (e.g.
refactor,bug-fix) - File chips: up to 5 file paths touched in the session
- Context saturation bar: horizontal progress showing % of context window consumed (message count vs. limit)
- Notes โ each row has a โ notes toggle (shown in blue when a note exists). Click to expand an inline textarea for free-form notes stored in localStorage, keyed by session ID.
- Error drawer โ the error anomaly badge (N err) is clickable. Clicking it toggles an inline drawer below the row listing all tool error messages from that session.
- Custom tags โ a '+ tag' affordance on each row adds manually typed labels (stored in localStorage). Custom tags appear as blue-toned pills alongside auto-tags and are included in the sessions filter.
- Context window pressure gauge โ a separate 3px bar based on actual input token count vs the 200k context ceiling. Color: green (normal), amber (warn), red (critical). Shows a 'N% ctx' label. Distinct from the message-count saturation bar.
Toolbar toggle buttons:
| Button | Effect |
|---|---|
| Starred | Filter to bookmarked sessions only |
| Leaderboard | Sort by cost descending โ shows most expensive sessions first |
| Models | Show model name chip on each row |
| Errors | Filter to sessions that contain tool errors |
| Tools | Show tool-call summary chips on each row |
| Projects | Show project path chip on each row |
| CSV | Export current filtered session list as CSV |
| Patterns | Show learned routing pattern badges |
| Compare | Enable multi-select mode for session diff (select exactly 2) |
| Timeline | Switch to a Gantt-style timeline visualization |
| Donut | Show a cost-by-model donut chart above the list |
| Report | Opens the Report Card modal with a structured plain-text summary of session activity for the current period. Includes a โ Copy button โ content is copied to clipboard, not downloaded. |
Period filter: Day / Week / Month / All โ scopes the session list and heatmap to the selected window. Bulk actions become available when multiple rows are checked: Export, Bookmark, Clear.
Session diff: selecting exactly 2 sessions with Compare mode opens a side-by-side panel showing cost delta, duration delta, tool overlap, and unique tool calls per session.
Loops are created manually from the dashboard (+New Loop button) or via slash commands:
A loop is a scheduled automation: a prompt that re-runs at a fixed interval until a max-rep limit is reached or it is manually stopped.
| Loop Card Element | Description |
|---|---|
| Name | Human-readable loop label |
| Interval chip | Repeat cadence (e.g. 1h, 30m, daily) |
| Countdown timer | Live seconds-ticking countdown to the next run |
| Progress bar | currentRep / maxReps fill bar |
| Status badge | running, paused, or completed |
| Stop button | Immediately cancels the loop and records final state |
Expand a loop card to see: full prompt text, interval, started-at timestamp, last-run timestamp, run count, and a sparkline of per-run duration history.
Create Loop form fields:
| Field | Required | Default |
|---|---|---|
| Prompt | Yes | โ |
| Name | No | Auto-generated from prompt |
| Interval | No | 1h |
| Max Reps | No | Unlimited |
Token data is collected automatically from every Claude Code session. No setup required โ costs appear as soon as API calls are made.
The Tokens view provides cost and usage analytics with period-based filtering.
Period tabs โ Today / Week / 30 Days / Month โ each fetches /api/token-usage?period=X and re-renders the chart and table.
Animated bar chart: 400ms ease-out-cubic entrance animation. Bar colors follow threshold logic:
- Green โ cost < average ร 0.5 (low spend day)
- Amber โ cost in normal range
- Red โ cost โฅ average ร 1.5 (high spend day)
The current day's bar is full opacity; all other bars render at 50% opacity. Below the chart, a session breakdown table shows: Session, Calls, Tokens, Cost per row.
The Memory view has two distinct data sources: Memories are explicit .md files with YAML frontmatter stored in the .monomind/memories/ directory. Chunks are indexed text segments extracted from project source files and documentation for semantic search.
| Memory Type | Color | Purpose |
|---|---|---|
user | Indigo | Personal preferences, identity, working style |
feedback | Amber | Agent routing decisions and confidence scores |
project | Teal | Project-scoped facts, patterns, decisions |
reference | Violet | Reference documentation, API facts |
handoff | Pink | Cross-session state for next session pickup |
Memories are created in three ways:
The Memory view has 7 sub-tabs:
| Tab | Description |
|---|---|
| Memories | Split-pane list + detail editor. Full CRUD: create, edit (modal with type/title/content fields), delete. New Memory button offers 4 type templates: user (personal preferences/identity), feedback (routing decisions), project (project-scoped facts), reference (documentation/API facts). Each pre-populates a minimal YAML front matter stub. |
| Routing | Routing feedback log โ each entry shows agent chosen, confidence %, task description, and timestamp. YAML front matter stub format for new memories:--- |
| Usage | Period tabs + stat grid (cost, calls, tokens, cache efficiency) + 5 bar charts: Models, Activity by hour, Tools, MCP Servers, Projects |
| ADRs | Architecture Decision Records as filterable cards. Status badges: Accepted, Proposed, Deprecated. Category filters: implementation, guidance |
| Swarm | Swarm run list + canvas topology visualization โ static snapshot drawing, drawn once when a run is selected. Hierarchical: queen node (labeled Q, teal, larger) at top, worker nodes spread below, straight edges connecting them. Mesh/other: nodes in a circle with all-to-all edges. Event log for selected run. Clean Data button purges stale run data |
| Chunks | Stats bar (chunk count, skill namespaces, total namespaces). Filter by namespace or keyword. Chunk cards show source file, excerpt, and namespace. Edit/Delete per card. Build Docs button triggers indexing with progress polling |
| Agent Graph | Summary stat cards, session list, agent spawn bar chart (agents per session), tool usage bar chart (calls per tool across all sessions) |
Routing tab: Routing data is collected automatically whenever Claude Code routes a task to an agent. No setup required. Use /hooks:overview to understand the routing hook.
ADRs tab: ADRs are created via the slash command or discovered automatically from existing ADR files:
Swarm tab: Swarm history is created when you run agent organizations:
Chunks tab: Chunks are built by indexing your project's documentation and skill files:
Agent Graph tab: The Agent Graph is populated automatically by sessions that spawn sub-agents. Spawn agents by running complex tasks via /mastermind:build, /mastermind:autodev, or any orchestration command.
Create and manage agent organizations:
Organizations are multi-agent structures with roles, goals, routines, and approval workflows. Each org card shows: a running dot (live indicator), name, goal description, topology/role chips, and an avatar stack of active agents.
Each org has 29 tabs:
| Tab | What it shows |
|---|---|
| Chart | Org hierarchy as an animated SVG โ nodes for each role, animated edges for reporting lines |
| Roles | Role cards listing responsibilities, required skills, and reporting structure |
| Activity | Chronological event log of all agent actions within the org |
| Health | Metrics grid: task completion rate, error rate, average response time, agent uptime |
| Heartbeats | Per-agent heartbeat list showing last ping time and status (alive/stale/dead) |
| Tasks | Full task list with status, assignee, priority, and due date |
| Costs | Cost breakdown by agent, role, and time period with totals |
| Members | Human and agent member list with role assignments |
| Goals | Hierarchical goal tree with progress bars for each objective and sub-objective |
| Board | Kanban board with columns: Open, In Progress, Blocked, Done, Cancelled |
| Live | Real-time agent activity feed; auto-refreshes every 5 seconds. Shows currently running agents and their current task |
| Approvals | Approve/reject queue for actions that require human sign-off |
| Secrets | Secret names and scopes โ values are always masked (never shown in plaintext) |
| Settings | Org configuration form that generates the equivalent CLI command for reproducibility |
| Routines | Cron table of scheduled automations: name, schedule expression, last run, next run, status |
| My Issues | Issues assigned to the current user or agent |
| Budgets | Fill bars showing spend vs. budget limit per agent and in aggregate |
| Plugins | Installed plugin status cards: name, version, enabled toggle, health indicator |
| Charts | 14-day activity heatmap + per-agent bar charts for calls and cost |
| Projects | Card grid of projects associated with this org |
| Skills | Role ร skill matrix โ cells show proficiency level (none/basic/expert) |
| Workspaces | Per-agent workspace rows: branch, working directory path, running services |
| Invites | Pending invitations with invite token, role, and expiry timestamp |
| Agents | Full agent table: name, type, status, model, last active, total calls, total cost |
| Environments | Agent environment configs: driver (node/python/docker), host, status |
| Access | Members grouped by role tier with their granted permissions listed |
| Issues | Full issue table (up to 100 rows): title, status, priority, assignee, labels, created date |
| Join Queue | Pending join requests showing requester (human ๐ค or agent ๐ค emoji) and approval status |
| Threads | Discussion threads: subject, author, message count, linked issue |
The knowledge graph must be built before Monograph tabs show data:
The Monograph view provides a full knowledge-graph interface for your codebase. It has 7 tabs:
| Tab | Description |
|---|---|
| Overview | Stat cards (total nodes, total edges, average degree, type counts), top 6 nodes by degree, and a type-distribution breakdown |
| Graph | Interactive force-directed graph in an iframe. WATCH toggle enables file-system watching so the graph auto-rebuilds on file changes. REBUILD button forces a full rebuild immediately |
| Analyze | Two groups of analyses: 9 client-side (Stats, PageRank, Dead Code, Components, Topological Sort, Hubs, Cycles, Surprises, Communities) and 20 server-side MCP analyses (Health Score, Risk Profile, Hotspots, Maintainability, Complexity, CRAP Score, Instability, Coupling Balance, Circular Dependencies, Unlinked References, Dead Exports, Reachability, Boundary Check, Bridges, Cohesion, Largest Files, Languages, Churn Hotspots, Detect Changes, Authors) |
| Query | 6 query forms: Search nodes (BM25 keyword), Impact analysis (upstream/downstream dependents), Context (360ยฐ view of a file), Shortest path (between two nodes), Cypher query (raw graph query), Ask the graph (natural language) |
| Export | Download the graph in: JSON, SVG, GraphML, or Cypher format |
| Report | Rendered GRAPH_REPORT with summary stats, top nodes by degree, and type distribution |
| Wiki | Searchable node browser โ type filter pills, mode toggle (All / Docs / Code), full-text search. Clicking a node opens a detail panel with Impact, Context, and Explain actions |
The Wiki tab shows code nodes immediately after a graph build. To also see documentation nodes (from .md/.mdx/.txt files), click BUILD DOCS inside the Wiki tab or run /monomind:understand.
A unified activity stream across all registered projects, accessible from the sidebar "โ Global Feed" item.
The Global Feed populates automatically as you use Claude Code across multiple projects. No setup required โ add more projects via monomind init in each project directory.
Each event entry displays a project tag chip alongside the event data, so you can see which project generated each activity. The feed is assembled by fetching /api/projects and then merging session events from all project paths.
Unlike the Now view (which is scoped to one project), the Global Feed gives a workspace-wide perspective โ useful for multi-project workflows and general activity monitoring.
The Mastermind overlay opens by clicking the violet โฌก Mastermind button in the topbar. It has 6 tabs:
| Tab | Description |
|---|---|
| Orgs | List of all orgs โ click to switch the dashboard's active org context |
| Skills | Searchable catalog of all 35+ slash-command skills. Click any skill to copy the /skill-name command to clipboard |
| Loops | Running loops with live countdown timers and Stop buttons โ mirrors the Loops view in a compact panel. Create loops with /mastermind:autodev --tillend or the +New Loop button in the Loops view. |
| Create Org | Form that generates and copies the equivalent /mastermind:createorg CLI command when submitted |
| Metrics | Summary cards for current cost, API calls, routing confidence distribution, and active swarm topology |
| Graph | Node and edge counts for the Monograph index, list of top god nodes, and an Open Monograph button |
Open with โK or the Search button in the topbar. Results are grouped:
| Group | Contents |
|---|---|
| Sessions | Recent sessions โ select to open that session in the Now view |
| Memory | Memory entries โ select to open the memory detail editor |
| Projects | Registered projects โ select to switch project context |
| Orgs | Organizations โ select to switch to that org's view |
| Skills | Slash-command skills โ select to copy the command |
| Actions | Quick actions: Open Monograph, Refresh, Toggle Compact, Open Loops |
| Tabs | Appears when an org is selected โ lists all 29 org tabs for direct navigation |
Type a > prefix in the palette input to switch to cross-session full-text search mode โ queries all session content, not just titles.
| Key | Action | Context |
|---|---|---|
โK | Open command palette | Global |
? | Show keyboard shortcuts help | Global |
R | Refresh current view | Global |
Esc | Close open panels or modals | Global |
J | Navigate down in list | Now, Sessions |
K | Navigate up in list | Now, Sessions |
โต | Open detail panel / jump to session | Now, Sessions |
/ | Open feed search | Now |
G | Jump to live session (newest entry) | Now |
A | Toggle ambient mode | Now |
F | Toggle focus mode (full-width feed) | Now |
Space | Play / pause live tail | Now |
All endpoints are served by the local dashboard server at localhost:4242. SSE endpoints stream newline-delimited JSON.
Navigation / Init
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/git-user | Git username and email |
| GET | /api/projects | All registered projects |
| GET | /api/status | System health: HNSW, memory |
Sessions
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/session-journal | Session metadata list |
| GET | /api/session | Events for one session file |
| GET (SSE) | /api/events-stream | Live tool event stream |
| GET | /api/search-sessions | Full-text session search |
| GET | /api/session-errors | Session error list |
| GET | /api/tool-errors | Tool error list per session |
| GET | /api/tool-ranking | Tool call frequency |
| GET | /api/project-costs | Per-project cost breakdown |
Memory
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/section | Named data sections (e.g. tokens) |
| GET | /api/memory/stats | AgentDB stats |
| GET | /api/memory-files | .md file list |
| PUT / DELETE | /api/memory-file | Create or delete memory file |
| GET | /api/token-usage | Token usage, accepts period param |
| GET | /api/routing-feedback | Routing feedback log |
| GET | /api/adrs | Architecture Decision Records |
Loops
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/loops | Active loops |
| POST | /api/loops/create | Create loop |
| GET | /api/loops/stop | Stop a loop |
Swarm
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/swarm-history | Swarm run list |
| GET | /api/swarm-events | Events for a run |
| DELETE | /api/swarm-clean | Purge swarm data |
Knowledge (Chunks)
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/section?name=knowledge | Indexed chunks |
| POST / DELETE | /api/knowledge-chunk | Chunk CRUD |
| POST | /api/monograph-build-docs | Trigger docs indexing |
| GET | /api/monograph-build-docs-status | Indexing progress |
Graph (Monograph)
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/monograph-build | Rebuild graph |
| POST | /api/monograph-watch-toggle | Toggle file watch |
| GET | /api/monograph-watch-status | Watch state |
| GET | /api/monograph-graph | Graph nodes/edges |
| GET | /api/monograph-report | GRAPH_REPORT |
| GET | /api/monograph-query | BM25 node search |
| GET | /api/monograph-path | Shortest path between two nodes |
| GET | /api/monograph-explain | Node explanation |
| GET | /api/monograph-wiki-search | Wiki full-text search |
| GET | /api/graph | Agent graph data |
| POST | /api/mcp/call | MCP tool proxy |
Orgs
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/orgs | Org list |
| GET | /api/org/:name | Org detail |
| POST | /api/orgs/:name/stop | Stop org |
| GET | /api/org/:name/activity | Org activity log |
| GET | /api/org/:name/health | Org health metrics |
| GET | /api/org/:name/agents | Org agents |
| GET | /api/org/:name/budgets | Org budgets |
| GET | /api/org/:name/members | Org members |
| GET | /api/org/:name/issues | Org issues |
| GET / POST | /api/org/:name/approvals | Approval queue |
| GET | /api/org/:name/secrets | Secret names and scopes |
| GET | /api/org/:name/routines | Scheduled routines |
| GET | /api/org/:name/my-issues | Issues assigned to current user |
| GET | /api/org/:name/plugins | Installed plugins |
| GET | /api/org/:name/projects | Associated projects |
| GET | /api/org/:name/workspaces | Agent workspaces |
| GET | /api/org/:name/invites | Pending invitations |
| GET | /api/org/:name/environments | Agent environment configs |
| GET | /api/org/:name/join-requests | Pending join requests |
| GET | /api/org/:name/threads | Discussion threads |
Assemble an AI team.
Let it run itself.
Design a multi-agent organization in one command. Define roles, hierarchy, and communication topology. Start it as a persistent daemon that coordinates agents, manages tasks, and delivers output while you focus elsewhere.
From goal to running organization
createorg designs and persists the structure. runorg loads it and starts the boss agent, which coordinates all roles from a shared task board.
Describe a goal. Monomind derives roles, maps agent types, builds the communication topology, and saves a config to .monomind/orgs/.
JSON definition with role IDs, agent type slugs, communication edges (command, report, feedback, handoff), governance policy, and a monotask board.
Spawns the boss agent in the background. Boss coordinates all roles, claims tasks from the board, checkpoints every 30 minutes, and loops until stopped.
Design your organization
One prompt. Monomind infers roles, maps each to a specialized agent type, derives the optimal communication topology, and saves a persistent JSON config ready to run.
auto: agents act freely. board: sensitive actions require approval. strict: every external action gates on human review.Start the autonomous loop
The boss agent spawns in the background. It coordinates all roles, assigns tasks from a shared board, collects results into memory, and loops on a checkpoint interval. It runs until you stop it.
curl -X POST http://localhost:4242/api/orgs/content-team/stop
Three structures, auto-selected
createorg picks the topology from team size. Every topology uses the same edge types: command, report, feedback, handoff.
Sample teams you can launch. The sky is the limit.
Every org is just a JSON definition and two commands. Here are five starting points. Copy the createorg prompt and run.