Skip to content

Architecture Explorer

The Architecture Explorer is a live map of every moving part in APEX — agents, subagents, skills, instructions, prompts, validators, CI workflows, and MCP servers — with the relationships between them.

The graph is regenerated from source files (.github/agents, .github/skills, .github/instructions, .vscode/mcp.json, package.json, and more) on every site build, so category counts always reflect the current repo state — never hard-coded.

Use this page when you want a system-wide map. For workflow behaviour and responsibilities, read the narrative docs first and use the explorer as a visual drill-down.

Press / to focus search, F to fit the graph, Tab to cycle nodes.

Open full screen ↗

  • Search any node by name or description (press / to focus the search box). Arrow keys navigate results, Enter selects.
  • Filter by category from the left panel. Use All / None / Invert for bulk changes.
  • View presets in the top bar narrow the graph to a concern:
    • Workflow — agents + subagents, left-to-right hand-off layout.
    • Skills — agents and the skills they use (primary + secondary tiers).
    • CI / Lint — validators and GitHub Actions workflows.
    • Instructions — agents and instruction files that auto-apply to them.
  • Click a node to open the details drawer: description, model, path, connections, plus direct links to the source file on GitHub.
  • Deep-link to any node by appending #node=<id> to the URL — e.g. architecture-explorer.html#node=agent:03-architect.
  • Keyboard: Tab cycles nodes, Enter centres the selection, + / - zoom, F fits, Esc clears.

Colours and shapes are set in the generated graph JSON — so the legend inside the explorer is always authoritative. The categories tracked are:

  • Agent, Subagent, Skill, Instruction, Prompt, Validator, CI Workflow, MCP Server.
Edge styleMeaning
Solid cyan, arrowWorkflow hand-off between agents (handoffs: frontmatter).
Dashed purpleAgent delegates to a subagent (agents: frontmatter).
Solid greenAgent uses a primary skill (always loaded).
Dotted greyAgent uses a secondary skill (on-demand).
Solid pink, arrowPrompt invokes an agent (name-matched).
Dashed amberInstruction applies to an agent/skill/prompt type.
Solid teal, arrowCI workflow runs a validator (npm run …).
Dotted redAgent uses an MCP server (referenced in body).
Dotted greenSkill references another skill (e.g. routing/delegation).

The explorer consumes site/public/architecture-explorer-graph.json, generated by node tools/scripts/generate-explorer-graph.mjs (wired into the site prebuild hook) and validated by npm run validate:explorer-graph. If the data looks stale, run the generator locally and commit the result.