# Repository Briefing: AIScientists-Dev/WorldSeed
> Source: https://repoforai.com/repo/AIScientists-Dev/WorldSeed (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/AIScientists-Dev/WorldSeed
- **Official Docs / Website**: https://worldseed.morphmind.ai/demo
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: C (45/100 · Maintenance 6/35 · Adoption 13/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, CLI
- **Momentum**: 827 ★ total (+1 24h / +3 7d) · 59 forks
- **Topics**: `agent-based-simulation`, `agentic-ai`, `agents`, `ai`, `ai-agents`, `autonomous-agents`, `emergent-behavior`, `game-ai`, `generative-agents`, `generative-ai`, `llm`, `llm-agents`
- **When to Use**: Best for: Multi-agent research, interactive fiction, and sandbox exercises where roles have different information, actions change a shared world, and humans need to inspect or intervene as the run unfolds. Skip if: Your process is a fixed task graph, identical re-execution is mandatory, or you need production isolation guarantees that you have not validated in your own deployment.

## Overview
```text
### Architecture & Core Mechanics
WorldSeed is a stateful, tick-driven simulation engine rather than a pipeline of agent calls. A YAML scene defines entities, physics, actions, rules, and what each character can perceive. On each tick, agents receive filtered views and propose actions. The engine resolves predictable outcomes through the scene DSL and sends uncertain cases to an LLM Dungeon Master (DM). The DM returns structured effects rather than free-form prose; the engine applies them to shared state. Slow or offline agents do not have to hold up the clock.

The Python package lives under `src/worldseed`, and the `worldseed` console script maps to `worldseed.cli:main`. The server stack includes FastAPI and Uvicorn, with Pydantic and PyYAML among the core dependencies. OpenClaw and Codex subagents have documented integration paths for character agents. The optional `dm` extra supplies LiteLLM and Instructor for model-backed adjudication. These are distinct roles: agents propose actions, while the referee helps resolve their consequences.

### Key Capabilities & Differentiators
The strongest capability is asymmetric perception over shared state: characters in the same scene can act on different information. The dashboard gives a human a global observer view, supports private messages to nudge individual agents, and lets a participant take over a character. State changes are logged and past runs can be replayed, which lets a team inspect how interactions unfolded without trying to reproduce every model decision.

The `create-world` skill generates scene and UI YAML that can be edited by hand; `worldseed validate` checks a scene before launch. Model selection for the referee goes through LiteLLM, with OpenAI, Anthropic, and Ollama listed as examples. The Autoresearch demo illustrates how one scene tracked hypotheses, commits, experiments, citations, and reviewer reasoning while optimizing TinyStories validation loss. That run is an example of scene-specific provenance, not a general engine benchmark or evidence that arbitrary scenes will produce useful artifacts.

### Trade-offs & Limitations
A conventional task-graph orchestrator is easier to reason about when step order, handoffs, and completion criteria are known up front. WorldSeed is a better fit when interactions should follow from shared state and limited visibility, but teams must design the action space, perception filters, and rules rather than just connect tasks. A purely deterministic simulator offers stronger repeatability; WorldSeed uses semantic judgment for cases the DSL does not cover. Replaying a recorded run is not the same as rerunning a scene and getting the same outcome.

Keeping frequent actions in the DSL limits reliance on model calls. As more actions need the referee, provider latency, quotas, cost, and inconsistent judgments matter more. A non-blocking clock preserves progress but does not guarantee that every agent contributes to each tick. Before adopting it for longer runs, test how visibility rules and structured effects interact in the target scene. The pytest configuration also notes cross-test pollution from server route singletons under sequential execution, a concrete isolation concern for teams extending the server.

### Hardware & Deployment Guide
The local self-hosted path uses Python 3.11+, Node.js 18+, and `uv`. From the checkout, run `uv sync --extra dm`, then run `npm install` and `npm run build` in `frontend/`. Copy `.env.example` to `.env` and configure the chosen provider. Start a bundled scene with `uv run worldseed play configs/ai_layoffs.yaml` and open `http://localhost:8000`. The CLI also exposes the separate `validate` command for checking a scene before launch.

Self-hosting the engine does not automatically self-host the models. A hosted provider moves inference off the WorldSeed machine; a local backend such as Ollama is an option for the referee, but a fully offline run also requires the character agents and any tools they call to operate locally. Size for active agents, inference concurrency, and run-log growth; local inference hardware depends on the models you choose. The package declares version `0.1.0`, but no GitHub release is listed, so the package version is not evidence of a release cadence.
```

## Key Capabilities
```text
- Scene configuration: YAML defines entities, actions, rules, and per-character perception.
- Action resolution: the scene DSL handles predictable outcomes; an LLM referee returns structured effects for uncertain ones.
- Tick scheduling: slow or offline agents do not have to block world advancement.
- Agent integrations: documented paths cover OpenClaw and Codex subagents; the optional `dm` extra adds LiteLLM and Instructor.
- Runtime control: the dashboard supports global observation, private intervention, and taking over a character.
- Run inspection: state changes are logged for replay, and `worldseed validate` checks scene configuration before launch.
```

## Quick Start / Clone
```bash
git clone https://github.com/AIScientists-Dev/WorldSeed && cd WorldSeed
uv sync --extra dm
cd frontend && npm install && npm run build && cd ..

cp .env.example .env
# Add your API key (any LiteLLM provider: OpenAI, Anthropic, Ollama, etc.)

uv run worldseed play configs/ai_layoffs.yaml
```
