Shepherd CLIΒΆ

Debug your AI agents like you debug your code

Get Started β†’


What is Shepherd?ΒΆ

Shepherd is a command-line tool for inspecting and debugging AI agent sessions. Think of it as gdb for AI agents.

πŸ“‹ Session Tracking

List, filter, and inspect all your agent sessions from the terminal.

🌳 Trace Trees

Visualize execution flows with hierarchical trace trees.

πŸ“„ JSON Export

Export traces for analysis or integration with other tools.

πŸ”Œ Multi-Provider

Works with multiple observability platforms: AIOBS and Langfuse.

πŸ’» Interactive Shell

A REPL for exploring sessions with tab completion and history.


Quick PreviewΒΆ

$ pip install shepherd-cli
$ shepherd config init
$ shepherd sessions list

                              Sessions                              
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━┓
┃ ID          ┃ Name         ┃ Started      ┃ Duration ┃ Events ┃
┑━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━┩
β”‚ be393d0d... β”‚ pipeline-ex… β”‚ 2025-12-03   β”‚     9.6s β”‚      4 β”‚
β”‚ 6dfe36bb... β”‚ pipeline-ex… β”‚ 2025-12-03   β”‚     9.8s β”‚      4 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Coming SoonΒΆ

πŸ€– Shepherd Agent

AI-powered debugging with natural language queries and GDB-like features.

πŸ”„ Deterministic Replay

Replay agent runs with exact inputs and random seeds.

πŸ”΄ Breakpoints

Set breakpoints on tool calls, LLM invocations, or conditions.

🧠 Trace Agent

AI that analyzes your execution traces.