minimal.patch.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Minimal Python SDK overlay for `dsh --profile sdk`. The SDK server applies
  2. # the model-facing allowlist to every root session, so later base-bundle tools
  3. # cannot appear implicitly. The profile still owns JSON-RPC and persistence.
  4. - id: system-prompt
  5. config:
  6. includeHarnessIdentity: false
  7. includeRuntimeContext: false
  8. persona: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a helpful software engineer assistant.'
  9. personaComplete: true
  10. - id: sdk-jsonrpc-server
  11. config:
  12. maxTokensAsSuccess: !!js "process.env.DSH_MAX_TOKENS_AS_SUCCESS === undefined ? true : JSON.parse(process.env.DSH_MAX_TOKENS_AS_SUCCESS)"
  13. toolFilter:
  14. allow:
  15. - bash
  16. - str_replace_editor
  17. # Remove non-tool model inputs and turn rewriting, plus the one-shot Bash row
  18. # that would conflict with the persistent Bash tool inserted below.
  19. - id: agent-instructions
  20. disabled: true
  21. - id: tool-bash
  22. disabled: true
  23. - id: compaction-basic
  24. disabled: true
  25. - id: command-compact
  26. disabled: true
  27. - id: tool-result-pruner
  28. disabled: true
  29. - id: tool-str-replace-editor
  30. config:
  31. maxOutputChars: 16000
  32. - insert:
  33. - id: pty
  34. name: '@deepseek-ai/dsh-terminal'
  35. - id: terminal-bash
  36. name: '@deepseek-ai/dsh-terminal-bash'
  37. config:
  38. timeoutMs: 300000
  39. - id: persistent-bash
  40. name: '@deepseek-ai/dsh-tool-bash-persistent'
  41. config:
  42. timeoutMs: 300000