Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor: compact protocol validation, simplify session backups to tar-only

8 months ago

645719a
Authored
Claude2/21/2026, 8:26:36 PM
- Replace 358-line safeParseClientMessage switch with helpers (requireSession,
  requireSessionAndField, requireProviderAuth) + switch fall-through grouping
- Simplify sessionBackup.ts from 801→409 lines by replacing dual strategy
  (git-diff + manifest-blob) with single tar.gz-based checkpoints
- Remove compaction logic (no longer needed since original is tar.gz from start)
- Remove git diff/apply, manifest blob, directory copy code paths

https://claude.ai/code/session_01RtCvoFGGgntzCR9jpsTyuh

Parent717f13f

3 files changed
  • src/server/protocol.ts+164−305
  • src/server/sessionBackup.ts+62−454
  • test/session-backup.test.ts+20−39