Skip to main content

AI-powered code assistant — auto-fix, review, and simplify your entire codebase

Project description

dbgagent

AI-powered code assistant — auto-fix, review, and simplify your entire codebase.

Built by Aryan Tyagi


What is dbgagent?

dbgagent scans your codebase, finds problems, and fixes them with AI. Four commands:

  1. fix — Auto-find files with errors, fix them
  2. allfix — Scan entire codebase, find all errors, ask before fixing
  3. review — Review every file, show issues as bullet points
  4. simplify — Find over-engineering, simplify code

Install

pip install dbgagent

Upgrade

pip install --upgrade dbgagent

Uninstall

pip uninstall dbgagent

Setup

You need a free API key from one of these providers:

Quick start (Groq — free, fast)

  1. Sign up at console.groq.com (free)
  2. Copy your API key
  3. Set it in a .env file in your project:
GROQ_API_KEY=your_key_here

Other providers

# OpenAI
LLM_PROVIDER=OPENAI
OPENAI_API_KEY=your_key_here

# Anthropic
LLM_PROVIDER=ANTHROPIC
ANTHROPIC_API_KEY=your_key_here

# Google Gemini (free tier)
LLM_PROVIDER=GEMINI
GEMINI_API_KEY=your_key_here

# Mistral / Codestral (free tier)
LLM_PROVIDER=MISTRAL
MISTRAL_API_KEY=your_key_here

Per-command providers (recommended)

Use the best model for each command:

# In .env — each command uses its optimal model
FIX_PROVIDER=GROQ           # fast debugging
REVIEW_PROVIDER=GEMINI      # 1M context, catches patterns
SIMPLIFY_PROVIDER=MISTRAL   # Codestral trained for refactoring
ALLFIX_PROVIDER=GEMINI      # large context for multi-file fixes

Usage

Fix files with errors

Scans your codebase, finds files that crash, and fixes them:

dbgagent fix
dbgagent fix ./myproject

Fix all errors

Scans entire codebase, shows all errors, asks before fixing each:

dbgagent allfix
dbgagent allfix ./myproject

Review codebase

Reviews every file, shows issues as bullet points. No code changes:

dbgagent review
dbgagent review ./myproject

Simplify code

Finds over-engineering, shows diffs, asks before applying:

dbgagent simplify
dbgagent simplify ./myproject

How it works

When you run a command, dbgagent:

  1. Asks which directories to skip (.git, node_modules, etc.)
  2. Scans all .py files in the codebase
  3. For fix/allfix: runs each file, catches errors, sends to AI, gets fixes
  4. For review: sends each file to AI for code review
  5. For simplify: sends each file to AI for simplification
  6. Shows results and asks before making changes

Your files are never modified until you say "yes".


Commands

Command What it does
dbgagent fix [path] Auto-find and fix files with errors
dbgagent allfix [path] Scan codebase, fix all errors
dbgagent review [path] Review codebase, show issues
dbgagent simplify [path] Find over-engineering, simplify

All commands default to current directory if no path given.


Supported providers

Provider Model Env var Free tier
Groq (default) llama-3.3-70b-versatile GROQ_API_KEY 30 RPM
OpenAI gpt-4o OPENAI_API_KEY $5 credit
Anthropic claude-sonnet-4-20250514 ANTHROPIC_API_KEY $5 credit
Google Gemini gemini-2.5-flash GEMINI_API_KEY 15 RPM, 1M context
Mistral codestral-latest MISTRAL_API_KEY 1B tokens/month

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbgagent-0.1.4.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbgagent-0.1.4-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file dbgagent-0.1.4.tar.gz.

File metadata

  • Download URL: dbgagent-0.1.4.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for dbgagent-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e538d448b0e3a159a574bbf1f11684494670036c01bc1098ccc8a5e4ba0959c8
MD5 508c51a67788df3ab01dae5ac3c9fb47
BLAKE2b-256 8ce1505ac9cc1eabeee5dce799e763ff902d2b0a32c9aada7d3ccb4cdfdffb42

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbgagent-0.1.4.tar.gz:

Publisher: publish.yml on aryantyagi2211/Debug_agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dbgagent-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: dbgagent-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for dbgagent-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 73ffe4ae9275ef7939bb0328566d9c850a892ddce9ffd6a205412ae94fb7dd52
MD5 899e8e0fa151e654bc500a7d6694696b
BLAKE2b-256 6512cf0a18e3aa21b2c20f573dfc78c18e78bd11244e1bee82a0b41478d2ab0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbgagent-0.1.4-py3-none-any.whl:

Publisher: publish.yml on aryantyagi2211/Debug_agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page