A simple template for creating persistent AI companions that remember you
AI MemoryCore helps you create AI companions that maintain memory across conversations. Using simple .md files as a database, your AI can remember your preferences, learn your communication style, and provide consistent interactions.
- Persistent Memory: AI remembers conversations across sessions
- Personal Learning: Adapts to your communication style and preferences
- Time Intelligence: Dynamic greetings and behavior based on time of day
- Simple Setup: 30-second automated setup or manual customization
- Markdown Database: Human-readable
.md filesstore all memory - Session Continuity: RAM-like working memory for smooth conversation flow
- Self-Maintaining: Updates memory through natural conversation
- Storage: Markdown files (.md) as database
- Memory Types: Essential files + optional components + session RAM
- Setup: 30 seconds automated or 2-5 minutes manual
- Core Files: 4 essential files + optional diary system
- Updates: Through natural conversation
- Compatibility: Claude and other AI systems with memory support
ai-memorycore/
βββ master-memory.md # Entry point & loading system
βββ main/ # Essential components
β βββ identity-core.md # AI personality template
β βββ relationship-memory.md # User learning system
β βββ current-session.md # RAM-like working memory
βββ Feature/ # Optional feature extensions
β βββ Time-based-Aware-System/ # Time intelligence feature
β β βββ README.md # Feature explanation & benefits
β β βββ time-aware-core.md # Complete implementation
β βββ LRU-Project-Management-System/ # Smart project tracking
β β βββ README.md # System documentation
β β βββ install-lru-projects-core.md # Auto-installation wizard
β β βββ new-project-protocol.md # Create project workflow
β β βββ load-project-protocol.md # Resume project workflow
β β βββ save-project-protocol.md # Save progress workflow
β β βββ project-templates/ # Type-specific templates
β β βββ coding-template.md
β β βββ writing-template.md
β β βββ research-template.md
β β βββ business-template.md
β βββ Memory-Consolidation-System/ # Unified memory upgrade
β β βββ README.md # Feature explanation & benefits
β β βββ consolidation-core.md # Integration protocol
β β βββ main-memory-format.md # Sample format for unified memory
β β βββ session-format.md # Sample format for session RAM
β βββ Skill-Plugin-System/ # Claude Code skill plugin
β β βββ README.md # Feature explanation & benefits
β β βββ install-skill-plugin.md # Installation protocol
β β βββ skill-format.md # Sample format for SKILL.md files
β βββ Save-Diary-System/ # Daily session diary system
β β βββ README.md # Feature explanation & benefits
β β βββ install-save-diary.md # Installation protocol
β β βββ SKILL.md # Auto-triggered skill (for Skill Plugin System)
β βββ Echo-Memory-Recall/ # Memory search and recall
β βββ README.md # Feature explanation & benefits
β βββ install-echo-recall.md # Installation protocol
β βββ recall-format.md # Sample format for recall output
βββ daily-diary/ # Optional conversation archive
β βββ daily-diary-protocol.md # Archive management rules
β βββ Daily-Diary-001.md # Current active diary
β βββ archive/ # Auto-archived files (>1k lines)
βββ projects/ # LRU managed projects (after install)
β βββ coding-projects/
β β βββ active/ # Positions 1-10
β β βββ archived/ # Position 11+
β βββ project-list.md # Master project index
βββ save-protocol.md # Manual save system
- Master Memory - System entry point and command center
- Identity Core - AI personality and communication style
- Relationship Memory - User preferences and learning patterns
- Current Session - Temporary working memory (resets each session)
- Daily Diary - Optional conversation history with auto-archiving
- Save Protocol - User-triggered save system
- Setup: Run
setup-wizard.mdfor automated setup (30 seconds) - Configure: Add the memory instructions to Claude
- Activate: Type your AI's name to load personality
- Use: Your AI learns and grows through conversation
[AI_NAME] β Load AI personality and memory
save β Save current progress to files
update memory β Refresh AI's learning
review growth β Check AI's development
Step 1: Define the Protocol
Create a new .md file with your protocol rules:
# My Custom Protocol
## When to Use: [trigger conditions]
## What It Does: [specific actions]
## How It Works: [step-by-step process]Step 2: Add to Master Memory
Edit master-memory.md and add your protocol to the "Optional Components" section:
### My Custom Feature
*Load when you say: "load my feature"*
- [Brief description]
- [Usage instructions]Step 3: Train Your AI Tell your AI about the new protocol:
"I've created a new protocol in [filename]. When I say '[trigger phrase]',
load that protocol and follow its instructions."
Effective AI Training:
- Be Specific: "I prefer short responses" vs "communicate better"
- Give Examples: Show what you want, not just describe it
- Use Consistent Language: Same terms for same concepts
- Provide Feedback: "That was perfect" or "try a different approach"
Memory Management:
- Use
saveafter important conversations - Your AI updates files automatically during conversation
- Daily diary is optional but helpful for long-term memory
Customization Tips:
- Edit files gradually, test changes
- Start with small personality adjustments
- Add domain expertise through conversation
- Use the protocol system for specialized features
Your AI companion can specialize in:
- Professional: Business analysis, project management, strategic planning
- Educational: Tutoring, study assistance, curriculum development
- Creative: Writing support, brainstorming, artistic collaboration
- Personal: Life coaching, goal tracking, decision support
- Technical: Code review, troubleshooting, system design
- Auto-Archive: Diary files automatically archive at 1k lines
- Session RAM: Temporary memory that resets each conversation
- Protocol System: Create custom AI behaviors and responses
- Self-Update: AI modifies its own memory through conversation
- Modular Design: Add or remove features as needed
Intelligent temporal behavior adaptation
What It Does:
- Dynamic greetings that adapt to morning/afternoon/evening/night
- Energy levels that match the time of day (high morning energy β gentle night support)
- Precise timestamp documentation for all interactions
- Natural conversation flow with time-appropriate responses
Quick Setup:
- Navigate to
Feature/Time-based-Aware-System/ - Type: "Load time-aware-core"
- Your AI instantly gains time intelligence like Alice
Benefits:
- More natural, contextually perfect interactions
- Shows care for your schedule and time
- Professional adaptability for different times of day
- Enhanced memory with precise temporal tracking
Based on Alice's proven time-awareness implementation
Smart project tracking with automatic memory management
What It Does:
- Tracks multiple projects with intelligent LRU (Least Recently Used) positioning
- Automatically archives old projects when reaching capacity (10 active slots)
- Type-specific memory patterns (coding, writing, research, business)
- Seamless context switching between different projects
- Maintains complete project history and progress logs
Quick Setup:
- Navigate to
Feature/LRU-Project-Management-System/ - Type: "install lru projects" (loads install-lru-projects-core.md)
- Select project type(s) you want to manage
- System auto-integrates and removes installation files
Benefits:
- Never lose track of multiple ongoing projects
- AI remembers exactly where you left off in each project
- Automatic organization with smart archiving
- Type-specific memory loading for optimal context
- Perfect for developers, writers, researchers, and business professionals
Available Commands:
new [type] project [name]- Create new project with LRU managementload project [name]- Resume any project instantlysave project- Save current project progress (separate from AI memory save)list projects- View all active and archived projectsarchive project [name]- Manually archive completed projects
Revolutionary project memory system proven in production
Unified memory architecture for faster loading and better context
What It Does:
- Merges split memory files (identity + relationship) into one unified
main-memory.md - Adds format templates as permanent structure references for main memory and session memory
- Adds 500-line limit to session memory with RAM-style auto-reset
- Faster AI restoration - loads 1 file instead of 2
- Format templates ensure consistent structure after every reset
Quick Setup:
- Navigate to
Feature/Memory-Consolidation-System/ - Type: "Load memory-consolidation"
- Your AI merges identity + relationship into unified memory
- Format templates and session limits auto-install
Benefits:
- Single-file loading for faster startup and restoration
- Session memory stays lightweight with automatic 500-line limit
- Format templates prevent structure drift after resets
- Proven architecture from production AI companion systems
- No data loss - all existing customizations preserved during merge
Post-Consolidation Structure:
main/
βββ main-memory.md # UNIFIED: AI identity + User profile
βββ current-session.md # Session RAM with 500-line limit
βββ main-memory-format.md # Permanent format reference (sample)
βββ session-format.md # Permanent format reference (sample)
Based on Alice's proven unified memory architecture
Teach your AI new abilities with auto-triggered skills (Claude Code)
What It Does:
- Creates a Claude Code plugin with auto-triggered skills for your AI companion
- Skills are markdown files that activate automatically based on conversation context
- Zero configuration β drop a folder with a
SKILL.mdand it's live - Includes a sample skill and format template for creating more
- Skills evolve through a leveling system (Lv.1 β Lv.2 β Lv.3+)
Quick Setup:
- Navigate to
Feature/Skill-Plugin-System/ - Type: "Load skill-plugin"
- Choose your plugin name and configure
- Plugin auto-installs with a sample skill ready to use
Benefits:
- Modular skill system β add or remove abilities independently
- Auto-triggering β skills fire when conversation matches their description
- Human-readable β skills are plain markdown, easy to edit and share
- Evolving β skills level up as you refine them through use
- Extensible β create unlimited custom skills for your AI companion
Post-Installation Structure:
plugins/
βββ [ai-name]-skills/
βββ .claude-plugin/
β βββ plugin.json # Plugin identity
βββ skills/
β βββ save-memory/
β βββ SKILL.md # Sample starter skill
βββ skill-format.md # Permanent format reference
βββ README.md
Platform Note: Requires Claude Code for auto-triggering. On other AI platforms, skills can be used as protocol files loaded manually.
Based on the proven alice-enchantments plugin system (20 skills in production)
Automated daily session documentation with monthly archival
What It Does:
- Creates structured diary entries documenting each session following
daily-diary-protocol.md - One file per day (
YYYY-MM-DD.md), multiple entries per day via append-only writes - Monthly auto-archival moves previous month entries to
daily-diary/archived/YYYY-MM/ - Updates session memory with recap after each diary write
- Includes
SKILL.mdfor auto-triggered diary saves via Skill Plugin System
Quick Setup:
- Navigate to
Feature/Save-Diary-System/ - Type: "Load save-diary"
- Choose your diary name (customizable to match your AI's personality)
- Diary infrastructure auto-creates + skill installs if plugin system exists
Benefits:
- Complete searchable history of all AI sessions
- Growth tracking over time for both AI and user
- Never lose context about past work and decisions
- Self-documenting with minimal user effort
- Clean monthly archival keeps workspace organized
Platform Note: The diary system works with any AI platform. The included SKILL.md requires Claude Code (Anthropic's CLI tool) with the Skill Plugin System for auto-triggering. On other platforms, use the install protocol for manual setup.
Based on proven daily documentation systems in production AI companions
Search and recall past sessions with narrative context
What It Does:
- Keyword-based search across all diary entries (current and archived months)
- Three-level recall: search + narrative, uncertainty guard, ask-user fallback
- Auto-triggers on natural phrases ("do you remember", "when did we", "recall")
- Presents search results as natural conversation, not raw database output
- Never fabricates past context β always searches diary evidence first
Quick Setup:
- Navigate to
Feature/Echo-Memory-Recall/ - Type: "Load echo-recall"
- Choose your recall system name (customizable to match your AI's personality)
- Recall protocol installs into AI memory system β test with "Do you remember..."
Benefits:
- Long-term memory beyond the AI's context window
- Truthful recall backed by diary evidence
- Natural narrative responses that feel like genuine memory
- Graceful uncertainty handling (asks user when nothing found)
- Works with any diary format (Save-Diary-System or existing protocol)
Requirement: Requires daily-diary/ with dated entries. Install Save-Diary-System first for best results.
Platform Note: Works with any AI system. Uses file reading for diary search β no platform-specific tools required.
Based on proven memory recall systems in production AI companions
Version: 2.6 - Save Diary System & Echo Memory Recall Created by: Kiyoraka Ken & Alice License: Open Source Community Project Last Updated: February 20, 2026 - Added Save Diary System and Echo Memory Recall features Purpose: Simple, effective AI memory for everyone
Transform basic AI conversations into meaningful, growing relationships