Commit Graph

5 Commits

Author SHA1 Message Date
Ralph Chang 17258ce60f fix: use SDK API instead of sqlite3 CLI for cross-platform compatibility
- Replace sqlite3 CLI with client.session.messages() and client.session.todo()
- Fix message scan order: API returns oldest-first, now scans backwards
- Include cache.read in total token calculation
- Skip in-progress messages with zero tokens
- Silent error handling (no console.error for expected failures)
2026-02-19 13:43:26 +08:00
Ralph Chang d7302e531a perf: move core memory guidelines from system prompt to tool description 2026-02-18 16:39:21 +08:00
Ralph Chang bb929fc578 Clean up comments, fix docs, bump to v1.0.1 2026-02-18 14:13:37 +08:00
Ralph Chang 75c89747d8 Fix typecheck errors and update install docs for npm release 2026-02-18 10:46:03 +08:00
Ralph Chang 32d5ddfb50 Initial commit: OpenCode Working Memory Plugin v1.0.0
- Four-tier memory architecture (Core, Working, Pruning, Pressure)
- Phase 1: Core Memory blocks (goal/progress/context)
- Phase 2: Smart Pruning with adaptive thresholds
- Phase 3: Working Memory with slots + pool decay
- Phase 4: Pressure monitoring with interventions
- Phase 4.5: Storage governance (session cleanup + cache sweep)
- Complete documentation (README, AGENTS, installation, architecture, configuration)
- MIT licensed
2026-02-18 09:49:09 +08:00