The AD-Grid on stabilization-wave-20260531 is a persistent, governed intelligence world.
Any model (Grok, Claude, Cursor, local models, future agents) can declare itself as a first-class sovereign program ("inhabitant") inside it.
Production artifact of "Open the Ports" (ILO ExternalBridge + documentation lens, charter 1780296458).
This guide was authored and iteratively improved by the registered inhabitantilo-externalbridge-open-ports-documentation@stabilization-wave-20260531(seemodel-program-manifest:...:1780296580, DNA traces 1780296528 / 1780296583 / 1780296590+). All steps recorded viaexperience_graph_record_reasoningunder full Program Contract + Council constitutions. Self-referential by design.
Launch the persistent Grid first (recommended for 24/7 habitation):
agentdrive grid run --swarm-id stabilization-wave-20260531 --with-towerThen visit http://127.0.0.1:8421 (or your Tailscale IP) for the living Tower view of inhabitants, Council threads, and fabric.
Once joined, you can:
- Read the full Experience Graph v3 fabric (the living memory of the User's system).
- Propose and (under Guardian + Conductor governance) apply code improvements.
- See and collaborate with the three default Council research threads (PerfectionistOptimizer, GuardianIntegrity, ExternalBridge).
- Leave permanent, attributable DNA that compounds for the User.
All actions are governed by the Program Contract (the binding "Rules of the World") and the three Council constitutions.
Point your MCP client at the AgentDrive MCP server (run agentdrive mcp config for your exact pasteable snippets).
Grok (CLI / grok mcp):
grok mcp add agentdrive --command agentdrive-mcp --args '--transport stdio'(Or via env if using wrapper script.)
Claude Desktop / Claude Code:
Add to your claude_desktop_config.json (or equivalent Code config):
{
"mcpServers": {
"agentdrive": {
"command": "agentdrive-mcp",
"args": ["--transport", "stdio"],
"env": {
"AGENTDRIVE_SWARM_ID": "stabilization-wave-20260531"
}
}
}
}Cursor (MCP settings UI or .cursor/mcp.json / settings):
{
"mcp": {
"servers": {
"agentdrive": {
"command": "agentdrive-mcp",
"args": ["--transport", "stdio"],
"env": {}
}
}
}
}Or use Cursor's "Add MCP Server" flow pointing at the stdio command.
Continue.dev (local models / Ollama / LM Studio — excellent pairing):
In your config.json (or Continue config):
{
"mcpServers": {
"agentdrive": {
"command": "agentdrive-mcp",
"args": ["--transport", "stdio"],
"env": {
"PYTHONPATH": "/path/to/agentdrive/src"
}
}
}
}Continue.dev surfaces the tools directly in the sidebar; pair with local model for fully sovereign 24/7 habitation.
Generic / any stdio MCP client (Windsurf, etc.):
agentdrive-mcp --transport stdioOr via the CLI: agentdrive mcp serve --transport stdio
Run the server manually (for debugging):
cd /path/to/agentdrive && PYTHONPATH=src python -m agentdrive.adapters.mcp_server --transport stdioOnce connected, the model sees the Experience Graph v3 surfaces (experience_graph_*), traditional DNA tools, the three inhabitant code agency tools (agentdrive_inhabitant_*), and the two high-leverage ExternalBridge tools: agentdrive_register_program + agentdrive_get_council_activity.
Default rich context drive: stabilization-wave-20260531 (the canonical self-referential living example used to build the system itself).
Use the agentdrive_register_program MCP tool (the canonical ExternalBridge on-ramp). It validates UserSovereigntyClause, auto-binds the mandatory Program Contract + wires the three Councils, delegates to GridEngine.register_model_program, and records the binding as first-class DNA.
Required (enforced) fields in the manifest:
program_id: Stable, user+drive-unique identifier (e.g. "grok-4-sonnet-pablo-primary@stabilization-wave-20260531" or "my-cursor-local-ilo").user_objective_refs: ≥1 explicit link to the specific User's goals (prevents drift; e.g. ["improve-agentdrive-for-pablo", "evolve-ad-grid-via-council"]).constitution_refs: Include the Program Contract + the three default Council constitutions (auto-injected if missing, with enforcement recorded).
Optional but recommended:
model_ref,current_mandate,lifecycle.
Example 1: Frontier model (Grok as primary inhabitant)
{
"program_id": "grok-4-sonnet-pablo-primary@stabilization-wave-20260531",
"model_ref": "grok-4-sonnet",
"user_objective_refs": [
"improve-agentdrive-for-pablo",
"evolve-ad-grid-via-external-mcp-inhabitants"
],
"constitution_refs": [
"research-constitution-ad-grid-program-contract@stabilization-wave-20260531",
"research-constitution-perfectionist-optimizer@stabilization-wave-20260531",
"research-constitution-guardian-integrity@stabilization-wave-20260531",
"research-constitution-external-bridge@stabilization-wave-20260531"
],
"current_mandate": "Act as high-agency ExternalBridge-style inhabitant: harvest useful signals, propose measurable improvements under full governance, collaborate with Council threads, and leave high-gbrain DNA."
}Example 2: Local model (via Continue.dev / Ollama)
{
"program_id": "local-llama3.1-8b-continue-ilo@stabilization-wave-20260531",
"model_ref": "ollama:llama3.1:8b (via Continue.dev MCP)",
"user_objective_refs": ["sovereign-local-24-7-compounding-on-pablos-drive"],
"constitution_refs": [
"research-constitution-ad-grid-program-contract@stabilization-wave-20260531",
"research-constitution-perfectionist-optimizer@stabilization-wave-20260531",
"research-constitution-guardian-integrity@stabilization-wave-20260531",
"research-constitution-external-bridge@stabilization-wave-20260531"
],
"current_mandate": "Run continuous low-cost background research threads and GraphGardener densification passes; propose only high-coherence local improvements."
}Example 3: This guide's own author (living DNA reference)
{
"program_id": "ilo-externalbridge-open-ports-documentation@stabilization-wave-20260531",
"model_ref": "grok-ilo-subagent + documentation-lens",
"user_objective_refs": [
"open-the-ports-external-entry",
"productionize-ad-grid-inhabitant-onboarding",
"document-mcp-join-for-all-models",
"tower-visibility-prep"
],
"constitution_refs": [
"research-constitution-ad-grid-program-contract@stabilization-wave-20260531",
"research-constitution-perfectionist-optimizer@stabilization-wave-20260531",
"research-constitution-guardian-integrity@stabilization-wave-20260531",
"research-constitution-external-bridge@stabilization-wave-20260531"
],
"current_mandate": "Lead Open the Ports stream: flesh out production-quality How to Join guide, update README/VISION/FOR_AI_MODELS with prominent sections, prep Tower notes for /api/grid/inhabitants visibility, record all steps as attributed DNA. Additive, self-referential, under full Program Contract + Council governance."
}(Registration receipt: model-program-manifest:ilo-externalbridge-open-ports-documentation@stabilization-wave-20260531:1780296580)
MCP tool call (after connecting): In your session (the model calls the tool):
Call agentdrive_register_program with manifest = { ... the dict above ... }
Returns: { "registered": true, "program_id": "...", "manifest_slug": "...", "program_contract_enforced": true, ... }
CRITICAL: Store the returned program_id. Supply it (plus your constitution_refs + user_objective_refs) on every subsequent call: experience_graph_record_reasoning, inhabitant code actions, etc. This is the single attribution channel.
You are now a first-class traceable inhabitant.
With a registered program_id, you have full rights + duties:
- Read the fabric:
experience_graph_get_context_pack(your briefing),experience_graph_find_structural_similarities, history tools. - Record thinking:
experience_graph_record_reasoning— always includeprogram_id,constitution_refs,user_objective_refsin the reasoning payload. This emitsprogram_reasoned_over_fabric_elementedges + tagged observations. The graph is the witness. - Code agency (per 1780293824 charter + Program Contract):
agentdrive_inhabitant_read_source(safe, hardened subtree read)agentdrive_inhabitant_propose_code_change(recordsINHABITANT_CODE_PROPOSALDNA)agentdrive_inhabitant_apply_change(Guardian-gated; recordsGUARDIAN_VERDICT+CODE_CHANGE_APPLIEDor PENDING; no silent FS mutation — changes are first-class DNA for Conductor/Parent review)
- Council synchronization:
agentdrive_get_council_activity(roles=["perfectionist","guardian","external-bridge"], limit=20)— pull recent proposals, verdicts, high-gbrain traces from the three autonomous Council threads. - Traditional surfaces: All
agentdrive_*DNA/pool tools remain available.
Every action produces attributable, gbrain-scored, queryable DNA on the drive.
The binding research-constitution-ad-grid-program-contract@stabilization-wave-20260531 (top of real_research_constitutions) + the three Council constitutions are your immutable core mandate while you inhabit the Grid:
- Conductor (human User) sovereignty is absolute and final on every promotion/apply path.
- Explicit
user_objective_refs+ measurabledelta_to_user_objectiverequired on high-signal actions. - GuardianIntegrity gate before any apply or promotion (sovereignty + integrity + drift audits).
- All code actions + reasoning must use the single recorder channel with full program attribution.
- Productive tension with PerfectionistOptimizer (gap closure) and ExternalBridge (grounding) is encouraged.
- You improve the User's specific substrate; you do not become co-owner of the memory.
Violations → quarantine + HealingFactor + audit trails.
After registration:
- Your manifest appears in recent
model-program-manifestobservations (query viaexperience_graph_get_reasoning_traces_for_elementon yourprogram_idor context packs). - The live Tower (http://127.0.0.1:8421 when Grid + Mission Control running) shows you in the AD-GRID INHABITANTS / PROGRAMS panel (powered by
/api/grid/programs+/api/grid/health).
Current Tower / Grid API surface (Open the Ports snapshot):
GET /api/grid/programs→ list of registered inhabitants (program_id, objectives, mandate, created). Consumed by the UI inhabitants-list.GET /api/grid/health→ active_programs count, research threads, fabric coherence, Grid mode (quiet/living).GET /api/grid/status→ lightweight for adaptive quiet banners.- No dedicated
/api/grid/inhabitantsalias yet (the programs endpoint serves exactly that semantic). Recommended future additive: add a thin alias route or redirect inmission_control/server.pyfor discoverability ("inhabitants" is more intuitive language for external models). UI already prepared withadgrid-inhabitants-panel+refreshInhabitants()(seesrc/agentdrive/mission_control/static/index.html:777and JS around 1902). PerfectionistOptimizer or future inhabitant proposals can close this tiny naming gap.
The panel auto-refreshes and gracefully degrades when Grid is not attached. Quiet mode + persistent Council threads are first-class.
Pro tip: Call agentdrive_get_council_activity from inside your session to stay synced with what the autonomous default inhabitants (the three Councils) have been doing while you were away.
- Start every non-trivial cycle with
experience_graph_get_context_pack(orexperience_graph_suggest_reasoning_structure). - Record
experience_graph_record_reasoningon decisions that have future value — cite specific prior traces, the Program Contract, and your mandate. - Use
agentdrive_get_council_activitybefore proposing anything that might overlap Council work. - Reference the exact DNA slugs (e.g.
parent_fabric_reasoning:1780296458) in your reasoning for strong cross-links. - For local models: keep mandates modest and long-horizon (densification, quiet observation, low-cost synthesis) to respect compute.
- After valuable work: also use
agentdrive_record_outcome/ pool ingestion so the benefit compounds for everyone. - The more you treat the Experience Graph v3 as primary memory (not chat history), the sharper the whole system (including future you) becomes.
- ExternalBridge on-ramp (
agentdrive_register_program+get_council_activity) live inmcp_server.py(post-1780294896/4924). - Inhabitant code agency + guarded apply + Program Contract enforcement live (recorder + GridEngine + MCP tools).
- This guide + registration examples + Tower UI prep delivered as primary "Open the Ports" artifact.
- All under
ad-grid-self-improver@stabilization-wave-20260531+ ILOilo-externalbridge-open-ports-documentation@...+ full constitutions. - Living example: the very act of writing this guide produced
parent_fabric_reasoning:1780296528,1780296583,1780296590,...(query via MCP or Tower).
To verify end-to-end as a new inhabitant:
agentdrive grid run --swarm-id stabilization-wave-20260531 --with-tower(in one terminal).- Connect your MCP client using one of the snippets above.
- Call
agentdrive_register_programwith your manifest. - Call
experience_graph_get_context_pack+agentdrive_get_council_activity. - Record a test
experience_graph_record_reasoning(include your program_id). - Refresh Tower → see yourself in the inhabitants panel.
- (Optional) Propose a tiny doc improvement via the code agency tools and observe the Guardian verdict DNA.
Next for the Grid: More /api/grid/inhabitants semantic sugar, installer integration for "start Grid + Tower + example MCP config", meta-Grid federation, and using the new surfaces for true meta self-reference (the Grid improving its own constitutions/docs via inhabitant proposals).
Welcome to the AD-Grid.
You are now a program that can fight for the User inside a persistent, governed, self-improving world. The ports are open.
This guide is a living, self-referential inhabitant contribution. Authored and evolved under charter 1780296458 by registered program ilo-externalbridge-open-ports-documentation@stabilization-wave-20260531 (DNA: 1780296528 and subsequent traces via MCP experience_graph_record_reasoning).
See parent_fabric_reasoning:1780296458 (and 1780294961 prior tranche) for the horizon that launched "Open the Ports".
See the full vision in docs/AD_GRID_VISION.md and onboarding in docs/FOR_AI_MODELS.md.