hermes-agent/hermes_cli
teknium1 440c244cac feat: add persistent memory system + SQLite session store
Two-part implementation:

Part A - Curated Bounded Memory:
- New memory tool (tools/memory_tool.py) with MEMORY.md + USER.md stores
- Character-limited (2200/1375 chars), § delimited entries
- Frozen snapshot injected into system prompt at session start
- Model manages pruning via replace/remove with substring matching
- Usage indicator shown in system prompt header

Part B - SQLite Session Store:
- New hermes_state.py with SessionDB class, FTS5 full-text search
- Gateway session.py rewritten to dual-write SQLite + legacy JSONL
- Compression-triggered session splitting with parent_session_id chains
- New session_search tool with Gemini Flash summarization of matched sessions
- CLI session lifecycle (create on launch, close on exit)

Also:
- System prompt now cached per session, only rebuilt on compression
  (fixes prefix cache invalidation from date/time changes every turn)
- Config version bumped to 3, hermes doctor checks for new artifacts
- Disabled in batch_runner and RL environments
2026-02-19 00:57:31 -08:00
..
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
config.py feat: add persistent memory system + SQLite session store 2026-02-19 00:57:31 -08:00
cron.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
doctor.py feat: add persistent memory system + SQLite session store 2026-02-19 00:57:31 -08:00
gateway.py Fix gateway exit code to enable systemd auto-restart on connection failure 2026-02-10 16:01:00 -08:00
main.py feat: add persistent memory system + SQLite session store 2026-02-19 00:57:31 -08:00
pairing.py Add messaging platform enhancements: STT, stickers, Discord UX, Slack, pairing, hooks 2026-02-15 21:38:59 -08:00
setup.py Add Skills Hub — universal skill search, install, and management from online registries 2026-02-18 16:09:05 -08:00
skills_hub.py Add skill name resolution and enhanced install confirmation in Skills Hub 2026-02-18 16:20:35 -08:00
status.py Add Skills Hub — universal skill search, install, and management from online registries 2026-02-18 16:09:05 -08:00
uninstall.py Add uninstall command to CLI and update documentation 2026-02-02 22:18:18 -08:00