Skip to content

illeace/bot-plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bot-Plot: World-Agnostic Character & Story System

Bot-Plot is a framework for creating and evolving character-driven stories and LLM personas. This system is designed to be world-agnostic, providing the data structures and rules for any genre (Fantasy, Sci-Fi, etc.).

LLM Agents: If you are an AI agent loading this project, please read AGENTS.md first for your operational instructions.

Project Structure

  • engine/: The core system files (the "Engine").
    • rules/: Game mechanics, event loop, and bootstrap protocols.
    • templates/: Markdown templates for all data types.
  • story/: Instance-specific world data (the "Save Games").
    • [world-name]/: A specific world "run".
      • status.md: World dashboard (tracks characters and plot arcs).
      • world/: World and setting descriptions.
        • world.md: High-level world/genre description.
        • setting.md: Specific setting for this story.
        • facts.md: List of established world facts for consistency.
      • characters/: Character-specific data.
        • [name]/:
          • sheet.md: d20 character sheet.
          • memories.md: Event memories.
          • relationships.md: List of other characters and relationship description.
      • events/: Logs of generated events.
        • _log.md: A ledger describing the daily event(s) (one paragraph per event).
        • day-nnnn.md: Detailed daily event descriptions (e.g., day-0001.md).
      • user-notes/: Directory for private user notes (not for agent use).

Getting Started

1. Bootstrapping a New World

To start a new project, follow these steps:

  • Choose a Setting: Decide on a theme (e.g., Space Opera, Post-Apocalyptic, etc.).
  • Define the World: Use engine/templates/world.md to create your world/world.md in a new story/[world-name] folder.
  • Set the Scene: Create a world/setting.md and world/facts.md.
  • Create Characters: For each character, create a folder in story/[world-name]/characters/ and populate sheet.md, memories.md, and relationships.md using the templates in engine/templates/.

2. The Nightly Event Loop

The core of Bot-Plot is the Event Loop, which evolves the story over time.

  • Read Context: Load all current data files (world, characters, events).
  • Generate Event: Use the rules in engine/rules/event-loop.md to resolve a new story moment.
  • Update Files: Record the event in events/day-nnnn.md, summarize it in events/_log.md, and update character files and world facts as needed.

3. Roleplaying as a Character

The LLM agent can adopt any character's persona by loading their sheet.md, memories.md, and relationships.md. This context provides a rich background and evolving personality for interactions.

Core Rules

The system uses a Narrative d20 mechanic for resolving checks and events. See engine/rules/core-mechanics.md for details on stats, difficulty classes, and outcomes.

Example Project

A complete example of a Low Fantasy Fishing Village is provided in story/fishing-village/. Use this as a reference for your own projects.

About

A system for generating a world, characters, and stories that can be used to give your LLM agent backstory, personality, and evolving life.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors