A Living MUD system that creates intimate social spaces powered by autonomous agents. Built in OCaml, QED Labyrinth focuses on creating deeply simulated environments where agents develop relationships, share information, and generate emergent narratives through their interactions.
- Autonomous Agents: Each agent has memories, needs, relationships, and goals
- Living World: Environments that persist and change based on agent actions
- Emergent Stories: Narratives arise naturally from agent interactions
- Social Network: Information spreads through agent interactions and relationships
- Physical Simulation: Spaces track physical and social state changes over time
World State
├─ Agents
│ ├─ Properties (needs, status)
│ ├─ Relationships
│ └─ Memory
│
├─ Spaces
│ ├─ Physical State
│ ├─ Social State
│ └─ History
│
└─ Events
├─ Actions
├─ Changes
└─ Information
-
Prerequisites
- OCaml
- Dune build system
- Language model API access
-
Installation
git clone <repository-url> cd qed_labyrinth opam install . --deps-only
-
Building
dune build
-
Running
dune exec qed_labyrinth
qed_labyrinth/
├─ src/
│ ├─ agent/ # Agent implementation
│ ├─ world/ # World state management
│ ├─ memory/ # Memory systems
│ ├─ planning/ # Planning modules
│ └─ interface/ # User interface
├─ test/ # Test suite
└─ examples/ # Example scenarios
-
Agent System
- State representation
- Decision making
- Need simulation
- Relationship tracking
-
Memory System
- Event recording
- Memory retrieval
- Information decay
- Reflection generation
-
Planning System
- Goal planning
- Action selection
- Plan revision
- Reactive behavior
-
Space System
- Physical state tracking
- Social state management
- Event history
- State transitions
- Fork repository
- Create feature branch
- Make changes with tests
- Submit pull request
dune runtest
-
Enhanced Intelligence
- Better decision making
- Improved social strategies
- More sophisticated planning
-
Performance
- Parallel processing
- Memory optimization
- State update efficiency
MIT License
Built on research in:
- Generative agents
- Social simulation
- Artificial intelligence
- Multi-agent systems