multica-ai/multica · error
create .agent_context dir: %w
Error message
create .agent_context dir: %w
What it means
Error "create .agent_context dir: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/execenv/context.go:155
// Qwen Code: skills → {workDir}/.qwen/skills/{name}/SKILL.md (native project-level discovery)
// QwenPaw: skills → {workDir}/.qwenpaw/skills/{name}/SKILL.md (native project-level discovery)
// Antigravity: skills → {workDir}/.agents/skills/{name}/SKILL.md (native discovery — see https://antigravity.google/docs/gcli-migration "Workspace skills")
// Default: skills → {workDir}/.agent_context/skills/{name}/SKILL.md
//
// manifest, when non-nil, is populated with every file we created and every
// intermediate directory we had to MkdirAll (skipping any that pre-existed).
// CleanupSidecars uses it to roll the workdir back to its pre-Prepare
// state for local_directory tasks. Callers that don't need cleanup —
// cloud-mode tasks whose envRoot is wiped wholesale by the GC loop — may
// pass nil to skip the bookkeeping entirely.
func writeContextFiles(workDir, provider string, ctx TaskContextForEnv, manifest *sidecarManifest) error {
if err := writeTaskContextMarker(workDir, ctx, manifest); err != nil {
return err
}
contextDir := filepath.Join(workDir, ".agent_context")
if err := recordMkdirAll(contextDir, 0o755, manifest); err != nil {
return fmt.Errorf("create .agent_context dir: %w", err)
}
content := renderIssueContext(provider, ctx)
path := filepath.Join(contextDir, "issue_context.md")
if err := recordWriteFile(path, []byte(content), 0o644, manifest); err != nil {
// A pre-existing path means the user already owns
// .agent_context/issue_context.md — either they created it
// themselves or it survived from a crashed prior run we can't
// safely distinguish from intentional content. Refusing the
// write is the correct call: the runtime brief (CLAUDE.md /
// AGENTS.md) already carries every fact this file
// would, so the agent runs fine without the sidecar copy.
// Anything else is a real failure.
if !errors.Is(err, errPathPreExists) {
return fmt.Errorf("write issue_context.md: %w", err)
}
}
View on GitHub (pinned to 2c0912b6ec)
Solutions
- Check permissions to create the .agent_context directory.
When it happens
Trigger: Thrown at server/internal/daemon/execenv/context.go:155 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/c0e67ad056fff30b.
Report an issue: GitHub.