Module hooks

Module hooks 

Source
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 lines for long outputs
  • └ Running... while executing
  • Agent thinking shown between tool calls

Re-exports§

pub use crate::agent::ui::Spinner;

Structs§

DisplayState
Shared state for the display
ToolCallState
Tool call state with full output for expansion
ToolDisplayHook
A hook that shows Claude Code style tool execution

Enums§

ToolEvent
Events for backward compatibility

Functions§

spawn_tool_display_handler
Legacy spawn function - now a no-op since display is handled in hooks