A sophisticated multi-agent simulation featuring JaCaMo-based bee colony vs LLM-powered Wasp predator battle system.
This project now features an exciting LLM-powered Wasp agent that battles against JaCaMo-based Sentinel bees!
| Side | Technology | Description |
|---|---|---|
| π Sentinels | JaCaMo (BDI) | Traditional multi-agent system with beliefs, desires, and intentions |
| β οΈ Wasp | Gemini LLM | AI-powered predator that strategically hunts sentinel bees |
| Mechanic | Wasp | Sentinels |
|---|---|---|
| Attack Range | 50px (instant kill) | 100px (counter-attack) |
| Damage | Kills 1-2 sentinels | 20 HP (10% of Wasp HP) |
| Attack Speed | 500ms | 1000ms |
| Win Condition | Eliminate all sentinels | Reduce Wasp HP to 0 |
The battle ends with a dramatic victory announcement:
- "LLM-based Wasp Agent WINNER!" - If Wasp eliminates all sentinels
- "JaCaMo-based Sentinels WINNER!" - If sentinels defeat the Wasp
Wasp wins by eliminating all sentinels
Sentinels win through collective defense
Melissa is an advanced multi-agent system that simulates the complex social behaviors and organizational structure of a bee hive. Built using the JaCaMo framework, this project demonstrates how autonomous agents can work together through beliefs, goals, and actions to maintain a thriving colony.
The simulation models realistic bee behaviors including:
- Honey production and resource management
- Temperature control within the hive
- Colony reproduction and larva development
- Exploration and food source discovery
- Hive defense against LLM-powered predators βοΈ
| Feature | Description |
|---|---|
| Autonomous Agents | Each bee operates independently with its own beliefs, goals, and decision-making |
| Role-Based Organization | Agents adopt roles (Queen, Nurse, Sentinel, Explorer) based on age and colony needs |
| Real-Time Visualization | JavaFX-powered graphics display hive state, bee movements, and statistics |
| BDI Architecture | Belief-Desire-Intention model for realistic agent behavior |
| LLM Integration | Gemini API powers the Wasp's strategic decision-making |
| Battle System | Dynamic combat between AI systems with balanced mechanics |
melissa/
βββ src/
β βββ agt/ # Agent definitions (Jason/AgentSpeak)
β β βββ queen.asl # Queen bee behavior
β β βββ worker.asl # Worker bee behaviors (including Sentinels)
β β βββ wasp.asl # LLM-powered Wasp agent β NEW
β βββ env/ # Environment artifacts
β β βββ artifact/ # JaCaMo artifacts
β β β βββ GeminiService.java # LLM API integration β NEW
β β β βββ WaspArtifact.java # Wasp battle artifact β NEW
β β βββ graphic/ # JavaFX visualization
β β βββ model/
β β βββ Wasp.java # Wasp entity model β NEW
β βββ int/ # Interaction specifications
β βββ org/ # Organization structure
βββ melissa.jcm # JaCaMo project configuration
βββ img/ # Screenshots and demos
π Queen
/ | \
/ | \
πΌ π‘οΈ π
Nurses Sentinels Explorers
| | |
v v v
π₯Larvae βοΈ πΈFlowers
vs
β οΈ Wasp (LLM)
| Agent Type | Instances | Technology | Role |
|---|---|---|---|
| Queen | 1 | JaCaMo | Monarch (egg laying, colony management) |
| Nurse | 12 | JaCaMo | Larva care and feeding |
| Sentinel | ~17 | JaCaMo | Hive protection and Wasp combat |
| Explorer | 20 | JaCaMo | Food source discovery |
| Wasp | 1 | Gemini LLM | Predator hunting sentinels |
- Java JDK 11+ with JavaFX support
- Gradle (included via wrapper)
- Gemini API Key (free tier available)
# Clone the repository
git clone https://github.com/hakkikeman/MAS_Group1_Final_Project.git
cd MAS_Group1_Final_Project
# Configure Gemini API (optional - fallback available)
echo "gemini.api.key=YOUR_API_KEY" > src/env/artifact/gemini-config.properties
# Run with Gradle
./gradlew run- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the key to
gemini-config.properties
Note: The simulation works without an API key using fallback targeting strategies.
Once running, the simulation will display:
- Agent Activity Log - Real-time actions and decisions of each bee
- Hive Visualization - Graphical representation of the colony
- Battle Arena - Wasp vs Sentinels combat with health bars
- Victory Screen - Winner announcement when battle ends
Multi-Agent System battle simulation in action
JaCaMo-based Sentinels defeating the LLM-powered Wasp through coordinated counter-attacks
Real-time battle logs showing Wasp's LLM strategy decisions and Sentinel responses
| Name | Role | GitHub |
|---|---|---|
| HakkΔ± Keman | Agent Developer | @hakkikeman |
| Can TΓΌrk KΓΌΓ§ΓΌk | Environment Developer | @canturk3 |
| Sefa Samet SΓΌtΓ§ΓΌ | Organisation Developer | @SefaSutcu |
Academic Project: Developed as the Final Project for the Multi-Agent Artificial Intelligence course.
| Technology | Purpose |
|---|---|
| JaCaMo | Multi-agent programming framework |
| Jason | AgentSpeak language for BDI agents |
| Moise | Organizational modeling |
| CArtAgO | Environment artifacts |
| JavaFX | Visualization & UI |
| Gemini API | LLM-powered Wasp intelligence β NEW |
This project is licensed under the MIT License - see the LICENSE file for details.
β Star this repository if you find it interesting!


