| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is an advanced AI agent built on the LangChain framework and powered by the Gemini Large Language Model (LLM), designed for seamless integration into the developer's terminal. Its core function is to automate the process of finding and fixing errors across multiple programming languages, specifically Python, C, C++, Java, JavaScript/Node.js, Rust, Ruby, PHP, and C#.
The system operates on a closed-loop "Observe-Reason-Act" agent model:
The core motivation is a terminal-integrated debugger which can provide personalized solutions and explanations to quickly identify code errors, acting as an on-demand tutor for absolute beginners (CS101). By automating the debugging loop with an LLM, it minimizes the tiring, time-consuming process for all developers. It can give personalized results depending on the prompt, which can significantly reduce time and effort.
git clone https://github.com/AbhishekU05/Hello_FOSS_25_code_debugger.git
cd Hello_FOSS_25_code_debuggersource foss_venv/bin/activate
pip3 install -r requirements.txt# Google Gemini API Configuration
GOOGLE_API_KEY=your-gemini-api-key-here
# Optional: Specify model (default is gemini-pro)
# GEMINI_MODEL=gemini-pro
# Optional: Set temperature (default is 0.0)
# TEMPERATURE=0.0Run the debugger:
python main.pyThe debugger will:
code_debugger/ │ ├── main.py # Entry point ├── agent.py # LangChain agent configuration with Gemini ├── tools/ │ ├── __init__.py │ └── executor.py # Safe Python code executor ├── examples/ │ ├── __init__.py │ └── buggy_code.py # Sample buggy code for testing ├── requirements.txt # Project dependencies (updated for Gemini) ├── .env # Environment variables template └── README.md # This file
Edit the create_agent() call in main.py:
agent_executor = create_agent(
model_name="gemini-pro", # Available models: gemini-pro, gemini-pro-vision
temperature=0.2, # Higher for more creative solutions
verbose=True # Set to False for less output
)Add new examples to examples/buggy_code.py:
BUGGY_CODE_SAMPLES["my_bug"] = '''
def my_function():
# Your buggy code here
pass
'''MIT
| Back | FazBrowse Home | New Git URL |