Clawbox chat stream
Skill CommonstackAI/ClawBox/.agents/skills/clawbox-chat-stream
Use when changing or debugging ClawBox chat sending, SSE streaming, reasoning blocks, tool-call blocks, session synchronization, or title generation across the React frontend and the Bun OpenClaw bridge.From its SKILL.md
npx -y skills add CommonstackAI/ClawBox --skill clawbox-chat-streamAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 3 commands, including `npm run build:frontend` and 2 more.
SKILL.md
1.5 KB, 310 tokens by cl100k_base, as published. Nobody here has run it
ClawBox Chat Stream
Use this skill when the task involves ClawBox chat flow, assistant streaming, tool event rendering, session history hydration, or title generation.
Read first
src/hooks/useChat.tssrc/services/ai.tssrc/store/chat.tssrc/components/chat/internal/routes/chat.tsinternal/providers/openclaw-rpc.tssrc/services/api.ts
Workflow
- Map the end-to-end path: UI event -> frontend store/hook -> SSE parser -> backend route -> OpenClaw RPC event.
- If request or response payloads change, update every consumer in the same task instead of leaving cross-layer drift.
- For tool-call regressions, verify both streamed events and history rehydration. ClawBox uses live events plus follow-up history reconciliation.
- For title or unread-count issues, inspect the
finallypath insrc/hooks/useChat.tsand the corresponding Zustand store updates.
Verification
- Run
npm run build:frontend. - Run
npm run build:backend. - If the local gateway is available, use
bun test/openclaw-stream.ts --prompt "..."as a manual smoke test.
Guardrails
- Never guess OpenClaw protocol fields or event names.
- Preserve the SSE event types expected by
src/services/ai.ts. - Keep message block ordering consistent with the
text,reasoning, andtool_callmodel.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.