| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- # One-shot coding agent with format-pure stdout. The app bin loads the
- # gitignored root `.env`; this file reads `DEEPSEEK_API_KEY` and optional
- # `DEEPSEEK_BASE_URL` through `!!js`.
- # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the pi-ai-backed
- # twin (same config shape; `reasoning: high` replaces thinking/reasoningEffort).
- - id: llm-deepseek
- name: '@deepseek-ai/dsh-llm-deepseek'
- config:
- apiKey: !!js process.env.DEEPSEEK_API_KEY
- baseURL: !!js process.env.DEEPSEEK_BASE_URL
- models:
- - id: deepseek-v4-pro
- - id: deepseek-v4-flash
- - id: bash
- name: '@deepseek-ai/dsh-bash-local'
- config:
- timeoutMs: 60000
- # The app bundle pre-creates one fresh `main` agent per invocation.
- - id: cli-agent
- name: '@deepseek-ai/dsh-cli-demo'
- config:
- provider: deepseek
- model: deepseek-v4-flash
- persistenceRoot: './.sessions'
- persistenceCompression: !!js "process.env.DSH_SNAPSHOT === undefined ? 'zstd' : 'none'"
- workspaceContext:
- maxBytes: 65536
- persona: |
- You are headless-agent, a coding assistant powered by the {{model}} model.
- Verify your work by running the code or tests. Keep answers brief and
- factual.
- # Summarize an older range when derived history approaches the context window.
- - id: compact-basic
- name: '@deepseek-ai/dsh-compact-basic'
- config:
- contextWindow: 128000
- thresholdRatio: 0.8
- retainTokens: 20480
- summarizationModel: ''
- maxTokens: 8192
- compactionRetries: 1
- # Expose fresh-child `spawn` and completed-prefix `fork` through independent
- # in-process backends.
- - id: subagent
- name: '@deepseek-ai/dsh-subagent'
- - id: subagent-spawn
- name: '@deepseek-ai/dsh-subagent-spawn'
- config:
- providerName: spawn
- - id: subagent-fork
- name: '@deepseek-ai/dsh-subagent-fork'
- config:
- providerName: fork
- - id: tool-subagent
- name: '@deepseek-ai/dsh-tool-subagent'
- config:
- provider: spawn
- toolName: subagent
- maxDepth: 1
- - id: tool-subagent-fork
- name: '@deepseek-ai/dsh-tool-subagent'
- config:
- provider: fork
- toolName: subagent_fork
- maxDepth: 1
- # The worker-thread workflow engine fans a model-written JavaScript script's
- # `agent()` calls out through the spawn backend.
- - id: workflow-workerthread
- name: '@deepseek-ai/dsh-workflow-workerthread'
- config:
- provider: spawn
- - id: tool-workflow
- name: '@deepseek-ai/dsh-tool-workflow'
- # `todo_write` replaces the logged whole list.
- - id: tool-todo
- name: '@deepseek-ai/dsh-tool-todo'
- # Policy loads before the model-facing filesystem tools so writes and edits
- # require an observed file. Relative paths resolve from the process cwd.
- - id: fs-local
- name: '@deepseek-ai/dsh-fs-local'
- config:
- cwd: !!js process.cwd()
- - id: fs-policy
- name: '@deepseek-ai/dsh-fs-policy'
- - id: tool-fs
- name: '@deepseek-ai/dsh-tool-fs'
|