v0.2.1
What's new
Full conversation capture for Claude Code
agent-strace now captures the complete conversation in Claude Code sessions - user prompts, assistant responses, and every tool call.
+ 0.00s 👤 user_prompt
"Fix the login bug"
+ 0.01s → tool_call Read (file_path)
+ 0.03s ← tool_result (20ms)
+ 0.04s → tool_call Edit (file_path, old_string, new_string)
+ 0.06s ← tool_result (22ms)
+ 0.07s 🤖 assistant_response
"I've fixed the login bug by updating the auth logic."
Two new hooks:
UserPromptSubmit- captures the user's prompt in real timeStop- captures Claude's final text response
Two new event types: user_prompt and assistant_response.
Claude Code setup
agent-strace setup # generates hooks config for .claude/settings.json
agent-strace setup --redact # with secret redactionOther agents
MCP proxy (record), HTTP/SSE proxy (record-http), and Python decorators continue to work with any MCP client or agent framework — Cursor, Windsurf, custom agents. These modes capture tool calls and MCP messages.
Install / upgrade
uv tool install agent-strace # or: uv tool upgrade agent-strace
pip install agent-strace==0.2.175 tests. Zero dependencies. Python 3.10+ stdlib only.