Technical documentation

Exact behavior.
One searchable reference.

Settings, limits, storage, integration contracts, security boundaries, and implementation details for magi-code.

Getting started

Mission Control

Sessions and agents

Tools and integrations

Maintainer references

Prompt construction

Explain how magi-code builds provider-visible prompt context: static templates, runtime facts, AGENTS.md files, tools, skills, subagents, provider request mapping, and customization points.

Read reference →

Session replay reuse

Prompt projection and agent execution share one bounded replay cache per AgentSession. The cache stores normalized replay output, diagnostics, a content fingerprint, the session path and file identity, and the…

Read reference →

Risk-based testing

Tests protect contracts and risks, not raw counts. P0 blocks release; P1 protects important behavior; P2 samples boundaries and failure modes.

Read reference →

Duplicate detection

cargo-dupes and jscpd are maintainer checks for duplicate code. They overlap but detect different kinds of duplication.

Read reference →

Prompt-cache audit scripts

Maintainer scripts under scripts/ check prompt-cache readiness without changing provider runtime code. The static audit is offline by default. The live checker requires explicit opt-in for networked cold/warm…

Read reference →

CPU Hotspot Profiling Workflow

Maintainer workflow for issue #48 / PRD-0056. Default path is credential-free and offline: scripts/profile_cpu.py runs ignored Rust harness tests with a temporary synthetic MC_HOME, no auth.json, credential-looking…

Read reference →

Memory Usage Profiling Workflow

Maintainer workflow for credential-free peak RSS checks. Default path is offline: scripts/profile_memory.py runs the same ignored Rust profiling harness tests as CPU profiling with a temporary synthetic MC_HOME, no…

Read reference →

Repeated setup benchmark

Credential-free benchmark for startup settings work, repeated classic-prompt setup, ten identical provider overrides, and provider tool-body construction.

Read reference →

Official release notes

On the first eligible Mission Control launch after an update, official notes appear below the rabbit. If you skipped releases, available approved notes appear oldest first, with a version heading for each release.

Read reference →

Versioned release notes