Skip to content

feat(agent): add TraeCli (coco) agent runtime support#2926

Open
KDF5000 wants to merge 2 commits into
multica-ai:mainfrom
KDF5000:feat/traecli-runtime
Open

feat(agent): add TraeCli (coco) agent runtime support#2926
KDF5000 wants to merge 2 commits into
multica-ai:mainfrom
KDF5000:feat/traecli-runtime

Conversation

@KDF5000
Copy link
Copy Markdown

@KDF5000 KDF5000 commented May 20, 2026

Summary

Add TraeCli (also known as Coco) as a new agent runtime in Multica, using the ACP (Agent Client Protocol) for communication.

Changes

  • server/pkg/agent/traecli.go: ACP backend implementation for Coco, spawns coco acp serve --yolo, maps tool titles to standard names
  • server/pkg/agent/agent.go: Register "traecli" in New() factory and launchHeaders
  • server/pkg/agent/models.go: Model discovery via coco models subcommand (simpler and more reliable than ACP session-based discovery used by hermes/kimi/kiro)
  • server/internal/daemon/config.go: Probe for MULTICA_TRAECLI_PATH / coco / MULTICA_TRAECLI_MODEL, add "coco" to default CLI names
  • server/internal/daemon/execenv/runtime_config.go: Inject AGENTS.md and skills for traecli provider

Testing

  • Built and tested locally on macOS arm64 with Multica desktop app
  • Daemon discovers coco on PATH and registers the traecli runtime
  • Model list populated successfully via coco models
  • Agent execution works end-to-end through ACP protocol

Add TraeCli (also known as Coco) as a new agent runtime in Multica,
using the ACP (Agent Client Protocol) for communication.

Changes:
- server/pkg/agent/traecli.go: ACP backend implementation for Coco,
  spawns `coco acp serve --yolo`, maps tool titles to standard names
- server/pkg/agent/agent.go: register "traecli" in New() factory and
  launchHeaders
- server/pkg/agent/models.go: model discovery via `coco models`
  subcommand (simpler and more reliable than ACP session-based
  discovery used by hermes/kimi/kiro)
- server/internal/daemon/config.go: probe for MULTICA_TRAECLI_PATH /
  coco / MULTICA_TRAECLI_MODEL, add "coco" to default CLI names
- server/internal/daemon/execenv/runtime_config.go: inject AGENTS.md
  and skills for traecli provider
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

Someone is attempting to deploy a commit to the IndexLabs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant