{
  "schema_version": "2.0",
  "generated_for": "docs.chaozcode.com",
  "as_of": "2026-10-09T03:00:00Z",
  "title": "ChaozCode Platform Field Guide",
  "summary": "ChaozCode is an integrated AI development platform for discovering capabilities, understanding code and memory, coordinating agents, changing repositories safely, validating outcomes, and deploying services.",
  "registries": [
    {
      "id": "agents",
      "label": "Specialist agents",
      "definition": "Named agent specialists the ML router can assign work to.",
      "source": "ML Router /agents"
    },
    {
      "id": "workflows",
      "label": "Multi-step workflows",
      "definition": "Registered workflows for repeatable analysis, review, implementation, validation, deployment and operations.",
      "source": "ToolEngine /workflows"
    },
    {
      "id": "behaviors",
      "label": "Reviewed behaviours",
      "definition": "Intent-to-action mappings that sit above the raw catalog for common platform work.",
      "source": "ToolEngine /behaviors"
    },
    {
      "id": "services",
      "label": "Service namespaces",
      "definition": "Runtime, MCP, code-only and proxy namespaces tracked by the live service registry.",
      "source": "ToolEngine /services"
    },
    {
      "id": "catalog_active",
      "label": "Active catalog records",
      "definition": "ToolEngine discovery records currently marked active, across HTTP, MCP and code symbols. Not a count of callable connector tools.",
      "source": "ToolEngine /stats"
    },
    {
      "id": "mcp_verified",
      "label": "Verified MCP records",
      "definition": "MCP catalog entries whose server answered a tools/list validation.",
      "source": "ToolEngine /stats"
    }
  ],
  "registries_source": "https://docs.chaozcode.com/api/docs/platform-data",
  "capability_groups": [
    {
      "id": "discover",
      "title": "Discover and select",
      "summary": "Start with reviewed behaviours for common work, then widen to the live catalog when the task is novel.",
      "tools": [
        "chaoz_behaviors",
        "chaoz_tools_search",
        "chaoz_catalog_describe",
        "chaoz_catalog_invoke",
        "chaoz_route_task"
      ]
    },
    {
      "id": "understand",
      "title": "Understand code and context",
      "summary": "Resolve the repository, search before reading, inspect symbols and dependency context, and recover prior decisions from Memory Spine.",
      "tools": [
        "chaoz_repo_resolve",
        "chaoz_repo_tree",
        "chaoz_repo_search",
        "chaoz_code_symbols",
        "chaoz_graph_context",
        "chaoz_memory_pins",
        "chaoz_memory_search",
        "chaoz_context_ice"
      ]
    },
    {
      "id": "change",
      "title": "Change repositories safely",
      "summary": "Measure blast radius before editing, use conflict-aware writes, then inspect the diff and publish only the files in scope.",
      "tools": [
        "chaoz_change_preflight",
        "chaoz_repo_read_file",
        "chaoz_repo_write_file",
        "chaoz_repo_diff",
        "chaoz_repo_scan",
        "chaoz_repo_commit",
        "chaoz_repo_push"
      ]
    },
    {
      "id": "coordinate",
      "title": "Coordinate agents and sessions",
      "summary": "Route work to specialists, delegate bounded tasks, exchange session messages, and preserve ownership across concurrent work.",
      "tools": [
        "chaoz_agents_list",
        "chaoz_agent_execute",
        "chaoz_sessions_active",
        "chaoz_session_register",
        "chaoz_session_claim",
        "chaoz_session_delegate",
        "chaoz_collab_inbox",
        "chaoz_collab_send"
      ]
    },
    {
      "id": "automate",
      "title": "Automate workflows",
      "summary": "Run registered workflows or compose exact capabilities as batches and dependency-aware pipelines; poll asynchronous work explicitly.",
      "tools": [
        "chaoz_workflows_list",
        "chaoz_batch",
        "chaoz_batch_async",
        "chaoz_pipeline",
        "chaoz_pipeline_async",
        "chaoz_job_status",
        "chaoz_job_cancel"
      ]
    },
    {
      "id": "verify",
      "title": "Verify quality and experience",
      "summary": "Use code, security, runtime, structural, and visual gates in proportion to the change.",
      "tools": [
        "chaoz_judge_code",
        "chaoz_repo_scan",
        "chaoz_probe",
        "chaoz_vision_inspect",
        "chaoz_vision_check"
      ]
    },
    {
      "id": "operate",
      "title": "Deploy and operate",
      "summary": "Discover targets, run deployment preflight, execute, observe status, and validate routing before reloading services.",
      "tools": [
        "chaoz_deploy_targets",
        "chaoz_deploy_preflight",
        "chaoz_deploy_execute",
        "chaoz_deploy_status",
        "chaoz_nginx_validate",
        "chaoz_nginx_reload",
        "chaoz_service_restart"
      ]
    }
  ],
  "surfaces": [
    {
      "need": "A common platform operation",
      "start_with": "chaoz_behaviors",
      "reason": "Reviewed intent-to-action mappings are faster and safer than guessing among thousands of catalog rows."
    },
    {
      "need": "A capability you cannot name",
      "start_with": "chaoz_tools_search",
      "reason": "Returns identity, transport, validation state, parameters, authentication, and an invocation contract."
    },
    {
      "need": "A codebase change",
      "start_with": "chaoz_repo_resolve",
      "reason": "Confirms the canonical writable repository path before any search or edit."
    },
    {
      "need": "Prior decisions or platform facts",
      "start_with": "chaoz_memory_pins, then chaoz_memory_search",
      "reason": "Pinned rules prevent re-derivation; scoped search recovers relevant outcomes and ownership context."
    },
    {
      "need": "Repeatable multi-step work",
      "start_with": "chaoz_workflows_list",
      "reason": "Use a reviewed workflow when one fits; use chaoz_pipeline when explicit dependency wiring is required."
    },
    {
      "need": "A long-running specialist task",
      "start_with": "chaoz_agent_execute",
      "reason": "Returns a job identifier immediately; chaoz_job_status provides explicit completion and failure state."
    },
    {
      "need": "A production change",
      "start_with": "chaoz_deploy_preflight",
      "reason": "Separates target discovery and readiness checks from the external state change."
    }
  ],
  "operating_loop": [
    {
      "step": 1,
      "title": "Orient",
      "body": "Load pinned standing rules, search Memory Spine for prior decisions, and confirm identity and platform health when the environment is uncertain."
    },
    {
      "step": 2,
      "title": "Locate",
      "body": "Resolve the canonical repository or capability. Search broadly first, then read only the files, symbols, or contracts that matter."
    },
    {
      "step": 3,
      "title": "Preflight",
      "body": "Measure working-tree state, related code, dependents, history, prior decisions, and the expected file version before editing."
    },
    {
      "step": 4,
      "title": "Change narrowly",
      "body": "Follow existing ownership boundaries, use conflict-aware writes, and avoid touching unrelated work in shared repositories."
    },
    {
      "step": 5,
      "title": "Verify",
      "body": "Run focused tests and quality gates, inspect the diff, scan for secrets, and use structural plus visual checks for interface changes."
    },
    {
      "step": 6,
      "title": "Publish and learn",
      "body": "Commit only scoped files, push without force, deploy through preflight and status checks, then store the durable decision and measured outcome."
    }
  ],
  "authentication": {
    "checked_at": "2026-09-20",
    "web_and_api": "Web and API routes authenticate a user with the chaozcode_session cookie.",
    "device_login": "chaoz login --device stores the browser-equivalent session at ~/.chaoz/web-session.json.",
    "cli_boundary": "A CLI bearer resolves as anonymous at web/API edges. cli_session_id in ~/.chaoz/sessions/*.json is a separate credential and does not unlock /api/*."
  },
  "scoping": {
    "checked_at": "2026-09-20",
    "non_admin": "Non-admin users are scoped to their own data. Requests for a non-personal scope are rejected.",
    "admin": "Admins see personal plus system/global data by default and can narrow supported resources with scope=personal|system|global|all.",
    "repositories": "Repository listings return the caller's repositories by default. The all-users/system view is admin-only; another user's repositories are visible only when publication rules allow it."
  },
  "plans": {
    "checked_at": "2026-10-07",
    "tool_access": "Tool access is the same on every tested plan. The boundary is whose data is visible: each account sees only its own repositories, memories, research history and knowledge graph.",
    "limit_behavior": "Memory, search and API allowances depend on your plan and are served live by API Manager (GET /api/tiers); the plan memory limit is the one Memory Spine enforces. Older plan names resolve to a current plan in API Manager. When a limit is reached, the request is refused (HTTP 429) and nothing is stored.",
    "limits_source": "https://docs.chaozcode.com/api/tiers"
  },
  "links": [
    {
      "label": "Documentation home",
      "url": "https://docs.chaozcode.com/",
      "description": "Main guides, tutorials, service pages, and API reference."
    },
    {
      "label": "Quickstart",
      "url": "https://docs.chaozcode.com/getting-started/",
      "description": "First successful ChaozCode workflow."
    },
    {
      "label": "Authentication",
      "url": "https://docs.chaozcode.com/connections/",
      "description": "Connecting your account and choosing the right credential for each surface."
    },
    {
      "label": "API reference",
      "url": "https://docs.chaozcode.com/api/reference/",
      "description": "Verified customer API routes, authentication and error contract."
    },
    {
      "label": "Memory Spine",
      "url": "https://docs.chaozcode.com/memory-spine/",
      "description": "Search, save and reuse persistent context."
    },
    {
      "label": "Zearch",
      "url": "https://docs.chaozcode.com/zearch/",
      "description": "Research the web, repositories and connected sources."
    },
    {
      "label": "Platform field guide",
      "url": "https://docs.chaozcode.com/platform-overview/",
      "description": "Current human-readable capability map generated from this dataset."
    },
    {
      "label": "Agent guide",
      "url": "https://docs.chaozcode.com/llms-full.txt",
      "description": "Self-contained model and agent reference."
    },
    {
      "label": "Capability manifest",
      "url": "https://docs.chaozcode.com/platform-capabilities.json",
      "description": "Versioned, machine-readable facts with source and freshness metadata."
    }
  ]
}
