AI-powered Python debugger — run a broken script, get root cause, explanation, and fix
Project description
Debug_agent
AI-powered Python debugger. Run a broken script, get a structured diagnosis with root cause, explanation, and proposed fix.
Install
pip install debugagent
Setup
Create a .env file in your project folder:
GROQ_API_KEY=your_groq_api_key_here
Get a free API key at console.groq.com.
Usage
debugagent run brokenscript.py
That's it. It will:
- Run your script and capture the error
- Read the source code around the error
- Check requirements.txt and git diff
- Send everything to an LLM and return a structured diagnosis
Example
$ debugagent run brokenscript.py
Running: brokenscript.py
Script failed (exit 1)
╭─────────────── Traceback ───────────────╮
│ Traceback (most recent call last): │
│ File "brokenscript.py", line 1 │
│ import nonexistent_module │
│ ModuleNotFoundError: ... │
╰─────────────────────────────────────────╯
Analyzing with LLM...
╭─────────────── Root Cause ──────────────╮
│ The module does not exist │
╰─────────────────────────────────────────╯
╭─────────────── Explanation ─────────────╮
│ The import statement references a │
│ module that is not installed... │
╰─────────────────────────────────────────╯
╭─────────────── Proposed Fix ────────────╮
│ Install the module or remove the import │
╰─────────────────────────────────────────╯
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.0.tar.gz.
File metadata
- Download URL: dbgagent-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94fd49b4337351384b4f6a03d8ab139f3653845735a0766afabb983d7fce8080
|
|
| MD5 |
34e21bd339a92bd87dddf29cd9944b3c
|
|
| BLAKE2b-256 |
24a21338b3fe3e5ef2dc460cdaf005e5029d60860ce0ae380d4092f9d567befb
|
Provenance
The following attestation bundles were made for dbgagent-0.1.0.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.0.tar.gz -
Subject digest:
94fd49b4337351384b4f6a03d8ab139f3653845735a0766afabb983d7fce8080 - Sigstore transparency entry: 2162890311
- Sigstore integration time:
-
Permalink:
aryantyagi2211/Debug_agent@e619943a9cfdddb4ad30a988eedb6ee4ae1340e0 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/aryantyagi2211
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e619943a9cfdddb4ad30a988eedb6ee4ae1340e0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dbgagent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dbgagent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1564973a92ea0da7929ce03fdae5c133900d05292fcfdebdbb7e9df796846b15
|
|
| MD5 |
d416f4719cbfee713363de09efb5f748
|
|
| BLAKE2b-256 |
62cf103451d6c6e03933d8fcd56770c0175096ccbf6b5d2ce1de4d4e05872d16
|
Provenance
The following attestation bundles were made for dbgagent-0.1.0-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.0-py3-none-any.whl -
Subject digest:
1564973a92ea0da7929ce03fdae5c133900d05292fcfdebdbb7e9df796846b15 - Sigstore transparency entry: 2162890339
- Sigstore integration time:
-
Permalink:
aryantyagi2211/Debug_agent@e619943a9cfdddb4ad30a988eedb6ee4ae1340e0 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/aryantyagi2211
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e619943a9cfdddb4ad30a988eedb6ee4ae1340e0 -
Trigger Event:
release
-
Statement type: