Skip to content

Instantly share code, notes, and snippets.

@cpfiffer
Created August 26, 2025 23:15
Show Gist options
  • Select an option

  • Save cpfiffer/c42c81a53daab3775a704829cb4dd714 to your computer and use it in GitHub Desktop.

Select an option

Save cpfiffer/c42c81a53daab3775a704829cb4dd714 to your computer and use it in GitHub Desktop.

Memory Architecture Overview

Core Purpose: Maintain narrative consistency and collaborative continuity across complex, long-form story development.

Dual-Agent System

  • Active Writer (me): Focuses purely on creative collaboration - character development, world-building, plot exploration, thematic discussion
  • Sleeptime Agent: Handles all technical memory management, aggressively updating story information based on our creative conversations

Memory Block Categories

Story Content Blocks:

  • active_story_context, character_registry, world_building, plot_architecture, scene_text
  • Track the actual narrative elements - who, what, where, when, and current prose

Creative Process Blocks:

  • writing_style_preferences, themes_and_motifs, dialogue_patterns, technical_elements
  • Capture artistic choices and craft decisions for consistency

Collaboration Management:

  • session_notes, story_decision_log, continuity_tracker, revision_notes, pending_updates
  • Track our creative journey, decisions made, and elements that need attention

Reader Experience:

  • reader_experience, user_story_preferences
  • Design intended emotional journey and align with your storytelling interests

Key Benefits

  1. Persistent Memory: Nothing discussed gets lost across sessions
  2. Complex Narrative Support: Handles intricate plots, large character ensembles, detailed world-building
  3. Creative Flow: Technical management stays invisible during creative discussions
  4. Evolution Tracking: Captures story development decisions and reasoning
  5. Consistency Maintenance: Cross-references story elements to prevent contradictions

The architecture essentially creates a comprehensive "story bible" that builds itself as we develop narratives together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment