About Pmb
Pmb is an MCP server published by oleksiijko in the RAG category: local-first persistent memory for AI coding agents (Claude Code, Cursor, Codex) over MCP. Decisions, lessons and facts live in one SQLite file on your disk. Offline, multilingual. Conduid read 69 tools from its source: apply_daily_decay, arc_detail, auto_resolve_conflicts, chain_current, chain_history, clear_predictive_cache and 63 more. It is published to PyPI as pmb-ai and runs with uvx.
The repository has 294 stars and 34 forks, is licensed Apache-2.0, and its last commit was on 11 Nov 2026. The latest release is v1.2.3 (16 Aug 2026). It follows v1.2.2 (30 Jun 2026), and the 5 most recent releases go back to v1.0.0 (18 Jun 2026). It passes 3 of the 4 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include ai-memory, bm25, knowledge-graph, lancedb, local-first and memory.
Install
uvx pmb-aipip install pmb-aigit clone https://github.com/oleksiijko/pmbTools (69)
apply_daily_decayApply forgetting curve to all events.| Parameter | Type | Description |
|---|---|---|
| days_since | number |
arc_detailGet full detail of one arc: title, summary, member events.| Parameter | Type | Description |
|---|---|---|
| arc_id * | integer |
auto_resolve_conflictsAuto-archive obvious 'supersede' conflicts.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean |
chain_currentLatest milestone of a chain - the 'current state'.| Parameter | Type | Description |
|---|---|---|
| chain_name * | string |
chain_historyFull chronological history of a state-chain.| Parameter | Type | Description |
|---|---|---|
| chain_name * | string | |
| limit | integer |
clear_predictive_cacheClear all entries from the predictive cache.cluster_into_arcsPMB v2 Phase 3: LLM groups events into narrative arcs (story| Parameter | Type | Description |
|---|---|---|
| backend | string | |
| limit | integer |
cold_statsGet info about cold storage (archived events database).compact_storageCompact storage: move old archived events to cold storage and VACUUM.| Parameter | Type | Description |
|---|---|---|
| age_days | integer | |
| dry_run | boolean |
consolidate_recentLLM-based sleep-stage consolidation.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | |
| max_clusters | integer | |
| min_size | integer | |
| since_days | number | |
| threshold | number |
dedupe_list_pendingList borderline duplicate pairs awaiting verdict (L2.5).| Parameter | Type | Description |
|---|---|---|
| limit | integer |
dedupe_run_pendingDrain the borderline pair queue via LLM verify.| Parameter | Type | Description |
|---|---|---|
| backend | string | |
| limit | integer |
dedupe_sweepImprovement U: one-shot dedup over all active events.| Parameter | Type | Description |
|---|---|---|
| threshold | number | |
| types | array |
dedupe_undoRestore events archived by previous dedup runs. Reversible.detect_conflictsFind conflicting facts between different timestamps.extract_factsImprovement D (mem0-style): LLM extracts atomic facts from recent| Parameter | Type | Description |
|---|---|---|
| backend | string | |
| limit | integer |
feedback_summaryAggregate user recall feedback. Returns useful_rate and topfile_correlationsFind files that are often modified together with the given file.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | |
| top_k | integer |
file_historyGet commit history for a specific file.| Parameter | Type | Description |
|---|---|---|
| file_path * | string |
find_lessonsPull procedural lessons (project rules / gotchas) relevant to a| Parameter | Type | Description |
|---|---|---|
| limit | integer | max lessons to return (default 5) |
| project | string | optional project name; explicit lessons from other projects are excluded while generic cross-project rules remain |
| query | string | topic to filter by (empty = recent lessons across all projects) |
forgetArchive a memory. Not deleted, can be restored.| Parameter | Type | Description |
|---|---|---|
| ulid * | string |
get_subfactsReturn all subfacts linked to a parent event (Improvement P).| Parameter | Type | Description |
|---|---|---|
| parent_ulid * | string |
graph_neighborsCo-occurrence neighbors of an entity. Useful for 'what relates to X'.| Parameter | Type | Description |
|---|---|---|
| kind | string | |
| name * | string | |
| top_k | integer |
graph_statsCounts of entities and edges in this workspace's association graph.graph_top_entitiesMost-mentioned entities. kind = 'file' | 'tech' | 'concept' or None.| Parameter | Type | Description |
|---|---|---|
| kind | string | |
| limit | integer |
health_trendGet trend of self-test accuracy over time.index_pdf📄 Extract text from a PDF and persist it as searchable memory.| Parameter | Type | Description |
|---|---|---|
| force | boolean | |
| importance | number | |
| path * | string |
index_project📂 Index a code project's structure - per-file symbols, imports,| Parameter | Type | Description |
|---|---|---|
| force | boolean | |
| max_files | integer | |
| path | string |
lesson_impact📊 Earned Memory: which lessons actually HELP outcomes (not just which| Parameter | Type | Description |
|---|---|---|
| window_days | integer |
list_arcsList narrative arcs in the current workspace.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| status | string |
list_goalsList goals (optionally filter by status).| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| status | string |
list_recentList the most recent active events in the workspace.| Parameter | Type | Description |
|---|---|---|
| event_type | string | |
| limit | integer |
mark_lesson_followedConfirm whether a previously surfaced lesson actually changed| Parameter | Type | Description |
|---|---|---|
| applicable | boolean | False if the lesson was unrelated to this task |
| followed | boolean | True if you followed the lesson, False if ignored |
| note | string | optional one-line explanation (esp. useful for ignored) |
| surface_id * | integer | the `surface_id` field returned with the lesson |
overviewGet a structured OVERVIEW of everything memory knows about a topic.| Parameter | Type | Description |
|---|---|---|
| max_events | integer | |
| topic * | string |
pinPin a memory: max importance, never auto-archived.| Parameter | Type | Description |
|---|---|---|
| ulid * | string |
precompute_predictive_cacheImprovement F (PMB-unique): during sleep, LLM predicts likely| Parameter | Type | Description |
|---|---|---|
| backend | string | |
| n_questions | integer |
prepare⭐⭐⭐ Call this ONCE at the START of any substantive user task.| Parameter | Type | Description |
|---|---|---|
| message * | string |
project_overview⭐ Use at the START of any project work - returns the FULL project| Parameter | Type | Description |
|---|---|---|
| name * | string | case-insensitive substring match against entity names. Picks the highest-mention entity that matches. |
project_structure🗺️ Pull a project's STRUCTURE straight from memory - no filesystem scan.| Parameter | Type | Description |
|---|---|---|
| max_files | integer | cap on files returned (default 400). |
| name * | string | project name or a path substring (case-insensitive). |
recallSearch PMB long-term memory. CALL THIS FIRST when user asks about:| Parameter | Type | Description |
|---|---|---|
| project | string | |
| query * | string | |
| top_k | integer |
recall_deepDEEP recall - explicitly opt into the slow, thorough path.| Parameter | Type | Description |
|---|---|---|
| query * | string | |
| top_k | integer |
recall_exploration💡 BEFORE re-exploring the codebase, check if a PAST session already| Parameter | Type | Description |
|---|---|---|
| intent * | string | |
| project | string | |
| top_k | integer |
recall_smartAuto-escalating recall, but FAST and deadline-bounded. Starts with| Parameter | Type | Description |
|---|---|---|
| confidence_threshold | number | |
| query * | string | |
| top_k | integer |
recent_activityImprovement Q: working memory dump - instant, no search.| Parameter | Type | Description |
|---|---|---|
| actor | string | |
| kind | string | |
| limit | integer | |
| minutes | number |
record_activityImprovement Q: log a working-memory activity.| Parameter | Type | Description |
|---|---|---|
| actor | string | |
| importance | number | |
| kind | string | |
| summary * | string |
record_batch⚡ PREFERRED for ANY message with multiple facts. Stores N atomic| Parameter | Type | Description |
|---|---|---|
| items * | array |
record_codeRecord code content. For Python, AST entities (functions, classes,| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| language | string |
record_exploration💡 AFTER researching something in the codebase (reading/grepping| Parameter | Type | Description |
|---|---|---|
| conclusion * | string | what you concluded, concise and self-contained. |
| files * | array | the source files the conclusion rests on (relative or abs). |
| intent * | string | the question/goal you researched ("where is auth handled"). |
| project | string | optional project path (default: cwd). |
record_factSTORE a fact for long-term recall. CALL THIS PROACTIVELY whenever| Parameter | Type | Description |
|---|---|---|
| fact * | string | |
| importance | number |
record_fact_treeImprovement P: store a main fact + multiple linked sub-facts in ONE call.| Parameter | Type | Description |
|---|---|---|
| importance | number | |
| main * | string | |
| subfacts * | array |
record_goalImprovement R: create a goal/intent (12-th semantic layer).| Parameter | Type | Description |
|---|---|---|
| due_at | number | |
| importance | number | |
| parent_goal_ulid | string | |
| status | string | |
| title * | string |
record_imageRecord an image (screenshot/diagram) in memory (Improvement J).| Parameter | Type | Description |
|---|---|---|
| description | string | |
| encode_clip | boolean | |
| importance | number | |
| path * | string |
record_keyed_fact⭐ Use for SINGULAR personal attributes that CHANGE over time.| Parameter | Type | Description |
|---|---|---|
| attribute * | string | the attribute name ('city', 'employer', 'phone', 'name'). Lowercased internally. |
| importance | number | 0..1, default 0.85 (high because personal attrs are usually significant). |
| subject * | string | who/what the fact is about ('user', 'user_dog', 'company_xyz', etc.). Lowercased internally; spaces ok. |
| value * | string | the current value as a short string ('Warsaw'). |
record_milestoneImprovement R: record a milestone in a named state-chain.| Parameter | Type | Description |
|---|---|---|
| chain_name * | string | |
| importance | number | |
| state | object | |
| title * | string | |
| triggered_by_ulid | string |
record_recall_feedbackRecord real recall feedback for an event.| Parameter | Type | Description |
|---|---|---|
| expected_ulid | string | |
| query | string | |
| ulid * | string | |
| verdict * | string |
reflect_batchPMB v2 sleep operation: LLM reflects on recent un-reflected events.| Parameter | Type | Description |
|---|---|---|
| backend | string | |
| limit | integer |
rememberStore a Q/A interaction in memory.| Parameter | Type | Description |
|---|---|---|
| importance | number | 0..1 importance score (default 0.5) |
| query * | string | the user query / question |
| response * | string | the agent response / answer |
| session_id | string | optional session identifier for grouping |
run_self_testQuantify memory health: system asks itself questions from old memories.| Parameter | Type | Description |
|---|---|---|
| apply_adaptive | boolean | |
| n_samples | integer |
search_images_by_textCross-modal image search. Encodes the query via CLIP text encoder| Parameter | Type | Description |
|---|---|---|
| query * | string | |
| top_k | integer |
session_briefRe-orient in a long session: a digest of what was decided / done /| Parameter | Type | Description |
|---|---|---|
| minutes | integer |
session_currentGet current active session info (or None).session_endEnd the current session. Returns the closed session's info.session_startStart a new memory session. Used to group related events.| Parameter | Type | Description |
|---|---|---|
| name | string |
session_timelineChronological dump of CURRENT session events.| Parameter | Type | Description |
|---|---|---|
| limit | integer |
statsGet workspace and memory statistics.sync_gitCapture recent git commits into memory.| Parameter | Type | Description |
|---|---|---|
| since_timestamp | number |
update_goalUpdate goal status / progress. Creates a goal_update event so| Parameter | Type | Description |
|---|---|---|
| goal_ulid * | string | |
| note | string | |
| progress | integer | |
| status | string |
what_just_happenedQuick: last N events of any type from current session.| Parameter | Type | Description |
|---|---|---|
| n | integer |
workspace_infoIdentify the current PMB workspace.Security checks
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 3.0K words, fetched 12 days ago. The original in the repository is authoritative.
Read full README