MCPcopy
hub / github.com/multica-ai/multica / opencodeBackend

Struct opencodeBackend

server/pkg/agent/opencode.go:45–47  ·  view source on GitHub ↗

opencodeBackend implements Backend by spawning `opencode run --format json` and reading streaming JSON events from stdout — the same pattern as Claude.

Source from the content-addressed store, hash-verified

43// opencodeBackend implements Backend by spawning `opencode run --format json`
44// and reading streaming JSON events from stdout — the same pattern as Claude.
45type opencodeBackend struct {
46 cfg Config
47}
48
49func (b *opencodeBackend) Execute(ctx context.Context, prompt string, opts ExecOptions) (*Session, error) {
50 execPath := b.cfg.ExecutablePath

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected