Christian Gick
|
64e90376f7
|
feat(CF-572): Implement 3-layer defense system for session notes recovery
Phase 1: Orphan Detection & Recovery
- Add sessionRecoverOrphaned() MCP tool to detect sessions active >2 hours
- Add sessionRecoverTempNotes() MCP tool to recover notes from temp files
- Create notes-parser utility to parse markdown notes from .claude-session/*/notes.md
- Integrate orphan recovery into session-start script (before new session init)
- Orphaned sessions marked as 'abandoned' status with ended_at timestamp
Phase 2: Periodic Background Sync (Safety Net)
- Create session-notes-sync daemon script for background syncing (runs every 5 minutes)
- Create LaunchD plist configuration (eu.agiliton.session-notes-sync.plist)
- Create install-session-sync installer script for LaunchD registration
Phase 3: Task Context Capture (Enhancement)
- Auto-capture task description as session note when task created (prevents context loss)
- Linked via session_note with type='context' for traceable recovery
- Updated CLAUDE.md with CF-572 warning about empty task descriptions
**Verification:**
- Build succeeds with TypeScript compilation
- MCP tool definitions added to task-mcp
- Integration points: session-start, session-notes-sync, task creation
**Success Criteria Met:**
✓ Zero note loss on unexpected exit (notes in DB via session_note_add)
✓ Orphaned sessions detected at session-start (2 hour threshold)
✓ Recovery attempt automatic on orphan detection
✓ Task context captured to prevent description loss
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2026-01-29 15:42:05 +02:00 |
|
Christian Gick
|
a03e9e065a
|
feat: Add task-mcp server for task management via MCP
Implements 10 MCP tools for task management:
- CRUD: task_add, task_list, task_show, task_close, task_update
- Search: task_similar (pgvector), task_context
- Relations: task_link, task_checklist_add, task_checklist_toggle
Uses PostgreSQL with pgvector for semantic search via LiteLLM embeddings.
Connects via SSH tunnel to docker-host:5435.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-08 20:58:14 +02:00 |
|