Skip to content

Yashyr190/debugpilot-ai

Repository files navigation

DebugPilot AI

AI-powered debugging workflow for faster incident triage and root cause analysis.


πŸš€ Live Demo

Production Deployment: https://debugpilot-ai.vercel.app/

GitHub Repository: https://github.com/Yashyr190/debugpilot-ai


πŸ“Œ Overview

DebugPilot AI is a lightweight AI-powered debugging assistant designed for developers working with modern full-stack applications.

Developers often lose significant time manually reading logs, tracing stack errors, and identifying the actual subsystem responsible for failures. DebugPilot AI transforms raw logs, runtime exceptions, deployment failures, and API errors into structured debugging reports with actionable engineering insights.

The goal of the project is not to replace developers, but to accelerate the first triage pass by converting noisy debugging data into a clean workflow-oriented report.


❗ Problem Statement

Debugging production and development issues usually starts with scattered context:

  • Stack traces
  • CI/CD failures
  • Browser console errors
  • Runtime exceptions
  • API response failures
  • Authentication issues
  • Infrastructure logs

Most debugging workflows are repetitive and unstructured. Developers spend time:

  • identifying the subsystem
  • estimating severity
  • finding root causes
  • determining immediate next steps
  • deciding what to check first

This slows engineering velocity and increases debugging fatigue.


βœ… Solution

DebugPilot AI provides a structured debugging workflow that converts raw technical failures into practical engineering reports.

The application analyzes developer input and generates:

  • Error categorization
  • Severity classification
  • Likely subsystem detection
  • Root cause analysis
  • Immediate next debugging step
  • Suggested fixes
  • Debugging checklists
  • Prevention guidance
  • Confidence scoring

Instead of returning long generic AI responses, the app focuses on concise, engineering-oriented outputs that resemble real incident triage workflows.


🧠 Core Features

πŸ” AI-Powered Incident Triage

Transforms stack traces, logs, and deployment failures into structured debugging reports.

⚠️ Severity Detection

Classifies issues into:

  • Low
  • Medium
  • High
  • Critical

πŸ—οΈ Likely Subsystem Identification

Identifies the most relevant engineering layer involved in the issue.

Examples:

  • Frontend API Layer
  • React Rendering Layer
  • Deployment Build Pipeline
  • Backend Validation Layer
  • Database Connection Layer

πŸ› οΈ Root Cause Analysis

Provides concise and actionable debugging explanations.

πŸš€ Immediate Next Step

Suggests the most practical first debugging action.

πŸ“‹ Debugging Checklist

Generates operational debugging steps for developers.

πŸ›‘οΈ Prevention Guidance

Provides engineering practices to reduce recurring failures.

πŸ“Š Confidence Score

Estimates confidence in the generated debugging report.

🎨 Modern Developer-Focused UI

Built with a clean dark interface optimized for developer workflows.


βš™οΈ Workflow

Input Error/Logs
        ↓
Issue Classification
        ↓
Severity Detection
        ↓
Subsystem Identification
        ↓
Root Cause Analysis
        ↓
Fix Suggestions
        ↓
Debugging Checklist
        ↓
Prevention Guidance

πŸ§ͺ Example Supported Issues

DebugPilot AI can analyze:

  • React rendering failures
  • API response errors
  • Authentication token failures
  • Deployment/build pipeline failures
  • Database connection timeouts
  • Runtime exceptions
  • TypeScript build errors
  • Infrastructure-related logs

πŸ–ΌοΈ Screenshots

Landing Interface

Screenshot 2026-05-12 at 6 44 22β€―PM

Structured Debugging Report

Screenshot 2026-05-12 at 6 42 01β€―PM Screenshot 2026-05-12 at 6 43 03β€―PM

Deployment Failure Analysis

Screenshot 2026-05-12 at 6 45 46β€―PM

πŸ› οΈ Tech Stack

Frontend

  • Next.js 14
  • TypeScript
  • Tailwind CSS

UI/UX

  • Glassmorphism-inspired interface
  • Responsive layout
  • Animated report transitions
  • Loading shimmer states

AI Workflow

  • Structured debugging pipeline
  • Heuristic fallback analyzer
  • Confidence scoring system
  • Workflow-oriented response generation

🧱 Architecture

The application uses a lightweight Next.js API route as the analysis boundary.

If an AI API key is configured, the system can generate structured debugging responses using an LLM. If no key is configured, the app falls back to a local heuristic analyzer to ensure the application remains fully functional during demos and local development.

This approach keeps the application:

  • lightweight
  • reliable
  • demo-friendly
  • deployment-safe

πŸš€ Getting Started

Clone the repository

git clone https://github.com/Yashyr190/debugpilot-ai.git

Navigate into the project

cd debugpilot-ai

Install dependencies

npm install

Start development server

npm run dev

Open:

http://localhost:3000

πŸ” Environment Variables

Optional:

OPENAI_API_KEY=your_api_key

The application can also run completely without external AI APIs using the built-in local heuristic analysis mode.


🌱 Future Improvements

Potential future enhancements include:

  • GitHub repository context analysis
  • CI/CD log ingestion
  • Slack integration
  • AI-generated pull request fixes
  • Repository-aware debugging
  • Multi-agent debugging workflows
  • Real-time production incident monitoring

🎯 Why This Project

The focus of DebugPilot AI was not building a massive platform, but designing a focused developer workflow that feels practical, realistic, and immediately useful.

The project emphasizes:

  • workflow design
  • engineering usability
  • structured outputs
  • practical debugging
  • AI-native product thinking

πŸ“Ή Demo Video

(https://drive.google.com/file/d/1B6vfclYXRypmdNDDFDD16DtDiTtuYRL2/view?usp=sharing)


πŸ™Œ Acknowledgements

Built as part of the Lamatic AgentKit Challenge.


πŸ“„ License

MIT License

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors