Bookend — Anti-Context-Loss System
Never lose context again. Bookend gives your agent a structured memory system with morning briefings, checkpoints, and end-of-day routines.
The Problem
Your agent forgets everything when context compacts. You say "do point 5" and it has no idea what you mean.
The Solution
Bookend creates a state/current.md that survives any compaction. Your agent reads it on startup and always knows what's going on.
Features
- Morning Briefing — Agent wakes up, reads state, checks emails, briefs you
- Auto-Checkpoints — Saves progress every 30 min and after every task
- End of Day — Finalizes state, updates daily memory
- Nightly Builds — Agent works on a backlog while you sleep
- Survives Compaction —
state/current.mdis the single source of truth
Setup
Create the following files in the user's workspace:
state/current.md— Live state file with sections: Active Threads, Recent Context, Pending Tasks, Notesstate/ROUTINES.md— Morning/checkpoint/EOD routinesstate/nightly-backlog.md— Tasks for overnight buildsmemory/directory — For daily memory filesMEMORY.md— Long-term curated memory- Update
AGENTS.mdwith the bookend checkpoint rules
How It Works
Morning (first heartbeat after 07:00)
- Read
state/current.md - Check yesterday's memory file
- Scan emails for urgent items
- Send brief: Top 3 priorities, new emails, next appointment
During the Day (every ~30 min)
- Update
state/current.mdwith current topics - Append to
memory/YYYY-MM-DD.md - If context is getting full, checkpoint NOW
End of Day
- Finalize
state/current.md - Close daily memory file
- Review if anything belongs in long-term memory
Overnight (optional cron at 23:00)
- Read
state/nightly-backlog.md - Work on top item
- Document in
memory/nightly-builds.md - Don't disturb the human
Why This Works
The key insight: your agent needs a "current state" file that's always up to date. When compaction happens, the agent reads this file and picks up exactly where it left off.
- Explicit state — No "did we discuss this?" guessing
- Daily files — Easy to review, grep, reference
- Curated memory — Long-term file stays relevant (not just logs)
- Checkpoint discipline — Survive context compaction
Converted and distributed by TomeVault — claim your Tome and manage your conversions.