Skip to content

Align instructions with Claude Code agent teams API#21

Merged
harrymunro merged 1 commit intomainfrom
feature/agent-teams-alignment
Mar 1, 2026
Merged

Align instructions with Claude Code agent teams API#21
harrymunro merged 1 commit intomainfrom
feature/agent-teams-alignment

Conversation

@harrymunro
Copy link
Owner

Summary

  • New file: tool-mapping.md — Reference table mapping Nelson operations (form squadron, spawn captain, message, broadcast, shutdown, etc.) to exact Claude Code tool calls (Agent, TeamCreate, TaskCreate, SendMessage, etc.) with mode annotations
  • Fix all Task() references — Replaced Task() and "Task tool" with correct Agent tool calls in crew-briefing.md and SKILL.md, making the two-step spawn-then-assign pattern explicit for agent-team mode
  • Quarterdeck rhythm improvements — Added TaskList, SendMessage, and tool-mapping.md references to Step 4; replaced wall-clock cadence ("every 15-30 minutes") with event-driven checkpoints ("every 2-3 task completions, on blocker, or on idle")
  • Plan mode for Station 2+ — Added guidance to spawn Station 2/3 captains with mode: "plan" and approve via SendMessage(type="plan_approval_response")
  • Read-only agent damage reports — Documented that Explore subagent types (NO, COX, Recce Marines) report hull integrity via SendMessage to their captain
  • Worktree isolation — Added section to squadron-composition.md documenting isolation: "worktree" as an alternative to file-ownership boundaries
  • Plugin settings — New settings.json ships CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 so plugin installs enable agent teams automatically
  • Expanded agents/nelson.md — Added skills frontmatter field binding the nelson skill
  • Hook documentation — Added TeammateIdle and TaskCompleted hook examples as opt-in advanced configuration
  • Updated file trees in README and CLAUDE.md

Implements all 11 items from docs/prd-agent-teams-alignment.md.

Test plan

  • Install plugin locally and invoke /nelson — verify SKILL.md loads without errors
  • Run a subagents-mode mission — verify crew briefing template renders with Agent tool references
  • Run an agent-team-mode mission — verify TeamCreate, TaskCreate, TaskUpdate, SendMessage are used correctly
  • Verify settings.json is picked up by plugin install (agent teams enabled without manual config)
  • Spot-check that no Task() or "Task tool" references remain in any skill file

Replace all Task()/Task tool references with correct Claude Code tool
names (Agent, TaskCreate, TaskUpdate, SendMessage, TeamCreate, etc.).

- Add tool-mapping reference table (new file)
- Fix Task() references in crew briefing template and SKILL.md
- Add tool references to quarterdeck rhythm section
- Replace wall-clock cadence with event-driven checkpoints
- Add plan mode guidance for Station 2+ quality gates
- Document read-only agent damage report variant
- Add worktree isolation option to squadron composition
- Ship plugin settings.json with agent teams enabled
- Expand agents/nelson.md with proper YAML frontmatter
- Document TeammateIdle and TaskCompleted hooks
- Update file trees in README and CLAUDE.md
@harrymunro harrymunro merged commit e8fc53c into main Mar 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant