Expand description
Rig PromptHook implementations for Claude Code style UI
Shows tool calls in a collapsible format:
● tool_name(args...)header with full command visible- Preview of output (first few lines)
... +N linesfor long outputs└ Running...while executing- Agent thinking shown between tool calls
Re-exports§
pub use crate::agent::ui::Spinner;
Structs§
- Accumulated
Usage - Accumulated usage from API responses
- Display
State - Shared state for the display
- Tool
Call State - Tool call state with full output for expansion
- Tool
Display Hook - A hook that shows Claude Code style tool execution
Enums§
- Tool
Event - Events for backward compatibility
Functions§
- spawn_
tool_ display_ handler - Legacy spawn function - now a no-op since display is handled in hooks