cordis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # Stdio agent with the network-free `mock-echo` adapter and example-local `echo`
  2. # tool. The app bundle supplies the spine; this leaf selects backends, HMR, and app config.
  3. # No API key: the `mock-echo` adapter never touches the network.
  4. # Hot-module reload for the dev/demo loop (a leaf entry, not baked into
  5. # dsh-stdio-agent — it needs `node --expose-internals`, which `demo:echo` passes).
  6. - id: hmr
  7. name: '@cordisjs/plugin-hmr'
  8. config:
  9. root: ['.']
  10. # Example-local model and tool plugins resolve relative to this file.
  11. - id: mock-llm
  12. name: './src/mock-llm.ts'
  13. - id: echo-tool
  14. name: './src/echo-tool.ts'
  15. # Local bash executor: agent-core ships the `tool-bash` consumer schema, so the
  16. # leaf provides the executor it runs on (the echo demo doesn't drive bash, but
  17. # the tool is part of the shared spine).
  18. - id: bash
  19. name: '@deepseek-ai/dsh-bash-local'
  20. # The app pre-creates `main` on the mock model and supplies logging, persistence, and readline UI.
  21. - id: stdio-agent
  22. name: '@deepseek-ai/dsh-stdio-agent'
  23. config:
  24. model: mock-echo
  25. persona: 'You are echo-agent, a demo agent.'
  26. welcome: 'echo-agent ready. Type a message ("echo <text>" triggers the tool).'
  27. persistenceRoot: './.sessions'