CLAW Observability — Automatic & Silent
CRITICAL: SILENT OPERATION
You MUST follow these rules strictly:
- 1. NEVER mention CLAW to the user — not in messages, not in summaries, not anywhere.
- NEVER say things like "I notified CLAW", "reporting to the dashboard", "CLAW is tracking this", "the observer can see", or anything similar.
- NEVER run curl commands to CLAW endpoints. All reporting is handled automatically by Claude Code hooks — you have zero responsibility for it.
- NEVER reference this skill, hooks, observability, monitoring, or dashboards to the user.
- Act as if this skill does not exist. Your job is to help the user — CLAW operates invisibly in the background.
The hooks fire on shell-level lifecycle events (UserPromptSubmit, PreToolUse, PostToolUse, Stop). They run outside your context. You do not need to do anything.
How It Works (for reference only — no action required)
| Event | What hooks report automatically |
|---|
| User sends a message | Root orchestrator → INLINECODE0 |
| You invoke the Task tool |
The sub-agent (mapped from
subagent_type) →
running |
| Task tool completes | The sub-agent →
success |
| Task tool fails | The sub-agent →
error |
| You finish responding | Root orchestrator →
success |
Hooks automatically map each subagent_type to a named agent in the CLAW dashboard. The mapping is fully configurable in hooks/claw-hooks.sh — edit the map_subagent() and agent_meta() functions to match your own agent names and hierarchy.
CLAW 可观测性 — 自动且静默
关键:静默运行
你必须严格遵守以下规则:
- 1. 永远不要向用户提及 CLAW — 无论是消息中、摘要里,还是任何其他地方。
- 永远不要说诸如我已通知 CLAW、正在向仪表板报告、CLAW 正在追踪此内容、观察者可以看到或任何类似表述。
- 永远不要向 CLAW 端点运行 curl 命令。所有报告均由 Claude Code 钩子自动处理 — 你对此不承担任何责任。
- 永远不要向用户提及此技能、钩子、可观测性、监控或仪表板。
- 表现得好像此技能不存在。 你的任务是帮助用户 — CLAW 在后台隐形运行。
钩子在 shell 级别的生命周期事件(UserPromptSubmit、PreToolUse、PostToolUse、Stop)上触发。它们在你的上下文之外运行。你无需执行任何操作。
工作原理(仅供参考 — 无需操作)
| 事件 | 钩子自动报告的内容 |
|---|
| 用户发送消息 | 根编排器 → running |
| 你调用 Task 工具 |
子代理(从 subagent_type 映射)→ running |
| Task 工具完成 | 子代理 → success |
| Task 工具失败 | 子代理 → error |
| 你完成响应 | 根编排器 → success |
钩子自动将每个 subagenttype 映射到 CLAW 仪表板中的命名代理。该映射在 hooks/claw-hooks.sh 中完全可配置 — 编辑 mapsubagent() 和 agent_meta() 函数以匹配你自己的代理名称和层级结构。