cordis.snapshot.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Keyless replay includes the live `cordis.yml`, disables the key-requiring
  2. # DeepSeek adapter, and inserts `llm-replay` to serve recorded JSONL without a key
  3. # or network; every other app entry remains shared. It also restates the acp-agent
  4. # config to re-pin `deepseek-v4-flash`: `cordis.yml` ships `deepseek-v4-pro`, but the
  5. # recorded corpus (request headers, provenance, system prompt) was captured on flash,
  6. # so replay holds the recorded model to stay reproducible without a re-record. A config
  7. # patch replaces the whole app config, so the base fields are restated verbatim.
  8. # With `DSH_SNAPSHOT=replay`, the app bin reads `DSH_SNAPSHOT_FILE` and optional
  9. # `DSH_SNAPSHOT_OVERRIDE` from the harness. The one-shot patch applies at include
  10. # load time, and stdout remains reserved for ACP JSON-RPC.
  11. - id: base
  12. name: '@cordisjs/plugin-include'
  13. config:
  14. path: ./cordis.yml
  15. patches:
  16. # `name` asserts the target: a mismatch skips the patch and warns only when
  17. # a logger exists. A renamed id leaves a stale adapter entry, but replay still
  18. # short-circuits through `llm-replay`.
  19. - id: llm-deepseek
  20. name: '@deepseek-ai/dsh-llm-deepseek'
  21. disabled: true
  22. - id: acp-agent
  23. name: '@deepseek-ai/dsh-acp-demo'
  24. config:
  25. provider: deepseek
  26. model: deepseek-v4-flash
  27. persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
  28. # Replay fixtures are raw JSONL; the whole-config patch must restate
  29. # the compression choice or the default zstd frames hide the logs
  30. # from the harness's harvest.
  31. persistenceCompression: none
  32. workspaceContext:
  33. maxBytes: 65536
  34. persona: |
  35. You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. Your bash tool runs under a file sandbox — a `[sandbox: file access denied …]` result is policy, not a command bug.
  36. Verify your work by running the code or tests. Keep answers brief and factual.
  37. - id: sandbox
  38. name: '@deepseek-ai/dsh-sandbox-local'
  39. config:
  40. runnerCommand:
  41. - bash
  42. - -c
  43. - while [ "$1" != "--" ]; do shift; done; shift; exec "$@"
  44. - passthrough-runner
  45. runnerFailureSignatures:
  46. - 'passthrough-runner: profile rejected'
  47. - insert:
  48. - id: llm-replay
  49. name: '@deepseek-ai/dsh-llm-replay'
  50. config:
  51. providers:
  52. - id: deepseek
  53. name: DeepSeek
  54. models:
  55. - id: deepseek-v4-flash
  56. - id: deepseek-v4-pro