Skip to content

Commit 10d2413

Browse files
committed
Add session-memory-optimizer plugin
Session management plugin that solves long-session performance degradation. Features: - /session-status: Health monitoring dashboard - /session-checkpoint: Save/restore context checkpoints - /session-optimize: Context pruning recommendations - PreCompact hook: Auto optimization guidance Addresses documented issues with Claude Code performance after 2-5 hours.
1 parent e5856f9 commit 10d2413

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Install or disable them dynamically with the `/plugin` command — enabling you
6161
- [lyra](./plugins/lyra)
6262
- [model-context-protocol-mcp-expert](./plugins/model-context-protocol-mcp-expert)
6363
- [problem-solver-specialist](./plugins/problem-solver-specialist)
64+
- [session-memory-optimizer](./plugins/session-memory-optimizer)
6465
- [studio-coach](./plugins/studio-coach)
6566
- [ultrathink](./plugins/ultrathink)
6667

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Session Memory Optimizer
2+
3+
Optimize Claude Code session performance with health monitoring, context pruning guidance, and checkpoints for long coding sessions.
4+
5+
## Problem Solved
6+
7+
Claude Code experiences performance degradation after 2-5 hours of continuous work:
8+
- Response times increase
9+
- Context confusion occurs
10+
- Pro Max subscribers ($199/mo) get degraded results
11+
12+
This plugin provides proactive session management to prevent degradation.
13+
14+
## Features
15+
16+
### Commands
17+
- `/session-status` - Display session health metrics and recommendations
18+
- `/session-checkpoint <name>` - Save current session context as a checkpoint
19+
- `/session-restore [name]` - Restore context from a checkpoint
20+
- `/session-optimize` - Analyze context and get pruning recommendations
21+
22+
### Hooks
23+
- **PreCompact** - Injects optimization guidance when Claude auto-compacts
24+
- **SessionStart** - Notifies of available checkpoints from previous sessions
25+
- **SessionEnd** - Auto-saves checkpoint for sessions >30 minutes
26+
27+
### Skills
28+
- **Context Management** - Best practices for maintaining session performance
29+
30+
## Installation
31+
32+
```bash
33+
claude plugins add github:ojallington/session-memory-optimizer
34+
```
35+
36+
## Usage
37+
38+
```bash
39+
# Check session health
40+
/session-status
41+
42+
# Save checkpoint before major work
43+
/session-checkpoint before-refactor
44+
45+
# Get optimization recommendations
46+
/session-optimize
47+
48+
# Restore after restart
49+
/session-restore before-refactor
50+
```
51+
52+
## Links
53+
54+
- [GitHub Repository](https://github.com/ojallington/session-memory-optimizer)
55+
- [Documentation](https://github.com/ojallington/session-memory-optimizer#readme)
56+
57+
## License
58+
59+
MIT

0 commit comments

Comments
 (0)