Wire advisory o2r cross-node PreToolUse hook via ansible (claude-hooks role) #223
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#223
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wire an advisory PreToolUse hook into the Claude Code harness, via ansible, that nudges the agent toward o2r (otel-a2a-relay) for agent-to-agent command delivery whenever a Bash command targets another fleet node.
Mechanism: a skill alone can't fire deterministically (the Skill tool is model-invoked). A
PreToolUsehook is harness-executed, so it catches cross-node delivery at the action boundary. Advisory, not blocking - direct ops and human-operator handovers still proceed.Build:
ansible/library/claude_settings_hook.py- idempotent module to merge/remove one hook in~/.claude/settings.json(ansible-native replacement for thescripts/install-*.pymergers)ansible/roles/claude-hooks/- renders theo2r-nudge.shdetector (fleet host list baked from defaults) and wires it as a PreToolUse Bash hookplaybooks/freshen.yml(tagclaude-hooks)kai-command-handoverskill description (separate agentic-os-kai commit)Apply:
coily ansible-freshen action=apply tags=claude-hooks.Design context: dropped the
coily sshdetection branch since coily's ssh passthrough was removed (agentic-os-kai AGENTS).