ohdearquant/khive/memory
Claude Code and agent skill by ohdearquant/khive
- community
Checking that the SKILL.md file is still in the repository.
Store and retrieve durable agent memory — remember decisions, preferences, and session outcomes with calibrated salience; recall prior context before acting or resuming a project. Use whenever you store a memory, search memory, retrieve prior context, or check what was learned in past sessions.
Install
npx vskill@latest install ohdearquant/khive/memorySKILL.md
The same SKILL.md was published earlier as ohdearquant/khive/memory.
Store and recall memory
khive memory is how context survives across sessions. The surface is six verbs — memory.remember, memory.recall, memory.feedback, memory.prune, memory.vacuum, and memory.apply_batch — but the thing worth learning is the _salience discipline and store-before-recall cycle_, not the verbs. Per-verb param detail is one call away: request(ops="memory.remember(help=true)").
The pattern
1. Decide what belongs in memory
Memory is for context that would be expensive or unreliable to rediscover. Good candidates: project decisions and rationale, user preferences, stable domain facts, gotchas and failure modes, session outcomes future work should build on.
Skip memory for: one-off reasoning, raw logs, tasks (use gtd.assign), and entity relationships that should be structured KG edges (use create + link).
2. Choose memory_type
episodic (default) for event-bound or session-tied observations. semantic for durable facts, rules, or reusable knowledge. These are the only two valid values. When uncertain, use episodic — it preserves the context of when the memory was formed.
3. Set salience honestly
Salience controls ranking at recall time. Default it DOWN.
| Salience | For | |
|---|---|---|
| 0.9+ | Maintainer directives, life-changing facts (rare) | |
| 0.65-0.85 | Stable design decisions, high-value patterns | |
| 0.5-0.7 | Session outcomes, useful observations | |
| 0.3-0.5 | Routine episodic notes (default range) |
Most mid-session insights belong at 0.5, not 0.8. Inflated salience fills the top of every recall result with noise and defeats the ranking.
decay_factor controls how fast salience erodes over time. 0.01 ≈ 69-day half-life. Leave it at the default unless you have a specific reason to accelerate decay.
4. Store with provenance when available
source_id writes an annotates edge from the memory note to the source entity or note. Omit it if there is no obvious source.
Batch independent memories in one call:
5. Recall before acting
Run recall at session start and before claiming no prior context exists.
Use distinctive nouns matching words a memory author would have written. "KG agent task queue syntax" finds results; "what happened with agents" does not.
Scores are decay-weighted hybrid (FTS + vector, weighted fusion [0.7, 0.3] by default; RRF is available via fusion_strategy="rrf"), bounded to [0,1]. Recent notes at normal salience score 0.10-0.25. Start without min_score, inspect the returned scores, then set a threshold just below the last useful hit if needed.
Filter by type when you know what you are looking for:
No results means no matching memory under current thresholds. It does not mean the fact is false. Follow with a KG search if needed:
6. Signal feedback after recall
After using recall results, emit feedback so the brain pack can tune future ranking:
Name the exact result being judged. Omitting signal means abstain and writes no feedback event.
Anti-patterns
- Storing everything. Routine scratch work crowds out durable context. Store the
outcome, not the reasoning trail.
- Inflating salience. A memory at 0.9 should be rare. Treating 0.8 as the default
collapses ranking.
- Using vague content. A future recall query depends on the specific words stored.
Write content as if answering "what would I search for to find this?"
- Calling `memory.recall` with a broad first query. Broad queries bury the useful
hit. Start specific; widen only if the specific query returns nothing.
- Treating high recall score as proof. A recalled memory is evidence of prior stored
context, not independent verification. Cross-check against current state.
- Using any `memory_type` other than `episodic` or `semantic`. Other values are
rejected by the handler.
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 repositoryCheckingmarketplace/khive/skills/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/ohdearquant/khive/memory)