blas0/UnseveredMemory
blas0/UnseveredMemory · 1 plugin
Marketplace Simple, organic, lightweight yet purposeful memory system for Claude Code.
Install
The repo has no one-line install. Follow its README.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@blas0.
- 1unsevered-memoryPersistent memory system for Claude Code with enforced context
/plugin install unsevered-memory@blas0
Files
Changelog
- Added support for Claude plugins + npx packaging
What Makes This Different
Most memory systems inject context at session start and hope Claude remembers. This doesn't work because:
- Context compaction loses early instructions
- Claude has no obligation to follow suggestions
- Long sessions forget the protocol
Unsevered Memory solves this with enforcement:
| Hook | When | Purpose |
|---|---|---|
SessionStart |
Session begins | Load full context |
UserPromptSubmit |
Every prompt | Inject state reminder |
SessionEnd |
Session ends | Archive + remind |
The UserPromptSubmit hook survives context compaction by being injected fresh on every message.
Architecture
Enforcement Layer
├── SessionStart ──────> Load context.md + scratchpad
├── UserPromptSubmit ──> [Memory] Task: X | Scratchpad: Y lines
└── SessionEnd ────────> Archive scratchpad, remind to update
File Structure
├── .claude/memory/ # Dynamic (every session)
│ ├── context.md # Current state, next steps
│ ├── scratchpad.md # Live session operations
│ ├── decisions.md # Architectural choices
│ └── sessions/ # Daily archives
│
└── .ai/ # Static (when patterns emerge)
├── core/ # Tech stack, architecture
├── patterns/ # Reusable solutions (after 3+ uses)
└── workflows/ # Dev processes
Installation
Choose your preferred method:
Option A: Claude Plugin (Recommended)
# Add marketplace
/plugin marketplace add blas0/UnseveredMemory
# Install plugin
/plugin install unsevered-memory@blas0Then per-project:
cd /path/to/your/project
/unsevered-memory projectOption B: npx
# Global setup
npx unsevered-memory init
# Per-project setup
cd /path/to/your/project
npx unsevered-memory projectOption C: Manual
git clone https://github.com/blas0/UnseveredMemory.git
cd UnseveredMemory
./setup-global.shThen per-project:
cd /path/to/your/project
~/.claude/setup-project.shWhat Gets Installed
Global (~/.claude/):
CLAUDE.md- Global memory protocolsettings.json- Hook configuration (3 hooks)hooks/- memory-load, memory-remind, memory-saveskills/orchestrate/- Workflow instructionscommands/orchestrate.md- Orchestrator command
Per-Project:
project/
├── CLAUDE.md # Project instructions
├── .ai/ # Static documentation
│ ├── core/
│ │ ├── technology-stack.md
│ │ └── architecture.md
│ ├── patterns/
│ └── workflows/
└── .claude/
└── memory/
├── context.md # Cross-session state
├── scratchpad.md # Live session log
├── decisions.md # Decision log
└── sessions/ # Daily archives
Workflow
Session Start
- Hook loads
context.mdandscratchpad.md - Claude sees current state and any unfinished work
- Hook hints about
.ai/documentation
During Session
Every prompt shows:
[Memory] Task: Fix auth bug | Scratchpad: 24 lines | .ai/ updated: 2024-01-15
Claude writes to scratchpad.md as it works:
## Session: 2024-01-15 14:30
### Operations
- [14:35] Found issue in validateToken() at src/auth.ts:142
- [14:40] Fixed: was comparing wrong field
### Decisions
- Keep backward compatibility by checking both fieldsClaude updates .ai/ when patterns emerge (3+ uses).
Session End
- Hook archives scratchpad to
sessions/YYYY-MM-DD.md - Hook reminds to update
context.md - Claude updates context with current state
Orchestrator Mode
For complex multi-step tasks:
/orchestrate Implement user authentication with JWT
The orchestrator:
- Reads all memory files
- Breaks task into subtasks
- Delegates to specialized agents
- Updates memory after each step
- Never loses context
File Purposes
| File | Content | Update Frequency |
|---|---|---|
context.md |
Current state, next steps | End of session |
scratchpad.md |
Operations, findings | During session |
decisions.md |
Architectural choices | When decisions made |
.ai/core/ |
Tech stack, architecture | When they change |
.ai/patterns/ |
Reusable solutions | After 3+ uses |
Repository Structure
UnseveredMemory/
├── .claude-plugin/ # Plugin manifest
│ ├── plugin.json
│ └── marketplace.json
├── package.json # npm package
├── bin/cli.js # npx entry point
├── src/commands/ # CLI commands
├── setup-global.sh # Manual installer
├── scripts/ # Hook scripts (plugin)
├── hooks/ # Hook scripts + hooks.json
├── skills/
│ └── orchestrate/
│ └── SKILL.md
├── commands/
│ └── orchestrate.md
└── templates/
└── [all templates]
Philosophy
- Enforced - UserPromptSubmit hook survives context compaction
- Simple - Bash + markdown, no databases, no APIs
- Offline - Everything is local files
- Native - Uses Claude Code's built-in hooks system
- Proactive - Claude updates .ai/ during work, not after
Enforcement Levels
| Approach | Reliability |
|---|---|
| CLAUDE.md only | ~30% |
| + SessionStart | ~50% |
| + UserPromptSubmit | ~75% |
| + /orchestrate orchestrator | ~95% |
Uninstall
# npx
npx unsevered-memory uninstall
# Manual
rm -rf ~/.claude/hooks/memory-*.sh
rm -rf ~/.claude/skills/orchestrate
rm -rf ~/.claude/commands/orchestrate.md
# Project files (optional)
rm -rf .claude/memory
rm -rf .ai{
"name": "blas0",
"owner": {
"name": "blas0",
"url": "https://github.com/blas0"
},
"plugins": [
{
"name": "unsevered-memory",
"source": ".",
"description": "Persistent memory system for Claude Code with enforced context",
"version": "0.0.0"
}
]
}Facts
- Kind
- Marketplace
- Repo
- blas0/UnseveredMemory
- Group
- Uncategorized
- Marketplace name
- blas0
- Owner
- blas0
- License
- MIT
- Language
- Shell
- Created
- 2025-12-08
- Forks
- 3
- Topics
- ai-coding, claude, claude-code, developer-tools, hooks, markdown, memory, persistence, productivity
- Plugins
- 1
- 1f/prompts.chatf/prompts.chatf.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
- 2affaan-m/everything-claude-codeaffaan-m/everything-claude-codeThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
- 3obra/superpowersobra/superpowersAn agentic skills framework & software development methodology that works.
- 4anthropics/skillsanthropics/skillsPublic repository for Agent Skills
- 5anthropics/claude-codeanthropics/claude-codeClaude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
- 6nextlevelbuilder/ui-ux-pro-max-skillnextlevelbuilder/ui-ux-pro-max-skillAn AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
