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:
- fix — Auto-find files with errors, fix them
- allfix — Scan entire codebase, find all errors, ask before fixing
- review — Review every file, show issues as bullet points
- 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)
- Sign up at console.groq.com (free)
- Copy your API key
- Set it in a
.envfile 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:
- Asks which directories to skip (
.git,node_modules, etc.) - Scans all
.pyfiles in the codebase - For
fix/allfix: runs each file, catches errors, sends to AI, gets fixes - For
review: sends each file to AI for code review - For
simplify: sends each file to AI for simplification - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e538d448b0e3a159a574bbf1f11684494670036c01bc1098ccc8a5e4ba0959c8
|
|
| MD5 |
508c51a67788df3ab01dae5ac3c9fb47
|
|
| BLAKE2b-256 |
8ce1505ac9cc1eabeee5dce799e763ff902d2b0a32c9aada7d3ccb4cdfdffb42
|
Provenance
The following attestation bundles were made for dbgagent-0.1.4.tar.gz:
Publisher:
publish.yml on aryantyagi2211/Debug_agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbgagent-0.1.4.tar.gz -
Subject digest:
e538d448b0e3a159a574bbf1f11684494670036c01bc1098ccc8a5e4ba0959c8 - Sigstore transparency entry: 2203083033
- Sigstore integration time:
-
Permalink:
aryantyagi2211/Debug_agent@84328887df9522889738257b40f77e32d54a18dc -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/aryantyagi2211
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84328887df9522889738257b40f77e32d54a18dc -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ffe4ae9275ef7939bb0328566d9c850a892ddce9ffd6a205412ae94fb7dd52
|
|
| MD5 |
899e8e0fa151e654bc500a7d6694696b
|
|
| BLAKE2b-256 |
6512cf0a18e3aa21b2c20f573dfc78c18e78bd11244e1bee82a0b41478d2ab0d
|
Provenance
The following attestation bundles were made for dbgagent-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on aryantyagi2211/Debug_agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbgagent-0.1.4-py3-none-any.whl -
Subject digest:
73ffe4ae9275ef7939bb0328566d9c850a892ddce9ffd6a205412ae94fb7dd52 - Sigstore transparency entry: 2203083093
- Sigstore integration time:
-
Permalink:
aryantyagi2211/Debug_agent@84328887df9522889738257b40f77e32d54a18dc -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/aryantyagi2211
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84328887df9522889738257b40f77e32d54a18dc -
Trigger Event:
release
-
Statement type: