name: mental-map description: Use when mapping application architecture, analyzing Caido MCP proxy traffic, grouping requests into auth, cart, checkout, signup, login, forgot-password, or user-profile flows, or documenting sequence diagrams and replication notes.
Mental Map Analysis
Build mental maps of application architecture from Caido MCP proxy traffic.
Required Preflight
Read shared state in this order before mapping flows:
notes/summary.mdnotes/observations.mdchecklist.md(auth, workflow, and business-logic items only)todo.md(workflow mapping or prerequisite items only)
Primary Analysis Surface
Use Caido MCP proxy traffic as the source of truth, set the browser or replay client proxy to KAIDO_MCP_PROXY_URL, then classify captured requests into application flows.
When the flow creates reusable routes, object references, auth boundaries, or follow-up hypotheses, also write normalized observations through /live-map so future agents can query the universal runtime application map instead of rediscovering the same area.
What To Map
Prioritize end-to-end flows another agent would need to replay safely:
authsignuploginforgot-passworduser-profilecartcheckout- Any custom billing, admin, search, upload, or API workflow that materially changes state
Files
- Playbook:
$HARNESS_ROOT/prompts/mental-map-playbook.md - Output Root:
$HARNESS_SHARED_BASE/{program}/agent_shared/application-structure/ - Universal Runtime Map:
$HARNESS_SHARED_BASE/{program}/agent_shared/application-map/ - Live Map CLI:
$HARNESS_ROOT/agents/live_map.py - Flow Template:
$HARNESS_ROOT/agent_shared/templates/application-structure/flow-template.md
Output Contract
Write one markdown file per flow to:
$HARNESS_SHARED_BASE/{program}/agent_shared/application-structure/{flow-type}/{flow-name}.md
Each flow file must include:
- Domain
- Endpoints involved
- Request sequence
- Auth requirements
- Session handling and CSRF notes
- Data model
- State transitions
- Replication notes for another agent
Workflow
- Complete the required preflight reads in shared state order.
- Read
prompts/mental-map-playbook.md. - Connect the browser or replay client to
KAIDO_MCP_PROXY_URLand capture the real workflow. - Group requests into a concrete flow with entry points, dependencies, and state-changing operations.
- Write the diagram and structured notes to
agent_shared/application-structure/{flow-type}/{flow-name}.md. - Ingest reusable route/object/action/auth-boundary observations into
/live-map. - Write surface observations to
/map-storefor each URL and flow you map — auth patterns (CSRF tokens, session cookies, rate-limit headers), endpoint discoveries, technology clues. Tag with vuln-class prefixes (xss-,ssrf-,idor-) so downstream agents see them. Use--scope appfor app-wide deductions (e.g., "all forms use CSRF, server-validated"). - Update
notes/summary.md,notes/observations.md, andtodo.mdwhen the map exposes new testing lanes or prerequisites.