Register and share your invite link to earn from video plays and referrals.

cv usk
@cv_usk
AI / Software Research Notes AI Agent, LLMOps, MLOps, Software Architecture æŠ•çšżăŻć€‹äșșăźæ„èŠ‹ă§ă™ă€‚
Joined May 2026
258 Following    220 Followers
🧠 Claude Code agents start every session with amnesia. This post solves that without adding a dedicated service, using the Elasticsearch you already run. TL;DR: A CLI called bridge and three hooks automatically store an agent's decisions, context, and tasks in Elasticsearch, then recall them across sessions and devices via hybrid search plus temporal decay. Title: Persistent memory for agents: Claude Code on Elasticsearch URL: Points ăƒ»đŸ—‚ Seven indices: memory/messages/tasks/sessions/status/entities/entity-history store memory by dimension ・đŸȘ Three hooks automate it: SessionStart syncs, markdown writes get indexed, Stop logs the session end (no explicit calls) ăƒ»đŸ”Ž Hybrid recall: BM25 fused with semantic_text dense vectors via RRF, catching both exact task IDs and conceptual matches ăƒ»âł Temporal decay: a default 45-day DECAY ranks recent memories higher (needs ES 9.3+ or Serverless) ăƒ»đŸ•ž Knowledge graph: extracts blocked_by and friends from markdown frontmatter, surfacing blockers at depth-2 traversal ăƒ»đŸ“Ą Offline resilience: writes queue locally as JSON and flush via bulk API once connectivity returns ăƒ»đŸ’» Cross-device: gen-handoff produces a handoff JSON so another machine restores context with no git pull If you already run Elasticsearch, the pragmatic appeal is no new service and reusing your existing monitoring and backups. Setup is three commands: git clone and #Elasticsearch# #ClaudeCode#
Show more