Skip to content
ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BugOut: Your AI-Powered Pythonic Coding Agent ๐Ÿž๐Ÿ’ป

BugOut Logo

BugOut is a proof-of-concept (PoC) Python coding agent that demonstrates how you can build a local code-generation and execution agent from scratch. It leverages a locally running โ€œDeepSeek Liteโ€ API (llm/deepseek_lite_api.py) to generate code. The code is then automatically run and refined until it executes without errors, or until a set iteration limit is reached.

Key Features

  1. Local LLM API Integration

    • BugOut calls your locally running LLM endpoint (DeepSeek Lite) to generate Python code based on instructions and user prompts.
    • Uses streaming responses to capture code as itโ€™s generated.
  2. Conversation Management

    • Maintains a conversation list (self.conversation) with:
      • A โ€œsystemโ€ prompt that provides instructions to the LLM.
      • A sequence of user prompts or feedback.
      • The LLMโ€™s replies, including any generated code.
  3. Iterative Refinement

    • If code execution returns an error, BugOut re-injects the error output into the conversation, prompting the LLM to provide a refined solution.
    • Planning and Reflection
    • This loop continues until:
      • The code executes successfully, or
      • The maximum iteration count (max_iterations) is reached.
    • Writes the code to a temporary .py fileโ€”rather than using exec()โ€”and then runs it in a subprocess for safety and isolation.

About

AI-Powered, Local Pythonic Coding Agent ๐Ÿž๐Ÿ’ป

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages