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 Groq:

  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

Or use OpenAI / Anthropic:

LLM_PROVIDER=OPENAI
OPENAI_API_KEY=your_key_here
LLM_PROVIDER=ANTHROPIC
ANTHROPIC_API_KEY=your_key_here

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
Groq (default) llama-3.3-70b-versatile GROQ_API_KEY
OpenAI gpt-4o OPENAI_API_KEY
Anthropic claude-sonnet-4-20250514 ANTHROPIC_API_KEY

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.2.tar.gz (16.9 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.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbgagent-0.1.2.tar.gz
  • Upload date:
  • Size: 16.9 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.2.tar.gz
Algorithm Hash digest
SHA256 4d58c943c0093c3432e783bec27255dcc7d5b37aa1bbcf216a7c59d3b6f19c44
MD5 1950f8e87aefbec96922e222eb1c7e5a
BLAKE2b-256 341848017b23cb1350ee3e263919524a182002e75d70d3e577b283ce89647583

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: dbgagent-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40466b46f37612f313804205d5adfee8321301084606c2742eef97c685236436
MD5 78ca698d0f8331bb981c85e9abc0c2a7
BLAKE2b-256 751fbdebebe4316962c5426d82b72a05e2531e8f15ad538412bdba18386fdef5

See more details on using hashes here.

Provenance

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