docs/public/endless-mode.mdx
Endless Mode is a biomimetic memory architecture that solves Claude's context window exhaustion problem. Instead of keeping full tool outputs in the context window (O(N²) complexity), it:
Status: FUNCTIONAL BUT EXPERIMENTAL
Current Branch: beta/endless-mode (ahead of main)
Recent Activity:
tool_use_id column for observation correlation{
"CLAUDE_MEM_ENDLESS_MODE": "false", // Default: disabled
"CLAUDE_MEM_ENDLESS_WAIT_TIMEOUT_MS": "90000" // 90 second timeout
}
Enable via: Manual checkout of beta branch (see instructions below)
Tool Executes → Pre-Hook (track ID) → Tool Completes →
Save-Hook (BLOCKS) → Worker processes → SDK generates observation →
Event fired → Hook receives observation → Injects markdown →
Clears input → Context reduced
From the documentation:
Endless Mode is currently only available on the beta branch. To try it:
# Navigate to your claude-mem installation
cd ~/.claude/plugins/marketplaces/thedotmack/
# Checkout the beta branch
git checkout beta/endless-mode
# Install dependencies
npm install
# Restart the worker
npm run worker:restart
To return to stable:
cd ~/.claude/plugins/marketplaces/thedotmack/
git checkout main
npm install
npm run worker:restart
The implementation is architecturally complete and functional, but remains experimental pending production validation of the theoretical efficiency gains.