cordis.patch.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # The dsh-headless bundle patch: one-shot task mode directly over dsh-base.
  2. # It mounts no Host, HTTP server, Web runtime, or browser plugin. An ordinary
  3. # provider plugin injects `cmdlineArgs`, parses the task positional
  4. # (`dsh --profile headless "<task>"`), the `--session-id` and `--json` options,
  5. # and this app's --help, then the direct driver creates a fresh Agent, or adopts
  6. # the exact Session the flag names, through the core registry and prints its
  7. # durable result.
  8. - id: system-prompt
  9. config:
  10. personaSuffix: Your working directory is {{cwd}}.
  11. personaPrefix: >-
  12. You are a coding agent powered by the {{model}} model.
  13. - id: tools
  14. config:
  15. # Keep the same temporary process-wide PTC mode opt-in as the Web surface.
  16. mode: !!js process.env.DSH_TOOLS_MODE
  17. - insert:
  18. - id: headless-startup
  19. name: '@deepseek-ai/dsh-headless/startup'
  20. # Reads its task and run options from the ordinary headlessStartup provider.
  21. - id: headless-runner
  22. name: '@deepseek-ai/dsh-headless'
  23. inject: [headlessStartup]
  24. config:
  25. task: !!js ctx.headlessStartup.task
  26. sessionId: !!js ctx.headlessStartup.sessionId
  27. json: !!js ctx.headlessStartup.json
  28. - id: hmr
  29. disabled: true