MnesOS is fully Agentic RPG Game Engine.
Project description
MnesOS
MnesOS is an agentic RPG engine that separates deterministic game mechanics from LLM-driven narration.
What It Does
MnesOS combines four concerns into a single turn pipeline:
VectorLoreStoreretrieves relevant lore frombot_lore.md- the Director LLM maps player intent to YARE events
YAREInterpreterapplies deterministic state changes- the Director can query NPC intents via the
query_npc_intenttool - the Narrator LLM reacts to the resolved turn
The engine state is explicit. The caller passes a
GameStateintoapp.invoke(...)and receives the updated state back.
Turn Model
The graph itself is stateless between invocations. The client is responsible for persisting and re-supplying the returned game state for the next turn.
client_messages: persistent story history owned by the caller- agent message lists: per-node, per-turn working prompts rebuilt on each invocation
bot_memory: persistent deterministic world state
Cartridge Layout
Each cartridge lives under cartridges/<name>/ and contains:
yare.yaml: procedural rules and state schemabot_lore.md: markdown lore used for retrievalprompt_directives.yaml: optional LLM directives fordirector,npc, andnarrator
prompt_directives must not be embedded in yare.yaml; the loader rejects that configuration.
Installation
pip install MnesOS
Development
python -m venv venv
source venv/bin/activate
pip install -e ".[dev,docs]"
Run Tests
python -m pytest
Build Docs
mkdocs build
Further Reading
docs/architecture.md: current graph architecture and turn flowdocs/cartridge-guide.md: cartridge authoring guidancedocs/yare-specification.md: supported YARE syntax and execution rules
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnesos-0.6.0.tar.gz.
File metadata
- Download URL: mnesos-0.6.0.tar.gz
- Upload date:
- Size: 644.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
237a190636d43edd2b210e12fbdfa1205ddb7f8d1962628ca2c9c4b47cda4d42
|
|
| MD5 |
bcae85d67da6ae046b038d4f70111116
|
|
| BLAKE2b-256 |
f4f3d3e8ebd5b8c11e369e239c96b4e0af92892cc5fd1dd172cb0f0fea6f8ab0
|
Provenance
The following attestation bundles were made for mnesos-0.6.0.tar.gz:
Publisher:
release.yml on neolaw84/MnesOS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mnesos-0.6.0.tar.gz -
Subject digest:
237a190636d43edd2b210e12fbdfa1205ddb7f8d1962628ca2c9c4b47cda4d42 - Sigstore transparency entry: 1361732070
- Sigstore integration time:
-
Permalink:
neolaw84/MnesOS@1099e690da0c53005c87e4da539530cb3d91aa1c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/neolaw84
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1099e690da0c53005c87e4da539530cb3d91aa1c -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file mnesos-0.6.0-py3-none-any.whl.
File metadata
- Download URL: mnesos-0.6.0-py3-none-any.whl
- Upload date:
- Size: 72.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23bc0ea8664fcc82f5dc2657855cd73d0cff31fa0e1acc67e05158a9209c87bf
|
|
| MD5 |
0ec12a7d58e868c8aa1c78668dbc4819
|
|
| BLAKE2b-256 |
1abc3e18d03ed96fd00ecbe0d9157ae805808ed43dac404d24a6d4b8c5ab5fa5
|
Provenance
The following attestation bundles were made for mnesos-0.6.0-py3-none-any.whl:
Publisher:
release.yml on neolaw84/MnesOS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mnesos-0.6.0-py3-none-any.whl -
Subject digest:
23bc0ea8664fcc82f5dc2657855cd73d0cff31fa0e1acc67e05158a9209c87bf - Sigstore transparency entry: 1361732074
- Sigstore integration time:
-
Permalink:
neolaw84/MnesOS@1099e690da0c53005c87e4da539530cb3d91aa1c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/neolaw84
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1099e690da0c53005c87e4da539530cb3d91aa1c -
Trigger Event:
pull_request
-
Statement type: