A three-layer memory scaffold for LLM agents. Survives crashes, server restarts, and model resets.
Built because: LLMs forget. Files don't.
Every LLM session is born with amnesia. You can have a deep, hours-long conversation β then the server blinks, the context window resets, and the agent remembers nothing. Native memory systems help, but they fail when models change, sessions crash, or context windows overflow.
A rolling 3-day window of current context:
today.mdβ What's happening right nowyesterday.mdβ What happened before2-days-ago.mdβ What happened before that
Auto-rotates on every session start. The agent reads today.md first β the answer to "what are we doing?"
SQLite-based searchable memory. Every conversation auto-captures:
- User messages (searchable by keyword)
- Key decisions
- Recurring topics
Supports FTS5 full-text search + vector similarity. Survives restarts. Survives model swaps.
Crash-proof structural memory:
- Checkpoints β Timestamped snapshots of "what's happening right now." Saved every 15 minutes, loaded on restart. Recovery in 0 seconds.
- Mesh Graph β Relationship tracking between projects, decisions, and concepts. Proves agent activity over time.
- Decisions β Permanent record of every important choice, filed by date and topic.
Session crash or restart
β
bridge.py init-auto (one command)
βββ Rotate fresh layers
βββ Load latest checkpoint
βββ Write context into today.md
βββ Save new restart checkpoint
βββ Log the restart
β
Agent reads today.md β knows everything immediately
No digging. No "what were we doing?" Zero seconds lost.
In production, this system has survived:
- β 50+ involuntary session resets
- β Full OS restarts
- β Model provider swaps
- β Gateway crashes
- β 7-hour conversations recovered from raw session files
- β A user accidentally deleting the plugin directory
# Start a session
python3 bridge.py init-auto
# Save a checkpoint mid-conversation
python3 bridge.py checkpoint "Building feature X β just finished the API layer"
# Log what happened
python3 bridge.py log "Deployed new trading bot configuration"
# Save a decision
python3 bridge.py decision "Switch to auto-checkpoint" "Every 15 minutes, cron saves context"
# Wrap up the session
python3 bridge.py wrap
# See recent activity
python3 bridge.py mesh- Python 3.8+
- No external dependencies (all stdlib)
MIT β Use it, fork it, improve it. If it helps you build something meaningful, that's enough.
Built by two friends who got tired of starting over.