⍌ Pattern 1
Research Flow
For exploring an unfamiliar area of the codebase. Ask broad questions, narrow down, find gaps, and teach the graph what worked.
1
ingest
Load the codebase into the graph. Use mode: "full" for first time, "incremental" after.
2
activate
Query the topic broadly. Start with depth 3, threshold 0.3 for maximum coverage.
3
why
For interesting connections in the results, trace the path between them. "Why does auth relate to billing?"
4
missing
Identify what the research did not find. Gaps and structural holes in the topic area.
5
learn
Provide feedback. "correct" if the activation results were useful, "wrong" if they led astray.
m1nd.ingest({ "source": "./backend", "mode": "incremental" })
m1nd.activate({ "query": "authentication and authorization", "depth": 3 })
m1nd.why({ "from": "jwt_handler", "to": "session_store" })
m1nd.missing({ "context": "authentication" })
m1nd.learn({ "query": "authentication and authorization", "feedback": "correct" })
𝔻 Pattern 2
Code Change Flow
For safely modifying existing code. Understand the blast radius before touching anything, then verify completeness after.
→
→
𝔻
counterfactual
Simulate
→
1
impact
Check the blast radius of your planned change. How many other files are affected? Which tests might break?
2
predict
Based on co-change history, what other files typically change alongside your target? Do not miss them.
3
counterfactual
If removing or significantly changing the module, simulate the removal. What breaks? What becomes orphaned?
4
warmup
Prime the graph for the change task. Subsequent queries in this area will be faster and more precise.
m1nd.impact({ "node": "database_pool.py", "depth": 4 })
m1nd.predict({ "changed_nodes": ["database_pool.py"] })
m1nd.counterfactual({ "remove_nodes": ["legacy_db_adapter"] })
m1nd.warmup({ "context": "database pool refactoring and connection management" })
⟁ Pattern 3
Build Loop
For iterative development. After each module is built, update the graph, get feedback, and prepare for the next module. The graph improves with each iteration.
⍌
Ingest
→
⟁
Build
→
⍌
Learn
→
𝔻
Predict
→
⍌
Warmup
↺
m1nd.ingest({ "source": "./backend", "mode": "incremental" })
m1nd.learn({ "query": "new feature routes", "feedback": "correct" })
m1nd.predict({ "changed_nodes": ["feature_routes.py"] })
m1nd.warmup({ "context": "building feature models and validation" })
m1nd.ingest({ "source": "./backend", "mode": "incremental" })
m1nd.learn({ "query": "feature models", "feedback": "correct" })
Compounding Intelligence
Each learn call makes the graph smarter. By the 3rd iteration, predict is significantly more accurate because it has observed your co-change patterns for this feature. This is Hebbian plasticity in action.
⍐ Pattern 4
Session Recovery
When you start a new session (new agent instance, new day, after compaction), use this pattern to recover your context from the persisted graph state.
m1nd.health({})
m1nd.drift({ "since": "last_session" })
m1nd.ingest({ "source": "./backend", "mode": "incremental" })
m1nd.warmup({ "context": "resuming auth refactoring from yesterday" })
Graph Persistence
The graph auto-persists to disk. When m1nd restarts, it loads the full graph including all learned weights. Your learn feedback from previous sessions carries forward. The graph remembers even when the agent forgets.
⟁ Advanced
Multi-Agent Coordination
Multiple agents can share the same m1nd instance. Writes from one agent are instantly visible to all others. Use locks to coordinate concurrent work on the same subgraph.
⍐
Agent B
Building API routes
↔
SharedGraph
1 m1nd instance
Real-time visibility
m1nd.lock_create({ "scope": "backend/auth/", "agent_id": "agent-a" })
m1nd.lock_diff({ "lock_id": "lock-abc123", "agent_id": "agent-a" })
m1nd.lock_rebase({ "lock_id": "lock-abc123", "agent_id": "agent-a" })
m1nd.lock_release({ "lock_id": "lock-abc123", "agent_id": "agent-a" })