β οΈ Early Development: This project is actively under development (~40-45% complete). Core infrastructure is in place, but not all features described below are fully implemented yet. See Current Implementation Status for details.
A comprehensive AI coding agent observability platform that provides complete visibility into AI-assisted development. Built as a monorepo with MCP (Model Context Protocol) integration, devlog helps developers and teams monitor, analyze, and optimize their AI coding workflows by tracking agent activities, measuring code quality, and delivering actionable insights.
Modern software development increasingly relies on AI coding agents, but teams face critical challenges:
- Lack of visibility into what AI agents are doing and why
- Quality concerns about AI-generated code
- Debugging difficulties when AI agents fail or produce incorrect results
- Performance blind spots in agent efficiency and cost
- Compliance gaps for audit trails and governance
Devlog provides the solution: A complete observability platform that captures, analyzes, and visualizes AI agent behavior, enabling teams to understand, optimize, and trust their AI-assisted development workflows.
Overall Progress: ~40-45% complete (as of November 2025)
| Component | Status | Completion | Notes |
|---|---|---|---|
| Backend Services | π§ Mostly Complete | 85% | AgentEventService, AgentSessionService implemented |
| Database Schema | β Complete | 100% | PostgreSQL + TimescaleDB schema ready |
| Frontend UI | β Complete | 100% | 16 React components, dashboard, sessions view |
| Go Collector | π§ In Progress | 65% | Core infrastructure done, test stabilization needed |
| API Endpoints | β Not Started | 0% | Critical blocker for integration |
| Historical Backfill | β Not Started | 0% | High priority for importing existing logs |
| MCP Integration | βΈοΈ Deferred | 0% | Low priority |
| Analytics Engine | βΈοΈ Planned | 0% | Phase 3 feature |
| Enterprise Features | βΈοΈ Planned | 0% | Phase 4 feature |
- β Database schema and migrations
- β Core TypeScript services for event and session management
- β React-based web UI for viewing sessions
- β Go collector binary builds successfully (~15MB)
- β GitHub Copilot log monitoring adapter
- API Endpoints - Create REST endpoints to connect frontend to backend
- Historical Backfill - Import existing AI agent logs
- Integration Testing - Validate end-to-end data flow
- Test Stabilization - Fix failing tests in Go collector
- Additional agent adapters (Claude, Cursor)
- NPM package distribution
- MCP protocol integration
- Advanced analytics and intelligence features
- Enterprise collaboration features
π Detailed Status: See specs/20251021/001-ai-agent-observability/README.md for complete implementation tracking.
Note: The capabilities listed below represent the full vision. See Implementation Status above for what's currently available.
- Real-time tracking of all AI agent actions (file operations, LLM calls, commands)
- Session management for complete workflow visibility
- Visual timelines showing agent behavior over time
- Live dashboards for monitoring active agent sessions
- Agent performance metrics (speed, efficiency, token usage)
- Code quality assessment for AI-generated code
- Comparative analysis across different AI agents and models
- Cost optimization insights and recommendations
- Pattern recognition to identify success and failure modes
- Quality scoring for AI-generated code
- Smart recommendations for prompt optimization and workflow improvements
- Automated reporting on agent performance and outcomes
- Complete audit trails for all AI-assisted code changes
- Team collaboration features for sharing learnings
- Policy enforcement for AI agent usage
- Integration ecosystem with GitHub, Jira, Slack, and more
π Learn More: Read about AI Memory Challenges in Development and our AI Agent Observability Design.
Devlog is designed to support observability for all major AI coding assistants:
Currently Supported:
- β GitHub Copilot - Log adapter implemented and tested
Planned Support (adapters not yet implemented):
- βΈοΈ Claude Code (Anthropic)
- βΈοΈ Cursor AI
- βΈοΈ Gemini CLI (Google)
- βΈοΈ Cline (formerly Claude Dev)
- βΈοΈ Aider
- βΈοΈ Any MCP-compatible AI coding assistant (MCP integration deferred)
Note: The collector architecture supports adding new adapters. Additional agent support is deferred until core integration is complete.
This monorepo contains packages for comprehensive AI agent observability. Status indicators: β Implemented | π§ Partial | βΈοΈ Planned
Core services and data models:
- β TypeScript types: Complete type definitions for events, sessions, and analytics
- β Event collection: AgentEventService with context enrichment (~600 LOC)
- β Session management: AgentSessionService for workflow tracking (~600 LOC)
- β Storage backends: PostgreSQL with TimescaleDB schema ready
- βΈοΈ Analytics engine: Planned for Phase 3
- βΈοΈ Integration services: Planned for Phase 4
Go-based lightweight collector binary (~15MB):
- β CLI interface: Start/status/version commands with Cobra
- β File watcher: Real-time log monitoring with fsnotify
- β SQLite buffer: Offline support for event storage
- β Copilot adapter: GitHub Copilot log parsing (78.6% test coverage)
- β HTTP client: Event transmission with retry logic
- π§ Integration: End-to-end testing and validation in progress
- βΈοΈ Additional adapters: Claude, Cursor (deferred)
MCP (Model Context Protocol) server for AI agent integration:
- βΈοΈ MCP tools for event logging and querying (planned)
- βΈοΈ Real-time event streaming (planned)
- βΈοΈ Session tracking with automatic context capture (planned)
AI-powered analysis and insights:
- βΈοΈ Pattern recognition
- βΈοΈ Quality analysis
- βΈοΈ Recommendation engine
- βΈοΈ Predictive analytics
Next.js web interface (16 React components built):
- β Dashboard: Active sessions view
- β Sessions page: Browse and filter sessions
- β Session details: Event timeline and hierarchy
- β UI components: Complete component library
- β API integration: Not connected to backend yet (critical blocker)
- Real-time monitoring: See what AI agents are doing as they work
- Event capture: Log every file read/write, LLM request, command execution, and error
- Session tracking: Group related activities into complete workflows
- Timeline visualization: Visual replay of agent behavior with interactive controls
- Agent comparison: Side-by-side performance of different AI assistants
- Quality metrics: Assess correctness, maintainability, and security of AI-generated code
- Cost analysis: Track token usage and optimize for efficiency
- Trend analysis: Monitor improvements and regressions over time
- Pattern detection: Automatically identify what leads to success or failure
- Smart recommendations: Get suggestions for better prompts and workflows
- Anomaly detection: Flag unusual behavior and potential issues
- Predictive analytics: Forecast session outcomes and quality scores
- Shared learnings: Browse and learn from team members' successful sessions
- Prompt library: Curated collection of effective prompts
- Best practices: Automatically extracted from successful patterns
- Team analytics: Understand team-wide AI usage and effectiveness
- Complete audit trails: Every AI action logged with full context
- Policy enforcement: Rules for AI agent behavior and usage
- Access control: Fine-grained permissions for data access
- Compliance: SOC2, ISO 27001, GDPR support with data retention policies
- Version control: GitHub, GitLab, Bitbucket integration
- Issue tracking: Jira, Linear, GitHub Issues sync
- CI/CD: GitHub Actions, Jenkins, CircleCI hooks
- Communication: Slack, Teams, Discord notifications
- API access: REST and GraphQL APIs for custom integrations
β οΈ Development Status: The project is currently under active development. The web UI and Go collector build successfully, but API integration is not yet complete. Full end-to-end functionality is coming soon.
- Node.js 20+
- pnpm 10.15.0+
- PostgreSQL 14+ (for backend services)
- Go 1.23+ (for collector development)
# Clone the repository
git clone https://github.com/codervisor/devlog.git
cd devlog
# Install dependencies
pnpm install
# Generate Prisma client
npx prisma generate
# Build all packages (Note: Go collector build may take a few minutes)
pnpm build# Start the web development server
pnpm dev:web
# Access at http://localhost:3000Note: The UI is fully built but currently uses mock data. API endpoints are not yet implemented.
# Build the collector binary
cd packages/collector
make build
# Binary available at: bin/devlog-collector
# Test the CLI
./bin/devlog-collector --helpNote: The collector builds successfully and can monitor GitHub Copilot logs, but backend integration is pending.
MCP server integration is deferred to a future phase. Focus is currently on:
- Creating API endpoints to connect frontend to backend
- Implementing historical backfill for existing logs
- Stabilizing end-to-end integration
- API Endpoints - REST endpoints for
/api/sessionsand/api/events - Historical Backfill - Import existing AI agent logs
- Full Integration - Connect web UI β API β database β collector
- End-to-End Testing - Validate complete data flow
Note: Full configuration documentation will be updated once API integration is complete.
Devlog is designed to support multiple storage backends (SQLite, PostgreSQL, MySQL) and enterprise integrations (Jira, GitHub, Azure DevOps).
# Copy example configuration
cp .env.example .env
# Edit .env with your settingsπ Configuration Guide: See docs/guides/INTEGRATIONS.md for complete setup instructions including database configuration and enterprise platform integration.
β οΈ Status: MCP integration is deferred to a future phase. Current focus is on Go collector and API development.
Devlog is designed to provide seamless integration with AI coding agents through multiple channels:
MCP integration will provide:
- Standardized tools for event logging and session tracking
- Real-time streaming of agent activities
- Automatic context capture (project, files, git state)
- Compatibility with Claude, Copilot, and other MCP clients
Status: Deferred - not a current priority
The Go collector provides:
- β Log monitoring for agents that write logs (GitHub Copilot implemented)
- β File watcher with real-time log processing
- β Plugin architecture for custom agent integrations
- β Flexible event mapping to standardized schema
- π§ HTTP transmission to backend (integration pending)
Status: Core infrastructure complete, backend integration in progress
Once MCP integration is available:
// Start tracking an agent session
mcp_agent_start_session({
agentId: 'github-copilot',
objective: 'Implement user authentication',
});
// Log agent events
mcp_agent_log_event({
type: 'file_write',
filePath: 'src/auth/login.ts',
metrics: { tokenCount: 1200 },
});
// Get analytics and recommendations
mcp_agent_get_analytics({
agentId: 'github-copilot',
timeRange: { start: '2025-01-01', end: '2025-01-31' },
});π Documentation: MCP integration guides will be available once the feature is implemented.
- Implementation Status - Current progress tracking
- AI Agent Observability Design - Complete feature design
- Quick Reference - Fast overview of capabilities
- Implementation Checklist - Development roadmap
- AI Memory Challenge - Why observability matters
Note: Full documentation will be available once API integration is complete.
- Quick Setup Guide - Getting started
- Agent Integration (coming soon) - Connect your AI agents
- Dashboard Guide (coming soon) - Using the web interface
- API Reference (coming soon) - REST and GraphQL APIs
- Contributing Guide - How to contribute
- Development Guide - Development workflow
See the docs/ directory for all documentation including design documents, guides, and technical specifications.
The @codervisor/devlog-core package can be used directly in your applications:
import { WorkspaceDevlogManager } from '@codervisor/devlog-core';
const devlog = new WorkspaceDevlogManager({
fallbackToEnvConfig: true,
createWorkspaceConfigIfMissing: true,
});
await devlog.initialize();
// Create and manage development logs programmatically
const entry = await devlog.createDevlog({
title: 'Implement user authentication',
type: 'feature',
description: 'Add JWT-based authentication system',
});π API Documentation: See docs/guides/EXAMPLES.md for complete API documentation and usage examples.
Apache 2.0 License - see LICENSE file for details.
We welcome contributions! Please see our Contributing Guide for details on how to get started.
- Documentation: docs/ directory
- Issues: GitHub Issues
- Discussions: GitHub Discussions