From Prompts to Processes: Full-Stack Agent Visibility with AgentSH + Pydantic Logfire
Blog post from Pydantic
Pydantic Logfire and AgentSH offer a unified observability solution for AI systems by providing comprehensive visibility from prompt to process using OpenTelemetry. While Pydantic Logfire tracks model calls, tool invocations, and latency to create a timeline of what the agent "thought," AgentSH audits the actual machine activities, such as file access, network connections, and process executions, making policy decisions visible through structured audit events. This combination allows users to correlate both streams in a single, cohesive timeline, addressing the common challenge of understanding what an AI agent truly did. The systems are designed to work together to mitigate the risks associated with bypassing permission checks, known as "YOLO mode," by improving runtime policy enforcement and audit capabilities, making it possible to maintain speed without losing oversight. The integration with OpenTelemetry enables seamless data collection and correlation, aiding in incident response and ensuring that denied actions become actionable alerts within existing monitoring frameworks. A demo showcases how these tools can be implemented to provide end-to-end visibility in AI operations, emphasizing the importance of runtime truth and queryable, alertable, and explainable observability.