一键导入
add-agenttrace
Add live agent activity traces (tools, tasks, reasoning summaries, silence keepalives) via nanoclaw-agenttrace and nanoclaw-hosthooks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add live agent activity traces (tools, tasks, reasoning summaries, silence keepalives) via nanoclaw-agenttrace and nanoclaw-hosthooks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-agenttrace |
| description | Add live agent activity traces (tools, tasks, reasoning summaries, silence keepalives) via nanoclaw-agenttrace and nanoclaw-hosthooks. |
Surfaces what the agent is doing during long turns — tools, task progress, optional reasoning summaries, and silence keepalives — without polluting chat history on rich channels.
Addresses nanocoai/nanoclaw#1440. Does not implement deep-session mode (#1686).
See also: QUICKSTART.md in the npm package.
pnpmnanoclaw-hosthooks API v1 installed in the host and runnerClaude SDK → agenttrace observe (container)
↓
messages_out system action
↓
host delivery action → channel (timeline | edit status | typing)
/add-webchat # optional — richest timeline UI
/add-agenttrace # this skill
Skip to Enable if all of these are already in place:
src/agenttrace-boot.ts existscontainer/agent-runner/src/agenttrace/observe.ts existssrc/index.ts contains await startAgentTrace()src/hosthooks.ts and container/agent-runner/src/hosthooks.ts expose API v1nanoclaw-agenttrace is listed in package.jsonOtherwise continue. Every step is safe to re-run.
pnpm exec nanoclaw-agenttrace sync-skill
pnpm add nanoclaw-agenttrace@0.1.0
Local peer monorepo:
pnpm add file:../nanoclaw-agenttrace
pnpm exec nanoclaw-agenttrace install
This will:
src/agenttrace-*.tscontainer/agent-runner/src/agenttrace/startAgentTrace() boot block and runner registration import.env keys (AGENTTRACE_ENABLED=false by default).claude/skills/add-agenttrace/The installer fails clearly when hosthooks API v1 or its call sites are
missing. Install nanoclaw-hosthooks first and rebuild the container.
In .env:
AGENTTRACE_ENABLED=true
AGENTTRACE_DEFAULT_VISIBILITY=trace
AGENTTRACE_SILENCE_KEEPALIVE=true
pnpm run build
./container/build.sh
pnpm exec nanoclaw-agenttrace verify
# restart host
Run host wiring test when present:
pnpm exec vitest run src/agenttrace-wiring.test.ts src/agenttrace-config.test.ts src/agenttrace-dispatch.test.ts
If nanoclaw-webchat is installed, upgrade it to ≥ 0.3.1 (implements publishActivity + activity WebSocket events) for the collapsible timeline:
pnpm webchat:local # or: pnpm add nanoclaw-webchat@0.3.1 && pnpm exec nanoclaw-webchat install
Typing continues to work as a floor signal even without the timeline.
See REMOVE.md.
| Value | Shows |
|---|---|
off | Nothing |
status | Tools / tasks / keepalives (no reasoning or partial text) |
trace (default) | Status + partial text + Anthropic summarized reasoning |
trace_reasoning | Alias of trace (compat; no raw CoT mode — API does not expose raw CoT) |
trace_full | Everything in trace plus secret-scanned tool inputs/results and subagent transcripts |
trace_full payloads are secret-scanned (@sanity-labs/secret-scan, pattern-based) — credential-shaped strings are stripped, but PII, internal URLs, file paths, and proprietary content pass through truncated. Enable only where that content is acceptable on the timeline.
Host default: AGENTTRACE_DEFAULT_VISIBILITY. Per-group override (container env / config blob): activity_visibility or AGENTTRACE_VISIBILITY at spawn — no trunk CRUD change required if you set it in the group's container config JSON.
Bounded per session: max 200 events/turn (500 under trace_full), ~4 KiB/event summary, prune oldest activity rows beyond 50 turns. Activity never replaces the final chat reply.