Skip to content

azazoha/aiagent

Repository files navigation

Lumos: A Local Agentic IDE Assistant

Python-based AI agent that uses the Gemini API to analyze, debug, and modify local source code through function calling.

Key Features

Tool Use (Function Calling): Agent uses specific tools to read files, write code, and execute shell commands.

Context-Aware Debugging: Agent can ingest entire directory structures to understand project context.

Recursive Problem Solving: Agent can iterate on a problem until the tests pass.

Technical Stack

Language: Python
AI Model: Google Gemini (via google-generativeai SDK)
Integration: Used the "System Prompt" strategy to define the agent's persona and constraints.

⚠️ Security Warning

Use this tool with extreme caution. This agent has the capability to read, write, and execute code on your local filesystem.

Prompt Injection Risk: LLMs can be manipulated by malicious input. If the agent reads a file containing "malicious instructions," it may attempt to execute harmful shell commands or delete data.
No Sandbox: By default, this agent runs with the same permissions as your user account. It is not running in a container or a virtual machine.
Internet Access: If the agent has access to tools that can make network requests, it could theoretically exfiltrate local data.

Best Practices for Usage:

Version Control: Always run this agent on a clean Git branch. Review all changes using git diff before committing.
Isolated Environments: Run the agent inside a dedicated virtual environment or, ideally, a Docker container.
Sensitive Data: Ensure no .env files, API keys, or sensitive credentials are in the directories the agent can read.

Example Usage

User: "There is a bug in the division logic of math_utils.py. Find it and fix it."
Agent: "I will list the files, read math_utils.py, identify the ZeroDivisionError, and apply a fix..."

About

Python-based AI agent that uses the Gemini API to analyze, debug, and modify local source code through function calling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages