multica/server/internal/daemon/execenv
Jiayuan Zhang 678266ec87 feat(daemon): add per-task isolated execution environments
Introduce the `execenv` package that creates isolated working directories
for each agent task. Supports git worktree mode (code tasks) and plain
directory mode (non-code tasks), with `.agent_context/issue_context.md`
injected into the workdir for Claude Code to discover.

Key changes:
- New `server/internal/daemon/execenv/` package (Prepare/Cleanup)
- `runTask()` now creates isolated env instead of using shared reposRoot
- Prompt updated to reference `.agent_context/` files
- Add `WorkspacesRoot` config (default ~/multica_workspaces)
- Add `KeepEnvAfterTask` config for debugging
- Default agent timeout increased from 20min to 2h
- `CompleteTask` now forwards branch name to server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:41:52 +08:00
..
context.go feat(daemon): add per-task isolated execution environments 2026-03-25 12:41:52 +08:00
execenv.go feat(daemon): add per-task isolated execution environments 2026-03-25 12:41:52 +08:00
execenv_test.go feat(daemon): add per-task isolated execution environments 2026-03-25 12:41:52 +08:00
git.go feat(daemon): add per-task isolated execution environments 2026-03-25 12:41:52 +08:00