https://github.com/nibzard/labruno-agent
Labruno is an agent coordinator that creates multiple AI solutions to your coding tasks using parallel sandboxes and evaluates them to find the best implementation.
https://github.com/nibzard/labruno-agent
agent ai groq llm sandbox
Last synced: 2 months ago
JSON representation
Labruno is an agent coordinator that creates multiple AI solutions to your coding tasks using parallel sandboxes and evaluates them to find the best implementation.
- Host: GitHub
- URL: https://github.com/nibzard/labruno-agent
- Owner: nibzard
- Created: 2025-04-08T05:43:37.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-05-02T12:27:10.000Z (5 months ago)
- Last Synced: 2025-07-05T07:39:23.549Z (3 months ago)
- Topics: agent, ai, groq, llm, sandbox
- Language: Python
- Homepage: https://daytona.io/
- Size: 350 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Labruno ๐งช๐
Labruno is an agent coordinator that creates multiple AI solutions to your coding tasks using parallel sandboxes and evaluates them to find the best implementation.

## What is Labruno?
Labruno acts as an orchestrator that:
1. Takes your coding task and spins up multiple isolated sandboxes
2. Asks each sandbox to generate a unique solution using LLaMA 4
3. Executes all solutions in parallel
4. Uses an LLM as judge to evaluate and select the best implementation
5. Shows you all solutions with the winner highlightedThink of it as having multiple AI developers working on your task simultaneously, with an expert reviewer choosing the best approach.
## Features at a Glance
- ๐๏ธ **Parallel Processing**: Creates and runs multiple sandboxes concurrently
- ๐ง **Multiple Solutions**: Generates diverse approaches to the same problem
- ๐ค **AI Evaluation**: Uses an LLM to judge which solution is best
- ๐ **Secure Execution**: Runs code in isolated Daytona sandboxes
- โก **Fast Results**: Get multiple working implementations in seconds## Setup
### Requirements
- Python 3.8+
- Daytona and Groq API keys### Quick Start
```bash
# Install
git clone https://github.com/nkkko/labruno.git
cd labruno
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt# Configure
cp .env.example .env
# Add your API keys to .env# Run
python app.py
```### API Keys
In your `.env` file:
```
DAYTONA_API_KEY=your_key_here
DAYTONA_TARGET=us
GROQ_API_KEY=your_key_here
```## Using Labruno
1. Open http://127.0.0.1:5001 in your browser
2. Type a coding task like "write a function to find prime numbers"
3. Click "Generate and Execute Code"
4. See multiple solutions and the AI's evaluation of the best one## How Labruno Works
1. **You provide a task**: Ask for any coding solution
2. **Concurrent sandboxes spin up**: Multiple isolated environments are created in parallel
3. **Each sandbox generates code**: LLaMA 4 creates a unique solution in each environment
4. **All solutions execute**: Code runs safely in isolated sandboxes
5. **AI judges the results**: The LLM evaluates solutions for correctness, efficiency, and style
6. **Results presented**: You see all working solutions with the best one highlighted## Common Use Cases
- **Interview Prep**: See multiple approaches to coding problems
- **Learning**: Compare different ways to solve the same problem
- **Optimization**: Find the most efficient algorithm for your task
- **Exploration**: Generate diverse implementations and understand trade-offs## Configuration Options
- Modify number of parallel sandboxes in `app.py`
- Adjust evaluation criteria by changing the ranking in `evaluate_results()`
- Customize prompt templates in `sandbox_task_runner.py`## Troubleshooting
- **API Key Issues**: Ensure your Daytona and Groq API keys are correctly set in `.env`
- **Slow Results**: For complex tasks, reduce the number of concurrent sandboxes
- **Memory Limitations**: If you encounter memory issues, lower the `max_workers` parameter## Credits
- [Daytona](https://www.daytona.io/) for sandbox environments
- [Groq](https://groq.com/) for LLaMA 4 access
- [Flask](https://flask.palletsprojects.com/) for the web interface---
Created by [nkkko](https://github.com/nkkko)