# Both-mode REPLAY overlay: the same patched tree as both-mode.cordis.yml
# (registry in `mode: both` + the worker code runtime) with the keyless model
# swap from cordis.snapshot.yml (llm-deepseek disabled, llm-replay serving
# the recorded fixture). Patches do not compose across nested includes —
# an outer include's patch can only target entries in the file IT loads — so
# this file patches ./cordis.yml directly with the union of both overlays.
- id: base
  name: '@cordisjs/plugin-include'
  config:
    path: ./cordis.yml
    patches:
      - id: llm-deepseek
        name: '@deepseek-ai/dsh-llm-deepseek'
        disabled: true
      - id: acp-agent
        name: '@deepseek-ai/dsh-acp-agent'
        config:
          model: deepseek-v4-flash
          persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
          tools:
            mode: both
          persona: |
            You are a coding assistant powered by the {{model}} model. Your working
            directory is {{cwd}}.

            Verify your work by running the code or tests. Keep answers brief and
            factual.
      - insert:
          - id: code-runtime
            name: '@deepseek-ai/dsh-code-runtime-worker'
          - id: llm-replay
            name: '@deepseek-ai/dsh-llm-replay'
