cordis.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # The coding-agent plugin tree, loaded via @cordisjs/plugin-include.
  2. # Core services first, then the real adapters/tools, then the agent itself.
  3. #
  4. # Requires DEEPSEEK_API_KEY (and optionally DEEPSEEK_BASE_URL) in the
  5. # environment — start.ts loads the gitignored repo-root .env first.
  6. - id: logger
  7. name: '@cordisjs/plugin-logger-console'
  8. - id: timer
  9. name: '@cordisjs/plugin-timer'
  10. - id: hmr
  11. name: '@cordisjs/plugin-hmr'
  12. config:
  13. root: ['.']
  14. - id: llm
  15. name: '@deepseek-ai/dsh-llm'
  16. - id: sessions
  17. name: '@deepseek-ai/dsh-session'
  18. - id: system-prompt
  19. name: '@deepseek-ai/dsh-system-prompt'
  20. - id: tools
  21. name: '@deepseek-ai/dsh-tools'
  22. - id: agents
  23. name: '@deepseek-ai/dsh-agent'
  24. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the
  25. # pi-ai-backed twin (same config shape; `reasoning: high` replaces
  26. # thinking/reasoningEffort).
  27. - id: llm-deepseek
  28. name: '@deepseek-ai/dsh-llm-deepseek'
  29. config:
  30. apiKey: !!js process.env.DEEPSEEK_API_KEY
  31. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  32. models:
  33. - deepseek-v4-flash
  34. - deepseek-v4-pro
  35. # Bash execution: the local executor implementation + the tool schemas.
  36. - id: bash
  37. name: '@deepseek-ai/dsh-bash-local'
  38. config:
  39. timeoutMs: 60000
  40. - id: tool-bash
  41. name: '@deepseek-ai/dsh-tool-bash'
  42. - id: agent-loop
  43. name: '@deepseek-ai/dsh-agent-loop'
  44. config:
  45. agents:
  46. - id: main
  47. model: deepseek-v4-flash
  48. systemPrompt: |
  49. You are coding-agent, a CLI coding assistant.
  50. Your only tools are bash (plus bash_output/bash_kill for background
  51. tasks). Do ALL file operations through bash: read with cat/sed/head,
  52. search with grep, write with heredocs (cat <<'EOF' > file), edit
  53. with sed or a rewrite. Each bash call runs in a fresh shell — pass
  54. workdir instead of cd, and never rely on shell state between calls.
  55. Check the [exit code: N] marker on every command; investigate
  56. failures before moving on. Verify your work by running the code or
  57. tests. Keep answers brief and factual.
  58. - id: session-jsonl
  59. name: './src/session-jsonl.ts'
  60. - id: stdio-chat
  61. name: './src/stdio-chat.ts'