ajianaz/agent-skills/hybrid-memory
Claude Code and agent skill by ajianaz/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Hybrid memory system combining SQLite (structured data, entity graph) with Uteke (semantic search). 4-tier lifecycle with frequency-based promotion.
Install
npx vskill@latest install ajianaz/agent-skills/hybrid-memorySKILL.md
Hybrid Memory — SQLite + Uteke
Two-layer memory with 4-tier lifecycle. SQLite for structured data (entities, staging, metadata). Uteke for semantic search (recall, remember, contradiction detection).
Architecture
SQLite handles shared cross-agent knowledge (entity graph). Uteke handles per-agent personal memory. Namespace isolation is strict — no cross-namespace search by design.
4-Tier Lifecycle
| Transition | Trigger | Mechanism | |
|---|---|---|---|
| Working → Session | access_count ≥ 3 at TTL purge | Promote to knowledge_pending instead of delete | |
| Session → Knowledge | access_count ≥ 5 AND age ≥ 7 days | Cron stores to Uteke (frequency = quality) | |
| Knowledge → Forgotten | confidence < 0.1 AND reinforcement_count = 0 | Daily decay: confidence -= 0.05/week |
Confidence model: initial 0.5 (auto) or 0.8 (manual). Each search hit: confidence = min(1.0, current + 0.1 x (1 - current)). Decay: 0.05 per week.
Session tier in SQLite (not Uteke): embedding is expensive, session volume is small, SQL promotion queries are instant. Embed once on promotion.
Quick Start
knowledge Tool (Plugin)
Uteke CLI / HTTP
SQLite Schema
knowledge_pending (Session Staging)
| Column | Type | Description | |
|---|---|---|---|
| id | TEXT | UUID | |
| content | TEXT | Memory text | |
| entity_type | TEXT | fact, procedure, preference, etc | |
| tags_json | TEXT | JSON array | |
| submitted_at | TEXT | ISO timestamp | |
| access_count | INTEGER | Search hits (promotion signal) | |
| confidence | REAL | 0.0-1.0 | |
| decay_rate | REAL | 0.05/week default | |
| status | TEXT | pending, promoted, decayed |
knowledge_metadata (Knowledge Tracking)
| Column | Type | Description | |
|---|---|---|---|
| point_id | TEXT | PK, UUID | |
| access_count | INTEGER | Total hits | |
| confidence | REAL | 0.0-1.0 | |
| decay_rate | REAL | Weekly decay | |
| last_accessed_at | TEXT | ISO timestamp | |
| source_agent | TEXT | Originating agent |
entities / relationships
Entity graph for cross-agent shared knowledge. Column: entity_type (not type). Relationships: subject_id/object_id (not source_id/target_id).
Uteke HTTP API
| Endpoint | Method | Purpose | |
|---|---|---|---|
/health | GET | Server health | |
/recall | POST | Semantic recall | |
/search | POST | Keyword search | |
/remember | POST | Store memory | |
/list | POST | List by tag | |
/forget?id= | DELETE | Delete memory | |
/stats | GET | Statistics | |
/namespaces | GET | List namespaces |
Auto-Recall and Auto-Extract
Two shell hooks automate memory. Install from extensions/ directory.
uteke-recall (pre_llm_call): searches Uteke before each LLM call, injects relevant memories. Project-aware, skips cron/short messages.
uteke-extract (on_session_finalize): extracts takeaways when session ends, stores in Uteke. Structured extraction (headers, bullets, key-values), auto-tags with project.
Maintenance
| Job | Purpose | |
|---|---|---|
| Lifecycle Manager (20:00) | Session → knowledge promotion + decay sweep | |
| Memory Maintenance (21:00) | Cleanup + consolidation |
Gotchas
rememberalways writes SQLite first, then Uteke. Never loses data.search_knowledgesearches both tiers. Hits auto-incrementaccess_count.- Column names:
entity_type(nottype),subject_id/object_id. UsePRAGMA table_info()before writing. - Uteke namespace defaults to empty, not "all". Always pass
--namespace. recall --jsonnests undermemorykey:[{"memory": {"content": "..."}, "score": 0.72}].- Batch limits: max 30 items, 8s delay between batches.
- Agents skip Uteke recall at session start. Actively call
uteke recallfor prior work.
References
- sqlite-schema.md — Verified column lists
- uteke-recall-hook.md — Hook setup and troubleshooting
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingother/hybrid-memory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ajianaz/agent-skills/hybrid-memory)