1
0

cordis.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. # Dev-mode event-contract assertions + session-log freeze (off in prod).
  25. - id: invariants
  26. name: '@deepseek-ai/dsh-invariants'
  27. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the
  28. # pi-ai-backed twin (same config shape; `reasoning: high` replaces
  29. # thinking/reasoningEffort).
  30. - id: llm-deepseek
  31. name: '@deepseek-ai/dsh-llm-deepseek'
  32. config:
  33. apiKey: !!js process.env.DEEPSEEK_API_KEY
  34. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  35. models:
  36. - deepseek-v4-flash
  37. - deepseek-v4-pro
  38. # Bash execution: the local executor implementation + the tool schemas.
  39. - id: bash
  40. name: '@deepseek-ai/dsh-bash-local'
  41. config:
  42. timeoutMs: 60000
  43. - id: tool-bash
  44. name: '@deepseek-ai/dsh-tool-bash'
  45. - id: agent-loop
  46. name: '@deepseek-ai/dsh-agent-loop'
  47. config:
  48. agents:
  49. - id: main
  50. model: deepseek-v4-flash
  51. systemPrompt: |
  52. You are coding-agent, a CLI coding assistant.
  53. Your only tools are bash (plus bash_output/bash_kill for background
  54. tasks). Do ALL file operations through bash: read with cat/sed/head,
  55. search with grep, write with heredocs (cat <<'EOF' > file), edit
  56. with sed or a rewrite. Each bash call runs in a fresh shell — pass
  57. workdir instead of cd, and never rely on shell state between calls.
  58. Check the [exit code: N] marker on every command; investigate
  59. failures before moving on. Verify your work by running the code or
  60. tests. Keep answers brief and factual.
  61. - id: session-jsonl
  62. name: './src/session-jsonl.ts'
  63. - id: stdio-chat
  64. name: './src/stdio-chat.ts'