multica-ai/multica · error

create agent backend: %w

Error message

create agent backend: %w

What it means

Error "create agent backend: %w" thrown in multica-ai/multica.

Source

Thrown at server/internal/daemon/daemon.go:6806

	}
	// Resolve the backend through the unified runtime resolver: built-in
	// runtime identities (e.g. "omp") dispatch through NewRuntime, protocol
	// families go through New. This is the single production boundary — the
	// daemon never calls agent.New or agent.NewRuntime directly, so the two
	// factories stay meaning exactly one thing each.
	backend, err := agent.ResolveBackend(provider, agent.Config{
		ExecutablePath: entry.Path,
		CLIVersion:     resolvedVersion,
		Env:            agentEnv,
		Logger:         d.logger,
		TaskID:         task.ID,
		RuntimeID:      task.RuntimeID,
		DaemonVersion:  d.cfg.CLIVersion,
		CodexVersion:   codexVersion,
		BuiltinRuntime: !usesCustomProfileCommand,
	})
	if err != nil {
		return TaskResult{}, fmt.Errorf("create agent backend: %w", err)
	}

	taskLog.Info("starting agent",
		"provider", provider,
		"workdir", env.WorkDir,
		"model", entry.Model,
		"reused", reused,
	)
	if task.PriorSessionID != "" {
		taskLog.Info("resuming session", "session_id", task.PriorSessionID)
	}

	taskStart := time.Now()

	var customArgs []string
	extraArgs := defaultArgsForProvider(d.cfg, provider)
	if len(profileFixedArgs) > 0 {
		extraArgs = append(append([]string{}, profileFixedArgs...), extraArgs...)

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Verify the agent CLI is installed and on PATH; inspect the wrapped error.

When it happens

Trigger: Thrown at server/internal/daemon/daemon.go:6806 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/7cd714e5a7777646. Report an issue: GitHub.