diff --git a/CLAUDE.md b/CLAUDE.md index 50c8825..33551c9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -180,3 +180,15 @@ Before any new or changed service is considered ready: - Services: kebab-case (`stability-agent`, `zigbee2mqtt`) - Container names must match service names - Always `restart: unless-stopped` unless `service.yaml` says otherwise + +## Multi-agent worktree mode + +`~/homelab-codex-ws` (main checkout) is **deploy-only** and belongs to the human operator. +Parallel agent tasks run in isolated git worktrees created by `scripts/dev/agent.sh new `. + +If `.agent-task` exists in your current working directory, you are in a task worktree. +**You must immediately read `.agent-task` and load `.claude/skills/worktree-aware/SKILL.md` +before taking any action.** That skill defines all branch-hygiene rules for task worktrees. + +Worktree lifecycle commands: `agent.sh new | list | merge | clean`. +Agents never invoke these — only the human does.