Skip to content

Commit 98d82bc

Browse files
ruvnetclaude
andcommitted
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: main - Timestamp: 2026-02-07T22:36:58Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent de34f32 commit 98d82bc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

v3/@claude-flow/cli/src/init/settings-generator.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,33 @@ function generateHooksConfig(config: HooksConfig): object {
319319
// Note: PermissionRequest is NOT a valid Claude Code hook type
320320
// Auto-allow behavior is configured via settings.permissions.allow instead
321321

322+
// Agent Teams hooks - TeammateIdle for task assignment, TaskCompleted for coordination
323+
hooks.TeammateIdle = [
324+
{
325+
hooks: [
326+
{
327+
type: 'command',
328+
command: 'npx @claude-flow/cli@latest hooks teammate-idle --auto-assign true 2>/dev/null || true',
329+
timeout: 5000,
330+
continueOnError: true,
331+
},
332+
],
333+
},
334+
];
335+
336+
hooks.TaskCompleted = [
337+
{
338+
hooks: [
339+
{
340+
type: 'command',
341+
command: '[ -n "$TASK_ID" ] && npx @claude-flow/cli@latest hooks task-completed --task-id "$TASK_ID" --train-patterns true 2>/dev/null || true',
342+
timeout: 5000,
343+
continueOnError: true,
344+
},
345+
],
346+
},
347+
];
348+
322349
return hooks;
323350
}
324351

0 commit comments

Comments
 (0)