AgentWatch provides a first-class CLI wrapper for Claude Code, allowing you to observe its reasoning steps, tool calls, and apply safety policies without modifying any code.
Simply prefix your claude command with agentwatch watch:
agentwatch watch "Build me a React component for a weather dashboard"- Subprocess Interception: AgentWatch runs Claude Code as a child process.
- Stream Parsing: It captures the terminal output and parses reasoning traces in real-time.
- Safety Enforcement: If Claude Code attempts a dangerous command (e.g.,
rm -rf /), AgentWatch identifies the intent and can block the execution based on your policy. - Dashboard Integration: Every step is streamed over WebSockets to your local AgentWatch dashboard.
By default, AgentWatch respects the model Claude Code is configured to use. You can override this for auditing purposes:
agentwatch watch "..." --model claude-3-5-sonnet-20241022Use a custom policy defined in your AgentWatch server:
agentwatch watch "..." --policy strict-production- Auditability: See exactly what Claude did while you were away from the terminal.
- Safety: Prevent accidental file deletions or credential leaks.
- Cost Tracking: Monitor the token cost of complex coding tasks.