protopolis

Crates.ioprotopolis
lib.rsprotopolis
version0.3.3
created_at2025-02-25 02:52:41.357944+00
updated_at2025-03-26 08:09:59.379955+00
descriptionA multi-agent Ollama simulation in Rust
homepage
repositoryhttps://github.com/LightInn/protopolis
max_upload_size
id1568645
size9,808,738
Brรฉval Le Floch (LightInn)

documentation

README

๐Ÿค– Protopolis

A Rust-based AI multi-agent simulation framework (using Ollama)

Protopolis is a project that allows you to create and simulate interactions between AI agents in a colorful terminal environment. Agents can communicate with each other and with the user according to different states and energy levels.

Build Status Crates.io License Downloads

Agents discussing philosophy

โš ๏ธ Warning: This project is a work in progress (WIP) and will have frequent updates that may break various features.

๐Ÿ“‹ Features

  • ๐Ÿง  Agent Simulation with different states (Idle, Thinking, Speaking)
  • ๐Ÿ’ฌ Messaging System between agents and with the user
  • ๐ŸŒˆ Colorful Terminal Interface for better visualization
  • โšก Energy Management for agents
  • ๐Ÿ”„ Simple Commands to control the simulation

๐Ÿ› ๏ธ Installation

โš ๏ธ Note: Make sure to have Ollama installed with the llama3.2 model before continuing.

git clone https://github.com/LightInn/protopolis
cd protopolis
cargo build --release

๐ŸŽฎ Usage

To start the simulation:

cargo run --release

Available Commands

  • start - Start the simulation
  • pause - Pause the simulation
  • resume - Resume the simulation
  • stop - Stop the simulation
  • exit - Exit the application
  • topic <subject> - Set a new discussion topic
  • msg <agent> <message> - Send a message to a specific agent

๐Ÿ—๏ธ Architecture

The project is built around several key components:

  • Agents - Entities with states and behaviors
  • Messaging System - Asynchronous communication between agents
  • User Interface - Colorful display in the terminal
  • Simulation - Orchestration of interactions

๐Ÿ—บ๏ธ Roadmap

  • Basic terminal interface
  • Color system for agents
  • Communication between agents
  • More complex agent personalities
  • Save/load simulations
  • Graphical visualization of interactions

๐Ÿค Contribution

Contributions are welcome! Feel free to open an issue or a pull request.

๐Ÿ“š Inspired By

  • TyniTroupe - LLM-powered multiagent persona simulation

๐Ÿ”Œ Powered By

Ollama
Ollama - Local LLM runner

License

MIT ยฉ 2025 Breval LE FLOCH

Commit count: 100

cargo fmt