cordis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # The echo-agent plugin tree: the stdio chat app with its LLM backend swapped to
  2. # the local `mock-echo` mock and the local `echo` tool added. The clean
  3. # demonstration of "swap the backend, keep the app" — every service the agent
  4. # needs lives in @deepseek-ai/dsh-stdio-agent (which bundles @deepseek-ai/dsh-
  5. # agent-core); this leaf only picks the backends, `hmr`, and the app config.
  6. #
  7. # No API key: the `mock-echo` adapter never touches the network.
  8. # Hot-module reload for the dev/demo loop (a leaf entry, not baked into
  9. # dsh-stdio-agent — it needs `node --expose-internals`, which `demo:echo` passes).
  10. - id: hmr
  11. name: '@cordisjs/plugin-hmr'
  12. config:
  13. root: ['.']
  14. # The mock model (registers the `mock-echo` adapter) and the demo `echo` tool —
  15. # example-local teaching plugins, resolved relative to THIS file's directory.
  16. - id: mock-llm
  17. name: './src/mock-llm.ts'
  18. - id: echo-tool
  19. name: './src/echo-tool.ts'
  20. # Local bash executor: agent-core ships the `tool-bash` consumer schema, so the
  21. # leaf provides the executor it runs on (the echo demo doesn't drive bash, but
  22. # the tool is part of the shared spine).
  23. - id: bash
  24. name: '@deepseek-ai/dsh-bash-local'
  25. # The stdio chat app: console logger + the agent-core spine (pre-creating the
  26. # `main` agent on the mock model) + JSONL persistence + the readline UI.
  27. - id: stdio-agent
  28. name: '@deepseek-ai/dsh-stdio-agent'
  29. config:
  30. model: mock-echo
  31. persona: 'You are echo-agent, a demo agent.'
  32. welcome: 'echo-agent ready. Type a message ("echo <text>" triggers the tool).'
  33. persistenceRoot: './.sessions'