Evidence before geometry
Important nodes and edges trace back to code, contracts, runtime observations, or an explicit requirement.
AI-native engineering visualization
Turn a task, feature, design pattern, or code path into an interactive engineering diagram—grounded in evidence, callable through native MCP tools, and ready for review.
Swipe or use arrow keys to pan the diagram.
A better engineering artifact
The toolkit gives agents a rigorous path from source evidence to a visual that can survive architecture review.
Important nodes and edges trace back to code, contracts, runtime observations, or an explicit requirement.
Eight focused engineering views each answer the question their layout is built to explain.
Facts, assumptions, and recommendations remain distinct instead of collapsing into one confident-looking diagram.
Choose by question
Start with the engineering decision. The advisor selects the smallest view that can explain it.
What exists, who owns it, and how the boundaries connect.
components · dependencies
What happens over time between callers, services, and providers.
calls · retries · responses
Which steps, decisions, approvals, and failure paths control the work.
branches · owners · exits
Where data begins, transforms, moves, and persists.
sources · lineage · stores
How an entity changes state and which guards allow each transition.
states · triggers · recovery
Which entities, fields, constraints, and relationships define the domain.
entities · keys · cardinality
Which engineering milestones occur and how phases depend on one another.
milestones · phases · dependencies
Where responsibilities, abstractions, controls, and defenses are enforced.
layers · controls · gaps
One durable contract
A small JSON plan keeps the agent, renderer, and reviewer aligned. The interactive HTML remains a delivery artifact—not the source of truth.
{
"schemaVersion": 2,
"task": "Add idempotent checkout",
"source": { "kind": "repository" },
"selection": {
"renderer": "architecture",
"profile": "feature-context"
},
"evidence": {
"facts": ["contract: idempotency-key"],
"assumptions": ["reservation expires"],
"recommendations": ["persist replay result"]
},
"complexity": { "detail": "balanced" },
"fidelity": { "omitted": [] }
}
Start in a minute
Install the complete plugin, connect the standard local stdio MCP server directly, or use the deterministic CLI on its own. No cluster or remote endpoint is required.
Add the GitHub repository as a marketplace, then install the plugin with its skills and MCP tools.
codex plugin marketplace add amirtaherkhani/diago
codex plugin add diago@diago
Use $diago-engineering-diagram to visualize this feature from API entry point to persistence.
After installation
Start a new agent thread in the repository you want to explain. Ask Diago to inspect the source, choose the smallest useful diagram, keep assumptions visible, and render a reviewable HTML artifact.
CodexUse $diago-engineering-diagram to…
Claude Code/diago:diago-engineering-diagram
Use $diago-engineering-diagram to map this feature from its API entry point to persistence. Inspect the code, separate facts from assumptions, and render architecture and sequence views.
Use $diago-engineering-diagram to evaluate whether the Strategy pattern fits this task. Show the current coupling, proposed objects, tradeoffs, and where the pattern should not be used.
Use $diago-engineering-diagram to find the safest workflow for rolling out this schema change. Show owners, validation gates, failure paths, rollback steps, and the evidence for each recommendation.
Use $diago-review-diagram to audit this diagram against the repository. List unsupported claims, missing boundaries, ambiguous edges, and visual issues, then recommend focused corrections.
Use $diago-engineering-diagram to trace this timeout from the incoming request through every service and dependency. Ground the sequence in code and runtime evidence, then show retry, timeout, and failure paths.
Use $diago-engineering-diagram to follow customer data from collection to deletion. Show trust boundaries, transformations, stores, external processors, retention rules, and any unverified privacy assumptions.
Use $diago-engineering-diagram to explain the payment lifecycle. Map every state, transition trigger, guard, terminal outcome, timeout, and recovery path, and link verified behavior to its source.
Use $diago-engineering-diagram to plan extracting this module into a service. Compare current and proposed boundaries, dependencies, contracts, migration steps, compatibility risks, and rollback seams.
Use $diago-engineering-diagram to inspect this repository's order domain and render a data-model view. Show verified entities, keys, constraints, cardinality, and proposed changes without inventing missing relationships.
Use $diago-engineering-diagram to turn this migration plan and repository evidence into an engineering timeline. Show phases, dependencies, owners, validation gates, and rollback milestones; use ordered phases when dates are not confirmed.
Use $diago-engineering-diagram to show where authentication, authorization, validation, observability, and data-protection controls are enforced across this system's layers. Mark gaps and unsupported assumptions explicitly.
Claude Code Replace $diago-engineering-diagram with /diago:diago-engineering-diagram, or use /diago:diago-review-diagram for review prompts.
Build with shared understanding