AI-Powered Debugging and Analysis for Pydantic Logfire
Built by Vstorm β AI tooling for modern development teams
Quick Start β’ Features β’ Screenshots β’ How It Works
π Natural Language Queries Β β’Β ποΈ Auto SQL Generation Β β’Β π Smart Visualizations Β β’Β β‘ Real-time Streaming
Logfire AI Assistant by Vstorm is an AI-powered tool that helps you debug, analyze, and understand your applications using Pydantic Logfire. Ask questions in plain English, get instant answers with SQL queries and visualizations. Developed by Vstorm as part of our open-source AI developer tools ecosystem.
Ask questions in natural language, get SQL queries and visualizations
Debugging AI agents and complex applications is hard:
- Long traces β Agents generate many spans across multiple tool calls and LLM requests
- Complex prompts β System prompts can be lengthy, making it hard to spot issues
- Multi-turn conversations β Understanding what happened requires looking across entire interaction histories
Vstorm's Logfire AI Assistant acts as your AI debugging partner β it understands agent architectures, recognizes failure patterns, and helps you ship better software faster.
Chrome extension sidebar integrated with Logfire dashboard
| Query Results | SQL Generation |
|---|---|
![]() |
![]() |
| AI responses with data tables | View generated SQL queries |
| Chart Visualization | Span Analysis |
|---|---|
![]() |
![]() |
| Auto-generated charts from query results | Select spans directly in Logfire UI |
| Multi-Project Support | Custom Prompts |
|---|---|
![]() |
![]() |
| Switch between Logfire projects | Create reusable prompt templates |
| LLM Model Selection | Customization |
|---|---|
![]() |
![]() |
| Choose from multiple AI models | Customize appearance and behavior |
| Slash Commands | Conversation History |
|---|---|
![]() |
![]() |
| Quick access to saved prompts | Browse and continue past conversations |
| File Attachments | |
|---|---|
![]() |
|
| Attach files for context |
| Feature | Description |
|---|---|
| π Natural Language Queries | Ask about your app's behavior in plain English |
| ποΈ SQL Query Generation | AI translates questions into SQL against Logfire data |
| π Auto Visualizations | Automatically generate charts from query results |
| π― Span Context | Select spans in Logfire and ask "what happened here?" |
| π Multi-Project Support | Switch between different Logfire projects seamlessly |
| π Custom Prompts | Define reusable prompts for common analysis tasks |
| β‘ Real-time Streaming | Responses stream via WebSocket as they're generated |
| π JWT Authentication | Secure access with token-based auth |
# Install & configure
make install
cp backend/.env.example backend/.env
# Edit backend/.env with your settings
# Start database & run migrations
make db-init && make db-upgrade
# Run server
make run devcd browser-extension
bun install && bun run buildThen load in Chrome:
- Go to
chrome://extensions/ - Enable Developer mode
- Click Load unpacked β select
browser-extension/dist
That's it! Open Logfire dashboard, click on any span, and start asking questions.
You: "Why did this request take so long?"
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Chrome Extension β
β β’ Captures span context (trace_id, span_id) β
β β’ Sends question via WebSocket β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Agent (PydanticAI) β
β β’ Analyzes question + context β
β β’ Generates SQL query β
β β’ Executes against Logfire API β
β β’ Creates visualization if needed β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
Answer: "The database query on line 42 took 3.2s due to
missing index on user_id column. Here's the
breakdown chart..."
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Chrome Extension β
β βββββββββββββββββββ ββββββββββββββββββββββββββββββββββββ β
β β Content Script β β Sidebar Panel β β
β β (Logfire page) β β β’ Chat interface β β
β β β’ Span selector β β β’ Project switcher β β
β β β’ Context grab β β β’ Settings & prompts β β
β ββββββββββ¬βββββββββ ββββββββββββββββ¬ββββββββββββββββββββ β
βββββββββββββΌβββββββββββββββββββββββββββΌβββββββββββββββββββββββ
β β
β WebSocket β
ββββββββββββ¬ββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Backend (FastAPI) β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββ β
β β API Routes β β Services β β AI Agent β β
β β /api/v1/* ββββ ββββ (PydanticAI) β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββ¬ββββββββββ β
β β β
β ββββββββββββββββββ ββββββββββββββββ ββββββββΌββββββββββββ β
β β PostgreSQL β β Redis β β Logfire API β β
β β (users, β β (cache, β β (query data) β β
β β conversations)β β rate limit) β ββββββββββββββββββββ β
β ββββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
make run dev # Development server
make test # Run tests
make test-cov # Tests with coverage
make lint # Check linting
make format # Auto-fix formatting
make db-migrate # Create new migration
make docker-up # Start all services (Docker)cd browser-extension
bun run dev # Watch mode
bun run build # Production build
bun run check # Lint + format (Biome)βββ backend/
β βββ app/
β βββ agents/ # AI agent (PydanticAI)
β βββ api/routes/v1/ # HTTP endpoints
β βββ services/ # Business logic
β βββ repositories/ # Data access
β βββ schemas/ # Pydantic models
β βββ db/models/ # SQLAlchemy models
βββ browser-extension/
β βββ src/
β βββ background/ # Service worker
β βββ content/ # Content script
β βββ sidebar/ # Side panel UI
β βββ stores/ # Zustand stores
βββ docker-compose.yml
Copy backend/.env.example to backend/.env:
ENVIRONMENT=local
SECRET_KEY=your-secret-key # openssl rand -hex 32
POSTGRES_HOST=localhost
POSTGRES_PASSWORD=postgres
REDIS_HOST=localhost
LOGFIRE_TOKEN=your-token # Optional, for backend observability- Pydantic Logfire β Observability platform from the Pydantic team
- Pydantic AI β The agent framework powering this assistant
- Inspired by Polly by LangChain β AI Agent Engineer for LangSmith
See LICENSE for details.
Made with β€οΈ by Vstorm










