Skip to content

Commit b00fcdd

Browse files
committed
docs(tool-guides): correct teams/agents details and de-duplicate hooks events
1 parent 3fa8f49 commit b00fcdd

3 files changed

Lines changed: 18 additions & 26 deletions

File tree

docs/05-tool-guides/agent-teams.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,16 @@ This makes "agents talking to each other" explicit and structured instead of ad
2121

2222
## Claude Code Agent Teams
2323

24-
Claude Code supports team definitions in:
24+
Agent teams are an experimental Claude Code feature. Enable them by setting `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` in the environment where Claude Code runs.
2525

26-
- `.claude/agents/team/**/*.md`
26+
Use natural-language delegation in chat to involve teammates for specialized work.
2727

28-
The tooling includes:
28+
Important clarification:
2929

30-
- `/agents` to manage agents
31-
- `/agents-team` to create and manage agent teams
30+
- there is no separate `.claude/agents/team/` team-manifest path
31+
- there is no `/agents-team` command
3232

33-
Team packs can define:
34-
35-
- a main architecture/orchestrator agent
36-
- specialist teammate agents
37-
- collaboration patterns between teammates
33+
Use settings and prompts to shape collaboration behavior, and pair teams with custom agents when you need reusable specialist roles.
3834

3935
## Team Design Pattern
4036

docs/05-tool-guides/hooks.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,21 @@ Use hooks for:
2929

3030
Claude Code has first-class lifecycle hooks. In practice, this is the most complete built-in hook system across current coding-agent tools.
3131

32-
### Supported lifecycle events
32+
### Lifecycle Coverage (High Level)
3333

34-
- `PreToolUse` — before tool execution
35-
- `PostToolUse` — after tool execution
36-
- `Notification` — when Claude emits notifications
37-
- `UserPromptSubmit` — when the user submits a prompt
38-
- `Stop` — when Claude finishes responding
39-
- `SubagentStop` — when a subagent finishes
40-
- `PreCompact` — before context compaction
34+
Claude hooks can run at key lifecycle points, including:
4135

42-
### Hook handler types
36+
- session boundaries
37+
- prompt submission
38+
- before/after tool calls
39+
- permission and failure handling
40+
- sub-agent or teammate lifecycle events
4341

44-
Claude supports multiple hook handler types:
42+
For the exact and current event names, use the official hooks reference in the References section below.
4543

46-
- **Command hooks** — run shell commands/scripts
47-
- **Prompt hooks** — inject natural-language guidance at hook time
48-
- **Agent hooks** — invoke a subagent to evaluate or gate behavior
44+
### Hook handler types
4945

50-
This makes hooks useful for both deterministic checks (scripts) and policy judgment flows (prompt/agent).
46+
Claude hooks run command handlers (shell commands/scripts). Handlers can emit stderr/stdout and structured JSON to control blocking and messaging behavior.
5147

5248
### Configuration locations
5349

docs/05-tool-guides/sub-agents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Helpful capabilities:
3636

3737
OpenCode also supports custom agents, with common locations:
3838

39-
- project: `.opencode/agent/*.md`
40-
- global: `~/.config/opencode/agent/*.md`
39+
- project: `.opencode/agents/`
40+
- global: `~/.config/opencode/agents/`
4141

4242
This gives a similar delegation model: keep the main chat as coordinator, dispatch substantial tasks to specialized agents, then merge results.
4343

0 commit comments

Comments
 (0)