Skip to content

azillion/qed_labyrinth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QED Labyrinth

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.

Core Features

  • 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

Technical Architecture

Core Engine (OCaml)

World State
├─ Agents
│  ├─ Properties (needs, status)
│  ├─ Relationships
│  └─ Memory
│
├─ Spaces
│  ├─ Physical State
│  ├─ Social State
│  └─ History
│
└─ Events
   ├─ Actions
   ├─ Changes
   └─ Information

Getting Started

  1. Prerequisites

    • OCaml
    • Dune build system
    • Language model API access
  2. Installation

    git clone <repository-url>
    cd qed_labyrinth
    opam install . --deps-only
  3. Building

    dune build
  4. Running

    dune exec qed_labyrinth

Development Guide

Project Structure

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

Key Components

  1. Agent System

    • State representation
    • Decision making
    • Need simulation
    • Relationship tracking
  2. Memory System

    • Event recording
    • Memory retrieval
    • Information decay
    • Reflection generation
  3. Planning System

    • Goal planning
    • Action selection
    • Plan revision
    • Reactive behavior
  4. Space System

    • Physical state tracking
    • Social state management
    • Event history
    • State transitions

Contributing

  1. Fork repository
  2. Create feature branch
  3. Make changes with tests
  4. Submit pull request

Testing

dune runtest

Future Development

  1. Enhanced Intelligence

    • Better decision making
    • Improved social strategies
    • More sophisticated planning
  2. Performance

    • Parallel processing
    • Memory optimization
    • State update efficiency

License

MIT License

Acknowledgments

Built on research in:

  • Generative agents
  • Social simulation
  • Artificial intelligence
  • Multi-agent systems

About

A living agent-based MUD in ocaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published