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.5.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.5-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbgagent-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 fa06dc20bb5dd86a50085a36c8f6c0d2a8dc5df280e9f7e4043fc2ec34695c12
MD5 688fcba9e4ca09cfe741d32e2ff1f8b0
BLAKE2b-256 5612ea6ae23044228fb3b44f05f3f22b6338b916cd88bf730f97bdaf80c0fdc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbgagent-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: dbgagent-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c9193faece02adaeb55b1d134be2bb6debd8160460bd31de14b798ebe328f0
MD5 f658047a513cc4f5a2c0047edf426519
BLAKE2b-256 dd0ff0dd479fbfae68e762dbb319d94df0475624d4e7082becd834feda73c996

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbgagent-0.1.5-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