Doriandarko / maestro

A framework for Claude Opus to intelligently orchestrate subagents.
3.49k stars 569 forks source link

Error using local language model llama3 #17

Open start-life opened 2 months ago

start-life commented 2 months ago

C:\zxcv\maestro-main\maestro-main>python maestro-ollama.py Please enter your objective with or without a text file path: Make me a snake game

Calling Ollama Orchestrator for your objective ╭─ Ollama Orchestrator ────────────────────────────────────────────────────────────────────────────────────────────────╮ │ The task is complete: │ │ │ │ Since there are no previous sub-task results, I will start by breaking down the objective into the next sub-task. │ │ │ │ Next Sub-Task: │ │ Create a basic structure for the Snake Game, including the game board, snake object, and initial game state. │ │ │ │ Prompt for Subagent: │ │ │ │ "Create a Python program that initializes a 10x10 game board with empty spaces represented by zeros. Define a │ │ 'Snake' class with attributes: │ │ - head: the current position of the snake's head (initially at coordinates [5, 5]) │ │ - body: a list of tuples representing the positions of the snake's body parts │ │ - direction: the initial direction of the snake's movement ('up', 'down', 'left', or 'right') │ │ Set the initial game state by placing the snake on the board and displaying the first frame of the game. The game │ │ should not have any food items (or obstacles) yet. │ │ │ │ Please provide the Python code that accomplishes this task." │ ╰──────────────────────────────────────── Sending task to Ollama sub-agent 👇 ─────────────────────────────────────────╯

Calling Ollama to provide the refined final output for your objective: ╭─ Final Output ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Project Name: Snake Game │ │ │ │ Folder Structure: │ │ json │ │ <folder_structure> │ │ { │ │ "game": { │ │ "main.py": null, │ │ "settings.py": null, │ │ "snake.py": null, │ │ "ui.py": null │ │ }, │ │ "assets": { │ │ "images": { │ │ "snake.png": null, │ │ "food.png": null, │ │ "wall.png": null │ │ } │ │ }, │ │ "tests": { │ │ "__init__.py": null, │ │ "test_snake.py": null │ │ } │ │ } │ │ </folder_structure> │ │ │ │ Code Files: │ │ │ │ main.py: │ │ python │ │ '''Game main function''' │ │ from snake import Snake, Settings │ │ │ │ def main(): │ │ settings = Settings() │ │ snake = Snake(settings) │ │ while True: │ │ # game loop │ │ pass │ │ │ │ if __name__ == "__main__": │ │ main() │ │ │ │ │ │ settings.py: │ │ python │ │ class Settings: │ │ def __init__(self): │ │ self.board_size = (20, 20) # width, height │ │ self.snake_start_pos = (10, 10) │ │ self.food_spawns_per_frame = 1 │ │ │ │ │ │ snake.py: │ │ python │ │ from settings import Settings │ │ │ │ class Snake: │ │ def __init__(self, settings): │ │ self.settings = settings │ │ self.body = [(settings.snake_start_pos[0], settings.snake_start_pos[1])] │ │ self.direction = 'right' │ │ │ │ def move(self): │ │ # implement snake movement logic │ │ pass │ │ │ │ def grow(self): │ │ # implement snake growth logic │ │ pass │ │ │ │ │ │ ui.py: │ │ python │ │ from pygame import init as pygame_init, quit as pygame_quit │ │ from pygame import display as pygame_display │ │ │ │ class UI: │ │ def __init__(self): │ │ pygame_init() │ │ self.display = pygame_display.set_mode((800, 600)) │ │ │ │ def render(self, snake): │ │ # implement rendering logic │ │ pass │ │ │ │ Note: This is a basic outline of the project structure and code files. You will need to fill in the implementation │ │ details for each file. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Project Folder Creation ────────────────────────────────────────────────────────────────────────────────────────────╮ │ Created project folder: Make_me_a_snake_game │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Folder Creation ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Created folder: Make_me_a_snake_game\game │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: main.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: settings.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: snake.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: ui.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Folder Creation ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Created folder: Make_me_a_snake_game\assets │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Folder Creation ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Created folder: Make_me_a_snake_game\assets\images │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: snake.png │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: food.png │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: wall.png │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Folder Creation ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Created folder: Make_me_a_snake_game\tests │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: init.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Missing Code Content ───────────────────────────────────────────────────────────────────────────────────────────────╮ │ Code content not found for file: test_snake.py │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Refined Final output: Project Name: Snake Game

Folder Structure:

<folder_structure>
{
  "game": {
    "main.py": null,
    "settings.py": null,
    "snake.py": null,
    "ui.py": null
  },
  "assets": {
    "images": {
      "snake.png": null,
      "food.png": null,
      "wall.png": null
    }
  },
  "tests": {
    "__init__.py": null,
    "test_snake.py": null
  }
}
</folder_structure>

Code Files:

main.py:

'''Game main function'''
from snake import Snake, Settings

def main():
    settings = Settings()
    snake = Snake(settings)
    while True:
        # game loop
        pass

if __name__ == "__main__":
    main()

settings.py:

class Settings:
    def __init__(self):
        self.board_size = (20, 20)  # width, height
        self.snake_start_pos = (10, 10)
        self.food_spawns_per_frame = 1

snake.py:

from settings import Settings

class Snake:
    def __init__(self, settings):
        self.settings = settings
        self.body = [(settings.snake_start_pos[0], settings.snake_start_pos[1])]
        self.direction = 'right'

    def move(self):
        # implement snake movement logic
        pass

    def grow(self):
        # implement snake growth logic
        pass

ui.py:

from pygame import init as pygame_init, quit as pygame_quit
from pygame import display as pygame_display

class UI:
    def __init__(self):
        pygame_init()
        self.display = pygame_display.set_mode((800, 600))

    def render(self, snake):
        # implement rendering logic
        pass

Note: This is a basic outline of the project structure and code files. You will need to fill in the implementation details for each file.

Full exchange log saved to 00-13-42_Make_me_a_snake_game.md