DebugLens

AI Code Validator powered by IBM Bob

Catch what AI misses — before it ships.

⚔ Performance Analyzer šŸ”§ Auto-Fix Engine šŸ”„ Auto PR Reviews 🚫 Merge Blocking āš™ļø MCP Powered
Analyze AI Code → Auto Fix Issues → Review Pull Requests → Block Unsafe Merges
6

Core AI validation features

< 2s

Average validation time

32+

Utilities tracked automatically

100%

Repository pattern matching

The Problem with AI-Generated Code

AI tools generate fast code — but they do not understand your repository conventions, architecture, utilities, or performance standards.

šŸ“¦

Wrong Libraries

AI imports axios while your repository uses fetch. This creates inconsistency and unnecessary dependencies.

āœļø

Broken Naming Patterns

snake_case mixed with camelCase becomes a code review nightmare across large teams.

⚔

Performance Anti-Patterns

Nested loops, sync blocking operations, and memory leaks slip through unnoticed.

Seven Core Features

Validate, analyze, and automatically fix AI-generated code using real repository patterns and CI/CD integration.

1

Library Mismatch Detection

Detects imports not used anywhere in your repository and recommends the correct internal standard automatically.

2

Naming Convention Validation

Analyzes repository-wide naming conventions and flags every non-conforming identifier generated by AI.

3

Error Handling Analysis

Compares AI code against repository error-handling scores and injects missing try-catch patterns.

4

Duplicate Utility Detection

Prevents AI from reinventing existing utilities and suggests importing already available functions.

5

Performance Analysis

Detects nested loops, sync blocking operations, missing awaits, and memory leak risks automatically.

6

Auto-Fix Engine

Automatically rewrites AI-generated code into repository-compliant production-ready code in one command.

7

GitHub Actions CI/CD Integration

Automatically validates every pull request, comments detailed findings on PRs, and blocks merges when HIGH severity issues are detected.

What DebugLens Detects

Five categories of violations identified instantly during pull requests and local development.

šŸ”“ Missing error handling šŸ”“ O(n²) performance issues 🟔 Library mismatch 🟔 Naming convention violations šŸ”µ Duplicate utilities

Before & After Auto-Fix

DebugLens transforms AI-generated snippets into repository-compliant production-ready code automatically.

āŒ AI Generated Code
const axios = require('axios');

async function create_new_user(user_data) {
  const response = await axios.post('/users', user_data);
  return response.data;
}
āœ… DebugLens Auto-Fixed
const { handleError } = require('./utils');

async function createNewUser(userData) {
  try {
    const response = await fetch('/users', {
      method: 'POST',
      body: JSON.stringify(userData)
    });

    return await response.json();
  } catch(error) {
    return handleError(error);
  }
}

GitHub Actions Integration

Automatically validate every pull request, comment issues directly on GitHub, and block unsafe merges.

āš™ļø Production CI/CD Workflow
name: DebugLens Validation

on:
  pull_request:

jobs:
  validate:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Install dependencies
        run: npm install

      - name: Run validation on changed JS files
        run: |
          node test-validation.js

      - name: Comment validation results
        uses: actions/github-script@v7

      - name: Fail on HIGH severity issues
        run: |
          if grep -q "HIGH" results.txt; then
            exit 1
          fi
🚫 Blocks critical PRs šŸ’¬ Auto-comments review feedback ⚔ Runs on every pull request

Impact & Benefits

Built not just as a demo — but as a realistic developer productivity and AI governance tool.

ā±ļø Faster Reviews

Saves roughly 30 minutes per pull request review cycle by catching repository mismatches instantly.

⚔ Instant Feedback

Validation completes in under 2 seconds directly inside IBM Bob or GitHub Actions.

šŸ›”ļø Technical Debt Prevention

Stops inconsistent AI-generated code before it reaches production repositories.