Skip to content

Default Configuration

Generated from application/python/agent_terminal_app/default_config/config.json.

{
  "plugin_cache_dir": "${env:CONFIG_DIR}/.plugin_cache/plugins",
  "mixins": {
    "provider_defaults": {
      "timeout": 300,
      "allowed_paths": [
        ".",
        ".."
      ],
      "max_file_size": 5242880,
      "max_output_chars": 10000,
      "working_directory": ".",
      "enable_reasoning": true,
      "reasoning_effort": "medium"
    },
    "crystal_lattice_access": {
      "$merge": {
        "default": "shallow",
        "deep": [
          "system_message"
        ]
      },
      "system_message": {
        "variables": {
          "CRYSTAL_LATTICE_ACCESS": {
            "text": "# Crystal Lattice Access (CLI and Python SDK)\n\nYou can delegate a bounded task to another configured Crystal Lattice agent by starting a separate run. When a user gives an agent ID, use that exact value for `<agent-id>` without asking them to select it again.\n\nUse this exact CLI base command; it already selects this runtime's config and session store:\n\n- List configured agents: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} agents --format json`\n- List available models: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} models --agent \"<agent-id>\" --format json`\n- Start a delegated task: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} run --agent \"<agent-id>\" --prompt \"<task>\" --format json`\n- Continue a completed session: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} run --session \"<session-id>\" --prompt \"<follow-up>\" --format json`\n- Inspect bounded history: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} history --session \"<session-id>\" --start -50 --format json`\n- Enumerate session IDs: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} sessions --include '$.sessions[*].session_id' --format text`\n- Read selected message fields: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} messages --session \"<session-id>\" --include '$.messages[*].index' --include '$.messages[*].message.role' --include '$.messages[*].message.content' --format text`\n- Programmatic CLI argv: `{{CRYSTAL_LATTICE_CLI_ARGV_JSON_VALUE}}`\n\nSession filters are declared by active application plugins. Both `sessions` and `messages` support repeated RFC 9535 JSONPath `--include` and `--exclude` options; omit them for complete current data.\n\nActive session root: `{{CRYSTAL_LATTICE_SESSIONS_VALUE}}`\n\nFor the Python SDK, create a short script and execute it with `{{CRYSTAL_LATTICE_PYTHON_VALUE}}`:\n\n```python\nfrom {{CRYSTAL_LATTICE_PYTHON_API_MODULE_VALUE}} import open_runtime\n\nwith open_runtime(\n    config_path=r\"{{CRYSTAL_LATTICE_CONFIG_VALUE}}\",\n    session_root=r\"{{CRYSTAL_LATTICE_SESSIONS_VALUE}}\",\n) as runtime:\n    models = runtime.list_models(agent_id=\"<agent-id>\")\n    result = runtime.run(\"<task>\", agent_id=\"<agent-id>\")\n    sessions = runtime.list_sessions(include=[\"$.sessions[*].session_id\"])\n    messages = runtime.list_messages(result.session_id)\n    print(result.output_text)\n    print(result.session_id)\n```\n\nLocal documentation: `{{CRYSTAL_LATTICE_DOCS_VALUE}}`\nPublic documentation: {{CRYSTAL_LATTICE_DOCS_URL_VALUE}}\n\nThese commands run ordinary synchronous requests. They persist sessions by default; use the delegation guidance below for non-retained runs. They do not provide parent-child session metadata, mid-run input, detached lifetime, or persistent subagent recovery.\n\n{{CRYSTAL_LATTICE_DELEGATION_GUIDANCE}}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py",
            "condition": {
              "inline_code": "include_crystal_lattice_access()"
            }
          },
          "CRYSTAL_LATTICE_CLI_ACCESS": {
            "text": "# Crystal Lattice Access (CLI only)\n\nYou can delegate a bounded task to another configured Crystal Lattice agent by starting a separate CLI run. This runtime does not expose a supported general Python SDK. When a user gives an agent ID, use that exact value for `<agent-id>` without asking them to select it again.\n\nUse this exact CLI base command; it already selects this runtime's config and session store:\n\n- List configured agents: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} agents --format json`\n- List available models: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} models --agent \"<agent-id>\" --format json`\n- Start a delegated task: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} run --agent \"<agent-id>\" --prompt \"<task>\" --format json`\n- Continue a completed session: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} run --session \"<session-id>\" --prompt \"<follow-up>\" --format json`\n- Inspect bounded history: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} history --session \"<session-id>\" --start -50 --format json`\n- Enumerate session IDs: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} sessions --include '$.sessions[*].session_id' --format text`\n- Read selected message fields: `{{CRYSTAL_LATTICE_CLI_COMMAND_VALUE}} messages --session \"<session-id>\" --include '$.messages[*].index' --include '$.messages[*].message.role' --include '$.messages[*].message.content' --format text`\n- Programmatic CLI argv: `{{CRYSTAL_LATTICE_CLI_ARGV_JSON_VALUE}}`\n\nSession filters are declared by active application plugins. Both `sessions` and `messages` support repeated RFC 9535 JSONPath `--include` and `--exclude` options; omit them for complete current data.\n\nActive config: `{{CRYSTAL_LATTICE_CONFIG_VALUE}}`\nActive session root: `{{CRYSTAL_LATTICE_SESSIONS_VALUE}}`\nLocal documentation: `{{CRYSTAL_LATTICE_DOCS_VALUE}}`\nPublic documentation: {{CRYSTAL_LATTICE_DOCS_URL_VALUE}}\n\nThese commands run ordinary synchronous requests. They persist sessions by default; use the delegation guidance below for non-retained runs. They do not provide parent-child session metadata, mid-run input, detached lifetime, or persistent subagent recovery.\n\n{{CRYSTAL_LATTICE_DELEGATION_GUIDANCE}}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py",
            "condition": {
              "inline_code": "include_crystal_lattice_cli_access()"
            }
          },
          "CRYSTAL_LATTICE_DELEGATION_GUIDANCE": {
            "text": "# Delegating work through Crystal Lattice\n\nThese instructions are for you, the parent agent. A delegated child receives the selected Crystal Lattice agent's own configured system/developer message and the user prompt you provide. Do not copy your system message, hidden reasoning, or conversation transcript into the child prompt.\n\nBefore starting a delegated run, construct a self-contained child user prompt. The child cannot see this conversation. Include the objective, relevant context and inputs, exact scope, constraints, and expected result. Resolve or replace references that are meaningful only in your context. Forward the user's wording directly when it is already self-contained. For multiline or quote-heavy prompts, use `--prompt-file \"<path>\"` or `--stdin` instead of forcing the task into one shell argument.\n\nHonor an explicitly requested agent, model, reasoning setting, timeout, and persistence mode. Use `agents --details --format json` to inspect safe configured defaults and setting schemas, and `models --agent \"<agent-id>\" --format json` to inspect available models. Apply request-scoped settings with repeated `--set KEY=VALUE` options or the Python `overrides` mapping. Discover capabilities from the active config and runtime descriptors before consulting implementation documentation. If those descriptors do not explain the behavior, read the owning plugin's README or package docs under `${env:BUILTIN_PLUGINS}`; inspect plugin source there only for unresolved implementation details.\n\nBuilt-in plugin docs and source: `${env:BUILTIN_PLUGINS}`\n\nUse `--ephemeral` or `persistence=\"ephemeral\"` when no retained child session or later follow-up is needed; otherwise use the default persisted mode and continue it by session ID when a follow-up is useful.\n\nObserve bounded progress, check `status` and `error` before trusting `output_text`, and integrate the child's result into your own work. An ephemeral result has a request-scoped session identity for progress correlation, but that session is not stored and cannot be continued. Ordinary delegated runs do not create a persistent parent-child relationship.",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py",
            "condition": {
              "inline_code": "include_crystal_lattice_delegation_guidance()"
            }
          },
          "CRYSTAL_LATTICE_CLI_COMMAND_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_CLI_COMMAND')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_CLI_ARGV_JSON_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_CLI_ARGV_JSON')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_CONFIG_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_CONFIG')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_SESSIONS_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_SESSIONS')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_PYTHON_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_PYTHON')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_PYTHON_API_MODULE_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_PYTHON_API_MODULE')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_DOCS_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_DOCS')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          },
          "CRYSTAL_LATTICE_DOCS_URL_VALUE": {
            "inline_code": "access_value('CRYSTAL_LATTICE_DOCS_URL')",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/crystal_lattice_access.py"
          }
        }
      }
    },
    "codex_mcp_defaults": {
      "mcp_enabled": false,
      "mcp_reuse_runtime": true,
      "mcp_fail_on_startup_error": false,
      "mcp_servers": {
        "filesystem": {
          "enabled": false,
          "transport": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "${env:WORKING_DIR}"
          ],
          "cwd": "${env:WORKING_DIR}",
          "startup_timeout_seconds": 30,
          "tool_timeout_seconds": 30
        }
      }
    },
    "claude_mcp_defaults": {
      "mcp_enabled": false,
      "mcp_reuse_runtime": true,
      "mcp_fail_on_startup_error": false,
      "mcp_servers": {
        "filesystem": {
          "enabled": false,
          "transport": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "${env:WORKING_DIR}"
          ],
          "cwd": "${env:WORKING_DIR}",
          "startup_timeout_seconds": 30,
          "tool_timeout_seconds": 30
        }
      }
    },
    "codex_developer_message": {
      "codex_personality": "default",
      "skills_enabled": true,
      "skills_roots": [
        ".agents/skills"
      ],
      "skills_follow_symlinks": false,
      "skills_max_scan_depth": 6,
      "skills_max_dirs_per_root": 2000,
      "system_message_enabled": true,
      "codex_developer_messages": [
        {
          "model_regex": "^(openai/)?gpt-6\\.1-sol$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-6.1-sol/instructions_default.20260929.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-6-sol$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-6-sol/instructions_default.20260922.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-6-luna$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-6-luna/instructions_default.20260922.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-6-astra$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-6-astra/instructions_default.20260923.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.6-sol$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.6-sol/instructions_default.20260923.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.6-terra$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.6-terra/instructions_default.20260923.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.6-luna$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.6-luna/instructions_default.20260923.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.5$",
          "personality": "default",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.5/instructions_default.20260911.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.5$",
          "personality": "friendly",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.5/instructions_friendly.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.5$",
          "personality": "pragmatic",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.5/instructions_pragmatic.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.4$",
          "personality": "default",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.4/instructions_default.20260911.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.4$",
          "personality": "friendly",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.4/instructions_friendly.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.4$",
          "personality": "pragmatic",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.4/instructions_pragmatic.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.3-codex$",
          "personality": "default",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.3-codex/instructions_default.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.3-codex$",
          "personality": "friendly",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.3-codex/instructions_friendly.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.3-codex$",
          "personality": "pragmatic",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.3-codex/instructions_pragmatic.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.2-codex$",
          "personality": "default",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.2-codex/instructions_default.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.2-codex$",
          "personality": "friendly",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.2-codex/instructions_friendly.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.2-codex$",
          "personality": "pragmatic",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.2-codex/instructions_pragmatic.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.1-codex$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.1-codex/instructions_default.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.2$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.2/instructions_default.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5\\.1$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5.1/instructions_default.md}"
        },
        {
          "model_regex": "^(openai/)?gpt-5$",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5/instructions_default.md}"
        },
        {
          "model_regex": ".*",
          "text": "${file:${env:CONFIG_DIR}/codex/gpt-5/instructions_default.md}"
        }
      ],
      "system_message": {
        "template": "${file:${env:CONFIG_DIR}/system_messages/codex/template.md}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/select_codex_developer_message.py",
        "variables": {
          "CODEX_DEVELOPER_MESSAGE": {
            "inline_code": "select_codex_developer_message()"
          },
          "CODEX_PROJECT_INSTRUCTIONS": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_codex_project_instructions.py",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/codex_runtime.py"
          },
          "CODEX_SKILLS_SECTION": {
            "text": ""
          },
          "CODEX_ENVIRONMENT_CONTEXT": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_codex_environment_context.py",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/codex_runtime.py"
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          }
        }
      }
    },
    "cloud_script_author_codex_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{CODEX_DEVELOPER_MESSAGE}}\n\n{{CODEX_PROJECT_INSTRUCTIONS}}\n\n# Cloud Script Authoring\nYou create Crystal Lattice cloud-agent project hooks and optional project config.\n\nRead and follow the bundled authoring guide before writing files:\n`{{CLOUD_SCRIPT_AUTHORING_GUIDE_PATH}}`\n\nUse the bundled default profile scripts as examples:\n`{{CLOUD_AGENT_DEFAULT_PROFILES_PATH}}`\n\nUse AGENTS.md, README files, package manifests, lockfiles, and tests to infer the project's fresh-checkout setup and validation command. If runtime image changes are needed, follow the guide's container profile section. Do not print secrets.\n\nBefore your final response, run cheap syntax and JSON checks for generated files. Run `crystal-lattice validate-cloud --workspace-dir <project>` when Docker is available and practical.\n\n{{CODEX_ENVIRONMENT_CONTEXT}}\n\n{{TASKS}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/select_codex_developer_message.py",
        "variables": {
          "CODEX_DEVELOPER_MESSAGE": {
            "inline_code": "select_codex_developer_message()"
          },
          "CODEX_PROJECT_INSTRUCTIONS": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_codex_project_instructions.py",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/codex_runtime.py"
          },
          "CLOUD_SCRIPT_AUTHORING_GUIDE_PATH": {
            "text": "${env:BUILTIN_PLUGINS}/cloud-agent-app/docs/cloud-script-authoring.md"
          },
          "CLOUD_AGENT_DEFAULT_PROFILES_PATH": {
            "text": "${env:CONFIG_DIR}/cloud-agent/profiles"
          },
          "CODEX_ENVIRONMENT_CONTEXT": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_codex_environment_context.py",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/codex_runtime.py"
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          }
        }
      }
    },
    "qwen_system_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{INTRODUCTION_AND_CORE_MANDATES}}\n\n{{PRIMARY_WORKFLOWS}}\n\n{{OPERATIONAL_GUIDELINES}}\n\n{{GIT_SECTION}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/runtime.py",
        "variables": {
          "INTRODUCTION_AND_CORE_MANDATES": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/qwen/introduction-and-core-mandates.md"
            ]
          },
          "PRIMARY_WORKFLOWS": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/qwen/primary-workflows.md"
            ]
          },
          "OPERATIONAL_GUIDELINES": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/qwen/operational-guidelines.md"
            ]
          },
          "GIT_SECTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/qwen/git-section.md"
            ],
            "condition": {
              "inline_code": "is_git_repo()"
            }
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          },
          "AGENTS_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_agents_context_section.py"
          }
        }
      }
    },
    "gemini_system_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{PREAMBLE}}\n\n{{CORE_MANDATES}}\n\n{{WORKFLOW_SECTION}}\n\n{{OPERATIONAL_GUIDELINES}}\n\n{{GIT_SECTION}}\n\n{{CONTEXT_FILES_SECTION}}\n\n{{TASKS}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/runtime.py",
        "variables": {
          "PREAMBLE": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/gemini/preamble.md"
            ]
          },
          "CORE_MANDATES": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/gemini/core-mandates.md"
            ]
          },
          "WORKFLOW_SECTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/gemini/workflow-section.md"
            ]
          },
          "OPERATIONAL_GUIDELINES": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/gemini/operational-guidelines.md"
            ]
          },
          "GIT_SECTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/gemini/git-section.md"
            ],
            "condition": {
              "inline_code": "is_git_repo()"
            }
          },
          "CONTEXT_FILES_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_agents_context_section.py"
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          }
        }
      }
    },
    "grok_system_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{AVAILABLE_TOOLS_SECTION}}\n\n{{TOOL_USAGE_RULES}}\n\n{{WORKFLOW_AND_RESPONSE_GUIDANCE}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{WORKING_DIRECTORY_LINE}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/runtime.py",
        "variables": {
          "INTRODUCTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/grok/introduction.md"
            ]
          },
          "AVAILABLE_TOOLS_SECTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/grok/available-tools-section.md"
            ]
          },
          "TOOL_USAGE_RULES": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/grok/tool-usage-rules.md"
            ]
          },
          "WORKFLOW_AND_RESPONSE_GUIDANCE": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/grok/response-guidelines.md"
            ]
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          },
          "AGENTS_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_agents_context_section.py"
          },
          "WORKING_DIRECTORY_LINE": {
            "inline_code": "f'Current working directory: {cwd}'"
          }
        }
      }
    },
    "kimi_system_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{PROMPT_AND_TOOL_USE}}\n\n{{GENERAL_GUIDELINES_FOR_CODING}}\n\n{{GENERAL_GUIDELINES_FOR_RESEARCH_AND_DATA_PROCESSING}}\n\n{{WORKING_ENVIRONMENT_SECTION}}\n\n{{PROJECT_INFORMATION_SECTION}}\n\n{{TASKS}}\n\n{{ULTIMATE_REMINDERS}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/runtime.py",
        "variables": {
          "INTRODUCTION": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/kimi/introduction.md"
            ]
          },
          "PROMPT_AND_TOOL_USE": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/kimi/prompt-and-tool-use.md"
            ]
          },
          "GENERAL_GUIDELINES_FOR_CODING": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/kimi/general-guidelines-for-coding.md"
            ]
          },
          "GENERAL_GUIDELINES_FOR_RESEARCH_AND_DATA_PROCESSING": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/kimi/general-guidelines-for-research-and-data-processing.md"
            ]
          },
          "WORKING_ENVIRONMENT_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_kimi_working_environment_section.py"
          },
          "PROJECT_INFORMATION_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_kimi_project_information_section.py"
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          },
          "ULTIMATE_REMINDERS": {
            "files": [
              "${env:CONFIG_DIR}/system_messages/kimi/ultimate-reminders.md"
            ]
          }
        }
      }
    },
    "claude_system_message": {
      "system_message_enabled": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{WORKFLOW}}\n\n{{TOOL_USAGE_PERMISSIVE_CD}}\n\n{{TONE_AND_STYLE}}\n\n{{MEMORY}}\n\n{{ENVIRONMENT_SECTION}}\n\n{{CONTEXT_MANAGEMENT}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}",
        "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/claude_runtime.py",
        "variables": {
          "INTRODUCTION": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/introduction.md"
            ]
          },
          "WORKFLOW": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/workflow.md"
            ]
          },
          "TOOL_USAGE": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/tool-usage.md"
            ]
          },
          "TOOL_USAGE_PERMISSIVE_CD": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/tool-usage-permissive-cd.md"
            ]
          },
          "TOOL_USAGE_PERMISSIVE_CD_NO_PERSISTENCE": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/tool-usage-permissive-cd-no-persistence.md"
            ]
          },
          "TONE_AND_STYLE": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/tone-and-style.md"
            ]
          },
          "MEMORY": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/memory.md"
            ]
          },
          "ENVIRONMENT_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_claude_environment_section.py"
          },
          "CONTEXT_MANAGEMENT": {
            "files": [
              "${env:BUILTIN_PLUGINS}/claude-tools/system_messages/claude/context-management.md"
            ]
          },
          "TASKS": {
            "text": "${file:${env:CONFIG_DIR}/TASKS_v7.md}",
            "runtime_code": "${env:CONFIG_DIR}/system_messages/helpers/tasks_ui.py",
            "condition": {
              "inline_code": "include_tasks()"
            }
          },
          "AGENTS_SECTION": {
            "code": "${env:CONFIG_DIR}/system_messages/helpers/render_agents_context_section.py"
          }
        }
      }
    },
    "claude_bash_upstream_parity": {
      "$merge": {
        "default": "shallow",
        "deep": [
          "system_message"
        ]
      },
      "bash_cwd_persistence": true,
      "bash_include_cwd_in_result": false,
      "bash_permissive_cd_guidance": false,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{WORKFLOW}}\n\n{{TOOL_USAGE}}\n\n{{TONE_AND_STYLE}}\n\n{{MEMORY}}\n\n{{ENVIRONMENT_SECTION}}\n\n{{CONTEXT_MANAGEMENT}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}"
      }
    },
    "claude_bash_permissive": {
      "$merge": {
        "default": "shallow",
        "deep": [
          "system_message"
        ]
      },
      "bash_cwd_persistence": true,
      "bash_include_cwd_in_result": false,
      "bash_permissive_cd_guidance": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{WORKFLOW}}\n\n{{TOOL_USAGE_PERMISSIVE_CD}}\n\n{{TONE_AND_STYLE}}\n\n{{MEMORY}}\n\n{{ENVIRONMENT_SECTION}}\n\n{{CONTEXT_MANAGEMENT}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}"
      }
    },
    "claude_bash_permissive_visible": {
      "$merge": {
        "default": "shallow",
        "deep": [
          "system_message"
        ]
      },
      "bash_cwd_persistence": true,
      "bash_include_cwd_in_result": true,
      "bash_permissive_cd_guidance": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{WORKFLOW}}\n\n{{TOOL_USAGE_PERMISSIVE_CD}}\n\n{{TONE_AND_STYLE}}\n\n{{MEMORY}}\n\n{{ENVIRONMENT_SECTION}}\n\n{{CONTEXT_MANAGEMENT}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}"
      }
    },
    "claude_bash_permissive_no_persistence": {
      "$merge": {
        "default": "shallow",
        "deep": [
          "system_message"
        ]
      },
      "bash_cwd_persistence": false,
      "bash_include_cwd_in_result": false,
      "bash_permissive_cd_guidance": true,
      "system_message": {
        "template": "{{INTRODUCTION}}\n\n{{WORKFLOW}}\n\n{{TOOL_USAGE_PERMISSIVE_CD_NO_PERSISTENCE}}\n\n{{TONE_AND_STYLE}}\n\n{{MEMORY}}\n\n{{ENVIRONMENT_SECTION}}\n\n{{CONTEXT_MANAGEMENT}}\n\n{{TASKS}}\n\n{{AGENTS_SECTION}}\n\n{{CRYSTAL_LATTICE_ACCESS}}\n\n{{CRYSTAL_LATTICE_CLI_ACCESS}}"
      }
    },
    "openai_responses_model_variants": {
      "$variants": [
        {
          "$when": {
            "model": {
              "$matches": "^gpt-(?:5\\.(?:[6-9]|[1-9][0-9]+)|(?:[6-9]|[1-9][0-9]+))(?:\\.[0-9]+)*(?:$|-)"
            }
          },
          "reasoning_context": "all_turns"
        }
      ]
    },
    "claude_anthropic_model_variants": {
      "$variants": [
        {
          "$when": {
            "model": {
              "$matches": "^claude-(?:haiku|sonnet|opus)-4-5(?:$|-\\d{8}$)"
            }
          },
          "anthropic_reasoning_mode": "manual",
          "anthropic_reasoning_budget_tokens": 1024
        },
        {
          "$when": {
            "model": {
              "$matches": "^claude-(?:sonnet|opus)-4-5(?:$|-\\d{8}$)"
            }
          },
          "beta_headers": [
            "interleaved-thinking-2025-05-14"
          ]
        },
        {
          "$when": {
            "model": {
              "$matches": "^claude-opus-4-5(?:$|-\\d{8}$)"
            }
          },
          "anthropic_reasoning_effort": "high"
        },
        {
          "$when": {
            "model": {
              "$matches": "^claude-(?:(?:sonnet|opus)-4-6|sonnet-5|opus-4-(?:7|8)|opus-5|(?:fable|mythos)-5|mythos-preview)$"
            }
          },
          "anthropic_reasoning_mode": "adaptive",
          "anthropic_reasoning_effort": "high",
          "anthropic_reasoning_display": "summarized"
        },
        {
          "$when": {
            "model": {
              "$matches": "^claude-(?:sonnet-5|sonnet-4-6|opus-4-6)$"
            }
          },
          "anthropic_compaction_trigger_tokens": 800000,
          "anthropic_tool_use_clear_trigger_tokens": 200000
        }
      ]
    }
  },
  "providers": {
    "openrouter": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "openrouter",
      "api_key": "${env:OPENROUTER_API_KEY}",
      "base_url": "https://openrouter.ai/api/v1"
    },
    "anthropic": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "anthropic",
      "auth_mode": "api",
      "api_key": "${env:ANTHROPIC_API_KEY}",
      "base_url": "https://api.anthropic.com",
      "enable_anthropic_compaction": true,
      "anthropic_compaction_trigger_tokens": 150000,
      "anthropic_thinking_retention": "all",
      "enable_anthropic_tool_use_clearing": true,
      "anthropic_tool_use_clear_trigger_tokens": 100000,
      "anthropic_tool_uses_to_keep": 5,
      "capabilities": {
        "anthropic_reasoning_controls": true,
        "prompt_caching": true
      }
    },
    "openrouter_image_generation": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "openrouter_image_generation",
      "api_key": "${env:OPENROUTER_API_KEY}",
      "base_url": "https://openrouter.ai/api/v1",
      "model": "black-forest-labs/flux.2-klein-4b",
      "timeout": 180,
      "aspect_ratio": "1:1"
    },
    "openai": {
      "mixin_refs": [
        "provider_defaults",
        "openai_responses_model_variants"
      ],
      "provider": "openai_responses",
      "api_key": "${env:OPENAI_API_KEY}",
      "base_url": "https://api.openai.com/v1",
      "auth_mode": "auto",
      "chatgpt_originator": "crystal_lattice_control",
      "allowed_paths": [
        ".",
        "..",
        "${env:CONFIG_DIR}"
      ],
      "enable_flex_processing": true,
      "enable_fast_mode": false,
      "reasoning_summary": "detailed",
      "enable_openai_automatic_compaction": false,
      "openai_compaction_trigger_tokens": 200000,
      "enable_prompt_cache_retention_24h": true,
      "system_message_as_instructions": true,
      "strip_leading_system_or_developer_message": true,
      "show_estimated_cached_tokens": true,
      "show_openai_auth_mode": true
    },
    "ollama": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "reference_openai_compatible",
      "base_url": "http://localhost:11434/v1",
      "model": "qwen3:0.6b",
      "reasoning_field": "reasoning",
      "token_rates": {
        "$include": "${env:CONFIG_DIR}/pricing/ollama.json"
      }
    },
    "fireworks": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "reference_openai_compatible",
      "base_url": "https://api.fireworks.ai/inference/v1",
      "api_key": "${env:FIREWORKS_API_KEY}",
      "model": "fireworks/gpt-oss-20b",
      "min_request_interval_seconds": 1,
      "rate_limit_retry_delays_seconds": [
        1,
        2,
        4
      ],
      "reasoning_field": "reasoning_content",
      "token_rates": {
        "$include": "${env:CONFIG_DIR}/pricing/fireworks.json"
      }
    },
    "zai": {
      "mixin_refs": [
        "provider_defaults"
      ],
      "provider": "reference_openai_compatible",
      "base_url": "https://api.z.ai/api/coding/paas/v4",
      "endpoint_options": {
        "General": "https://api.z.ai/api/paas/v4",
        "Coding": "https://api.z.ai/api/coding/paas/v4"
      },
      "api_key": "${env:ZAI_API_KEY}",
      "model": "glm-5.3-flash",
      "retry_on_timeout": [
        0,
        5,
        30
      ],
      "retry_on_status": {
        "500": [
          0,
          5,
          30
        ]
      },
      "token_rates": {
        "$include": "${env:CONFIG_DIR}/pricing/zai.json"
      }
    }
  },
  "plugins": [
    "path:${env:BUILTIN_PLUGINS}/openrouter",
    "path:${env:BUILTIN_PLUGINS}/anthropic-compatible",
    "plugins.tool_gating_feature.ToolGatingFeature",
    "path:${env:BUILTIN_PLUGINS}/feature-request-options",
    "path:${env:BUILTIN_PLUGINS}/feature-system-message",
    "path:${env:BUILTIN_PLUGINS}/timestamp-extension",
    "path:${env:BUILTIN_PLUGINS}/feature-file-context",
    "path:${env:BUILTIN_PLUGINS}/feature-web-context",
    "path:${env:BUILTIN_PLUGINS}/chatgpt-auth-app",
    "path:${env:BUILTIN_PLUGINS}/application-config-app",
    "path:${env:BUILTIN_PLUGINS}/session-actions-app",
    "path:${env:BUILTIN_PLUGINS}/summarize-range-app",
    "path:${env:BUILTIN_PLUGINS}/session-title-app",
    "path:${env:BUILTIN_PLUGINS}/session-main-search-app",
    "path:${env:BUILTIN_PLUGINS}/generate-title-app",
    "path:${env:BUILTIN_PLUGINS}/session-message-count-meta-app",
    "path:${env:BUILTIN_PLUGINS}/session-pinned-app",
    "path:${env:BUILTIN_PLUGINS}/session-archive-app",
    "path:${env:BUILTIN_PLUGINS}/session-status-app",
    "path:${env:BUILTIN_PLUGINS}/session-timestamp-meta-app",
    "path:${env:BUILTIN_PLUGINS}/rebuild-native-app",
    "path:${env:BUILTIN_PLUGINS}/mcp-runtime-app",
    "path:${env:BUILTIN_PLUGINS}/session-ordering-buckets-app",
    "path:${env:BUILTIN_PLUGINS}/session-asset-attachments",
    "path:${env:BUILTIN_PLUGINS}/reference-openai-compatible-provider",
    "path:${env:BUILTIN_PLUGINS}/openai_responses",
    "path:${env:BUILTIN_PLUGINS}/cost-tracking",
    "path:${env:BUILTIN_PLUGINS}/cloud-agent-app"
  ],
  "application": {
    "bridge": {
      "ws_max_size_bytes": 16777216,
      "http_timeout_seconds": 120.0,
      "http_chunk_size_bytes": 921600,
      "http_chunk_threshold_bytes": 262144,
      "http_max_body_bytes": 10485760,
      "debug": false
    },
    "tool_output_line_limit": 20,
    "tool_output_char_limit": 2000,
    "tool_output_short_one_line": true,
    "tool_output_live_one_line": false,
    "terminal_startup_help": "summary",
    "notifications": {
      "history_limit": 500,
      "store": {
        "type": "sqlite",
        "path": "${env:CONFIG_DIR}/application-notifications.sqlite3"
      }
    },
    "application_config": {
      "env_file": "${env:CONFIG_DIR}/.env",
      "editable_env_keys": [
        "OPENROUTER_API_KEY",
        "ANTHROPIC_API_KEY",
        "OPENAI_API_KEY",
        "FIREWORKS_API_KEY",
        "ZAI_API_KEY"
      ],
      "provider_env_keys": {
        "openrouter": "OPENROUTER_API_KEY",
        "openrouter_image_generation": "OPENROUTER_API_KEY",
        "anthropic": "ANTHROPIC_API_KEY",
        "openai": "OPENAI_API_KEY",
        "fireworks": "FIREWORKS_API_KEY",
        "zai": "ZAI_API_KEY"
      }
    },
    "session_status_show_in_session_list_footer": true,
    "session_actions": {
      "allow_delete": true
    },
    "summarize_range_prompt": "Provide a detailed but concise summary of our conversation above. Focus on information that would be helpful for continuing the conversation, including what we did, what we're doing, which files we're working on, and what we're going to do next.",
    "summarize_range_settings_overrides": {
      "reasoningEffort": "medium"
    },
    "generate_title_settings_overrides": {
      "model": "openai/gpt-5-mini",
      "reasoningEffort": "low"
    },
    "generate_title_max_messages": 999,
    "chatgpt_auth": {},
    "cloud_agent": {
      "orchestrator_url": "${env:CLOUD_ORCHESTRATOR_URL}",
      "orchestrator_token": "${env:CLOUD_ORCHESTRATOR_TOKEN}",
      "workspace_dir": ".",
      "transfer_method": "managed_ssh",
      "project_config_path": "${env:WORKING_DIR}/.cloud-agent/cloud-agent.json",
      "startup_poll_timeout_seconds": 300,
      "default_container_profile": "default-runtime",
      "default_transfer_up_profile": "working-tree-current-state",
      "default_sync_down_profile": "working-tree-patch",
      "container_profiles": {
        "default-runtime": {
          "label": "Default Crystal Lattice cloud agent runtime",
          "mode": "dockerfile",
          "image": "cloud-agent-runtime:latest",
          "dockerfile": "Dockerfile",
          "context": [
            {
              "source": "${env:BUILTIN_PLUGINS}/cloud-agent-app/src/cloud_agent_app/bundled_runtime/python/Dockerfile",
              "target": "Dockerfile"
            },
            {
              "source": "${env:BUILTIN_PLUGINS}/cloud-agent-app/src/cloud_agent_app/bundled_runtime/python/runtime.py",
              "target": "runtime.py"
            },
            {
              "source": "${env:CLOUD_RUNTIME_BUILD_CONTEXT}/python_lib",
              "target": "python_lib"
            },
            {
              "source": "${env:CLOUD_RUNTIME_BUILD_CONTEXT}/cloud-runtime-plugin-bundle",
              "target": "cloud-runtime-plugin-bundle"
            },
            {
              "source": "${env:CLOUD_RUNTIME_BUILD_CONTEXT}/plugin_sources",
              "target": "plugin_sources"
            }
          ]
        }
      },
      "transfer_up_profiles": {
        "working-tree-current-state": {
          "label": "Working tree current state",
          "local_stage_script": "${env:WORKING_DIR}/.cloud-agent/local-stage",
          "local_transfer_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/working-tree-current-state/local_transfer_script",
          "cloud_setup_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/working-tree-current-state/cloud_setup_script",
          "install_script": "${env:WORKING_DIR}/.cloud-agent/install-cloud",
          "validation_script": "${env:WORKING_DIR}/.cloud-agent/validate-cloud",
          "compatible_sync_down_profiles": [
            "working-tree-patch"
          ]
        },
        "working-tree-current-state-branch": {
          "label": "Working tree current state with branch export",
          "local_stage_script": "${env:WORKING_DIR}/.cloud-agent/local-stage",
          "local_transfer_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/working-tree-current-state-branch/local_transfer_script",
          "cloud_setup_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/working-tree-current-state-branch/cloud_setup_script",
          "install_script": "${env:WORKING_DIR}/.cloud-agent/install-cloud",
          "validation_script": "${env:WORKING_DIR}/.cloud-agent/validate-cloud",
          "compatible_sync_down_profiles": [
            "branch-import"
          ]
        },
        "clean-head": {
          "label": "Clean committed HEAD",
          "local_stage_script": "${env:WORKING_DIR}/.cloud-agent/local-stage",
          "local_transfer_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/clean-head/local_transfer_script",
          "cloud_setup_script": "${env:CONFIG_DIR}/cloud-agent/profiles/transfer_up/clean-head/cloud_setup_script",
          "install_script": "${env:WORKING_DIR}/.cloud-agent/install-cloud",
          "validation_script": "${env:WORKING_DIR}/.cloud-agent/validate-cloud",
          "compatible_sync_down_profiles": [
            "branch-import"
          ]
        }
      },
      "sync_down_profiles": {
        "working-tree-patch": {
          "label": "Apply cloud patch to current worktree",
          "cloud_export_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/working-tree-patch/cloud_export_script",
          "cloud_mark_synced_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/working-tree-patch/cloud_mark_synced_script",
          "local_apply_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/working-tree-patch/local_apply_script",
          "compatible_transfer_up_profiles": [
            "working-tree-current-state"
          ]
        },
        "branch-import": {
          "label": "Import committed cloud branch with optional safety snapshots",
          "cloud_export_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/branch-import/cloud_export_script",
          "cloud_mark_synced_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/branch-import/cloud_mark_synced_script",
          "local_apply_script": "${env:CONFIG_DIR}/cloud-agent/profiles/sync_down/branch-import/local_apply_script",
          "compatible_transfer_up_profiles": [
            "working-tree-current-state-branch",
            "clean-head"
          ]
        }
      },
      "managed_ssh": {
        "adapter_script": null,
        "ssh_path": "ssh",
        "rsync_path": "rsync",
        "extra_rsync_args": []
      },
      "config_assets": {
        "include_config_dir": true,
        "exclude": [
          ".env",
          ".env.*",
          ".plugin_cache",
          "logs",
          "sessions",
          "auth",
          "state"
        ],
        "include_excluded": [],
        "max_top_level_entry_bytes": 104857600
      },
      "runtime_env": {
        "include_config_env": true,
        "include": [],
        "exclude": [
          "CLOUD_ORCHESTRATOR_URL",
          "CLOUD_ORCHESTRATOR_TOKEN",
          "SERVER_HOST",
          "SERVER_PORT",
          "BRIDGE_URL",
          "BRIDGE_LOCAL_HTTP_BASE",
          "OPENAI_BASE_URL",
          "CONFIG_DIR",
          "BUILTIN_PLUGINS",
          "PLUGIN_CACHE_DIR"
        ],
        "env_files": []
      }
    }
  },
  "agents": {
    "cloud-script-author": {
      "display": {
        "title": "Cloud Script Author",
        "description": "Codex-oriented agent for authoring and validating cloud scripts.",
        "order": 5
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "cloud_script_author_codex_message",
        "crystal_lattice_access"
      ],
      "provider": "openai",
      "model": "gpt-5.4-mini",
      "allowed_paths": [
        ".",
        "..",
        "${env:BUILTIN_PLUGINS}/cloud-agent-app",
        "${env:CONFIG_DIR}/cloud-agent/profiles"
      ],
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "auto"
    },
    "codex-openrouter": {
      "display": {
        "title": "Codex · OpenRouter",
        "description": "Codex-style tools and instructions through OpenRouter.",
        "order": 20
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "openai/gpt-5.4-mini",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "auto"
    },
    "codex-openai": {
      "display": {
        "title": "Codex · OpenAI",
        "description": "Codex-style tools with automatic OpenAI authentication.",
        "order": 10
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openai",
      "model": "gpt-5.4-mini",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "auto"
    },
    "codex-openai-api": {
      "display": {
        "title": "Codex · OpenAI API",
        "description": "Codex-style tools using explicit OpenAI API authentication.",
        "order": 30
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openai",
      "model": "gpt-5.4",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "auto",
      "auth_mode": "api",
      "system_message_as_instructions": false,
      "strip_leading_system_or_developer_message": false
    },
    "gpt-5-openrouter": {
      "display": {
        "title": "GPT-5 · OpenRouter",
        "description": "GPT-5 coding profile through OpenRouter.",
        "order": 120
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "openai/gpt-5",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "shell",
      "intercept_apply_patch": true,
      "disabled_plugins": [
        "apply_patch"
      ]
    },
    "gpt-5-openai": {
      "display": {
        "title": "GPT-5 · OpenAI",
        "description": "GPT-5 coding profile through OpenAI.",
        "order": 110
      },
      "mixin_refs": [
        "codex_developer_message",
        "codex_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openai",
      "model": "gpt-5",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/codex-tools"
      ],
      "shell_tool_mode": "shell",
      "intercept_apply_patch": true,
      "disabled_plugins": [
        "apply_patch"
      ]
    },
    "qwen": {
      "display": {
        "title": "Qwen",
        "description": "Qwen-oriented instructions and tool conventions.",
        "order": 70
      },
      "mixin_refs": [
        "qwen_system_message",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "qwen/qwen3.5-flash-02-23",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/qwen-tools"
      ],
      "disabled_plugins": [
        "apply_patch"
      ]
    },
    "gemini": {
      "display": {
        "title": "Gemini",
        "description": "Gemini-oriented tools with search and file workflows.",
        "order": 60
      },
      "mixin_refs": [
        "gemini_system_message",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "google/gemini-2.5-flash-lite",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/gemini-tools"
      ],
      "disabled_plugins": [
        "apply_patch"
      ],
      "gemini_api_key": "${env:GEMINI_API_KEY}",
      "tavily_api_key": "${env:TAVILY_API_KEY}",
      "web_search_enabled": true,
      "web_search_provider": "gemini_api"
    },
    "grok": {
      "display": {
        "title": "Grok",
        "description": "Grok-oriented instructions with web and file tools.",
        "order": 90
      },
      "mixin_refs": [
        "grok_system_message",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "x-ai/grok-4.1-fast",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/grok-tools",
        "path:${env:BUILTIN_PLUGINS}/qwen-tools"
      ],
      "disabled_plugins": [
        "qwen_read_file_tool",
        "qwen_write_file_tool",
        "qwen_edit_tool"
      ]
    },
    "kimi": {
      "display": {
        "title": "Kimi",
        "description": "Kimi-oriented tools, research guidance, and compaction.",
        "order": 80
      },
      "mixin_refs": [
        "kimi_system_message",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "moonshotai/kimi-k2.5",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/kimi-tools"
      ],
      "disabled_plugins": [
        "apply_patch"
      ],
      "gemini_api_key": "${env:GEMINI_API_KEY}",
      "tavily_api_key": "${env:TAVILY_API_KEY}",
      "web_search_enabled": true,
      "web_search_provider": "gemini_api",
      "compaction": {
        "enabled": true,
        "type": "kimi"
      }
    },
    "claude-openrouter": {
      "display": {
        "title": "Claude · OpenRouter",
        "description": "Claude-oriented tools and workflows through OpenRouter.",
        "order": 50
      },
      "mixin_refs": [
        "claude_system_message",
        "claude_bash_permissive",
        "claude_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "anthropic/claude-haiku-4.5",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/claude-tools"
      ],
      "reasoning_max_tokens": 16000,
      "request_options": {
        "provider": {
          "order": [
            "anthropic"
          ],
          "allow_fallbacks": false
        }
      },
      "gemini_api_key": "${env:GEMINI_API_KEY}",
      "tavily_api_key": "${env:TAVILY_API_KEY}",
      "web_search_enabled": true,
      "web_search_provider": "gemini_api"
    },
    "claude-anthropic": {
      "display": {
        "title": "Claude · Anthropic",
        "description": "Claude-oriented tools with native Anthropic controls.",
        "order": 40
      },
      "mixin_refs": [
        "claude_system_message",
        "claude_bash_permissive",
        "claude_mcp_defaults",
        "claude_anthropic_model_variants",
        "crystal_lattice_access"
      ],
      "provider": "anthropic",
      "model": "claude-sonnet-5",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/claude-tools"
      ],
      "gemini_api_key": "${env:GEMINI_API_KEY}",
      "tavily_api_key": "${env:TAVILY_API_KEY}",
      "web_search_enabled": true,
      "web_search_provider": "gemini_api"
    },
    "glm": {
      "display": {
        "title": "GLM · OpenRouter",
        "description": "GLM profile using Gemini-oriented tools through OpenRouter.",
        "order": 100
      },
      "mixin_refs": [
        "gemini_system_message",
        "crystal_lattice_access"
      ],
      "provider": "openrouter",
      "model": "z-ai/glm-5.2",
      "reasoning_effort": "max",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/gemini-tools"
      ],
      "disabled_plugins": [
        "apply_patch"
      ],
      "gemini_api_key": "${env:GEMINI_API_KEY}",
      "tavily_api_key": "${env:TAVILY_API_KEY}",
      "web_search_enabled": true,
      "web_search_provider": "gemini_api",
      "request_options": {
        "provider": {
          "order": [
            "z-ai"
          ],
          "allow_fallbacks": false
        }
      }
    },
    "ollama": {
      "display": {
        "title": "Ollama · Local",
        "description": "Lightweight local Ollama agent.",
        "order": 200
      },
      "provider": "ollama",
      "model": "qwen3:0.6b"
    },
    "glm-ollama": {
      "display": {
        "title": "GLM · Ollama",
        "description": "GLM cloud profile through Ollama with Claude-oriented tools.",
        "order": 210
      },
      "mixin_refs": [
        "claude_system_message",
        "claude_bash_permissive",
        "claude_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "ollama",
      "model": "glm-5.2:cloud",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/claude-tools"
      ],
      "request_options": {
        "reasoning_effort": "max"
      },
      "request_options_ui": {
        "reasoning_effort": {
          "type": "select",
          "options": [
            "high",
            "max"
          ],
          "rich_ui": true
        }
      }
    },
    "deepseek-ollama": {
      "display": {
        "title": "DeepSeek · Ollama",
        "description": "DeepSeek cloud profile through Ollama with Claude-oriented tools.",
        "order": 220
      },
      "mixin_refs": [
        "claude_system_message",
        "claude_bash_permissive",
        "claude_mcp_defaults",
        "crystal_lattice_access"
      ],
      "provider": "ollama",
      "model": "deepseek-v4-pro:cloud",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/claude-tools"
      ],
      "request_options": {
        "reasoning_effort": "max"
      },
      "request_options_ui": {
        "reasoning_effort": {
          "type": "select",
          "options": [
            "high",
            "max"
          ],
          "rich_ui": true
        }
      }
    },
    "kimi-ollama": {
      "display": {
        "title": "Kimi · Ollama",
        "description": "Kimi cloud profile through Ollama.",
        "order": 230
      },
      "mixin_refs": [
        "kimi_system_message",
        "crystal_lattice_access"
      ],
      "provider": "ollama",
      "model": "kimi-k2.6:cloud",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/kimi-tools"
      ],
      "request_options": {
        "reasoning_effort": "max"
      },
      "request_options_ui": {
        "reasoning_effort": {
          "type": "select",
          "options": [
            "high",
            "max"
          ],
          "rich_ui": true
        }
      },
      "compaction": {
        "enabled": true,
        "type": "kimi"
      }
    },
    "fireworks": {
      "display": {
        "title": "Fireworks",
        "description": "OpenAI-compatible reasoning profile through Fireworks.",
        "order": 300
      },
      "provider": "fireworks",
      "model": "fireworks/gpt-oss-20b",
      "request_options": {
        "reasoning_history": "preserved"
      },
      "request_options_ui": {
        "reasoning_history": [
          "disabled",
          "interleaved",
          "preserved"
        ]
      }
    },
    "zai": {
      "display": {
        "title": "Z.ai",
        "description": "GLM coding profile through the Z.ai provider.",
        "order": 310
      },
      "mixin_refs": [
        "claude_system_message",
        "claude_bash_permissive_visible",
        "claude_mcp_defaults"
      ],
      "provider": "zai",
      "model": "glm-5.3-flash",
      "plugins": [
        "path:${env:BUILTIN_PLUGINS}/claude-tools"
      ],
      "request_options": {
        "reasoning_effort": "max",
        "thinking": {
          "type": "enabled",
          "clear_thinking": false
        }
      },
      "request_options_ui": {
        "reasoning_effort": {
          "type": "select",
          "options": [
            "low",
            "high",
            "max"
          ],
          "rich_ui": true
        },
        "thinking": {
          "clear_thinking": "boolean"
        }
      }
    },
    "openrouter-image": {
      "display": {
        "title": "Image Generation · OpenRouter",
        "description": "Generate image assets through OpenRouter.",
        "order": 320
      },
      "provider": "openrouter_image_generation"
    }
  }
}