/context-mem:search <query>from context-mem
Searches stored observations from context-mem using BM25 full-text search, returning type-badged snippets for quick review.
Ships in context-mem. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Search stored observations using context-mem's 4-layer search (BM25 + Trigram + Levenshtein + Vector).
Query the database directly using BM25 full-text search:
node -e "
const Database = require('better-sqlite3');
const db = new Database('.context-mem/store.db', { readonly: true });
const query = process.argv[1];
const sanitized = query.replace(/[^\w\s-]/g, '').split(/\s+/).filter(t => t).map(t => '\"' + t + '\"').join(' OR ');
const rows = db.prepare('SELECT o.id, o.type, substr(COALESCE(o.summary, o.content), 1, 200) as snippet, o.indexed_at FROM obs_fts f JOIN observations o ON o.rowid = f.rowid WHERE obs_fts MATCH ? ORDER BY bm25(obs_fts) LIMIT 10').all(sanitized);
rows.forEach((r, i) => console.log((i+1) + '. [' + r.type + '] ' + r.snippet.replace(/\n/g, ' ')));
if (!rows.length) console.log('No results found for: ' + query);
db.close();
" "ARGUMENTS"
Replace ARGUMENTS with the user's search query.
Present results clearly with type badges and snippets. If results are found, offer to show full content or /context-mem:status for more details.
7-day visitors to each command page
6 commands in this plugin
/context-mem-handoffGenerate a session handoff — saves current state and creates a continuation prompt for a new session/context-mem-historyShow session chain history — previous sessions, their summaries, and token usage/context-mem-statusShow session status — estimated token usage, session duration, observation count, and session chain/journalShow the activity journal — recent file edits, commands, and actions from this and previous sessions/statusShow context-mem status — observation count, token savings, search capabilities, and dashboard linkGenerated from the plugin's indexed repository (jubakitiashvili/context-mem) — no native marketplace selected
npx claudepluginhub p/jubakitiashvili-context-memOther plugins' commands for the same job