Bug Fix: Dev Mode Hooks Data Capture
Fixed the dev mode capture hooks to correctly read data from Claude Code.
The Problem
The hooks were trying to read from environment variables (TOOL_NAME, USER_PROMPT, etc.), but Claude Code passes hook data via stdin as JSON.
The Fix
Updated both hooks to read and parse JSON from stdin:
- capture-tool-use.ts: Now correctly captures
session_id,tool_name,tool_input,tool_response - capture-user-prompt.ts: Now correctly captures
session_id,prompt,cwd
Verification
Logs now show actual data instead of "unknown":
{
"timestamp": "2026-01-21T19:35:09.519Z",
"sessionId": "test-session-456",
"tool": "Read",
"input": { "file_path": "/test/file.ts" },
"output": { "content": "test content" }
}Full Changelog: v0.6.1...v0.6.2