nexusmem
v0.10.5Local-first memory for AI coding agents: shell history with exit codes, git diffs, docs, MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_memory Search remembered project history
Search a NexusMem-tracked repository's remembered history: git commits, code diffs (the patch of each changed file), shell commands, tracked markdown docs, and (if enabled) conversation transcripts, per-session summaries, and github.com issue/PR threads. Returns a token-budgeted, ranked context block -- not raw search results.
| Parameter | Type | Description |
|---|---|---|
projectRoot * | string | Absolute path to the repository root |
query * | string | Free-text question or search terms |
allProjects | boolean | Search every repository NexusMem has been run in on this machine, not just projectRoot. Use when the answer may live in a different project (a pattern solved elsewhere, a tool that failed the same way… |
asOf | string | ISO-8601 date/time. Restricts results to nodes recorded at or before this instant -- "what did memory hold as of then", not "what happened then". Omit for the normal, unrestricted read. |
budget | integer | Max tokens in the returned context block. Default 2000. |
sync_project Sync remembered history
Ingest new git, diff, shell, docs and (if enabled) conversation and github.com issue/PR history for a NexusMem-tracked repository into its local database. Pass pruneSource or pruneStaleShell instead to delete a dead source's nodes (e.g. the pre-hook shell scrape) rather than syncing -- dry-run unless yes is also true, since this is an irreversible full wipe of that source.
| Parameter | Type | Description |
|---|---|---|
projectRoot * | string | Absolute path to the repository root |
pruneSource | string | Delete every node from this exact source (e.g. "shell:pwsh") instead of syncing |
pruneStaleShell | boolean | Shortcut for pruneSource on shell:pwsh, shell:bash and shell:zsh at once -- the dead pre-hook scrape sources |
yes | boolean | Confirms the delete. Without it, pruneSource/pruneStaleShell only report the matching count. |
get_status Show what is remembered
Report how many nodes NexusMem currently remembers for a repository, broken down by kind and source.
| Parameter | Type | Description |
|---|---|---|
projectRoot * | string | Absolute path to the repository root |
list_recent_memory List recently remembered items
List the most recently remembered items for a NexusMem-tracked repository -- git commits, code diffs, shell commands, tracked docs, and (if enabled) conversation transcripts, session summaries, and github.com issue/PR threads -- newest first. Chronological, not relevance-ranked: use search_memory instead for a specific question.
| Parameter | Type | Description |
|---|---|---|
projectRoot * | string | Absolute path to the repository root |
limit | integer | Max items to return, newest first. Default 20. |
list_stale_suggestions List open contradiction suggestions
List open contradiction verdicts for a NexusMem-tracked repository -- candidates flagged by "nexusmem stale --check-contradictions" (or automatically during sync) as likely superseded by a newer, similar node. Nothing has been written yet; use resolve_stale_suggestion to act on one.
| Parameter | Type | Description |
|---|---|---|
projectRoot * | string | Absolute path to the repository root |
limit | integer | Max suggestions to return, most recently judged first. Default 50. |
resolve_stale_suggestion Accept or dismiss a contradiction suggestion
"accept" writes a supersede link from candidateId to againstId (the same effect as "nexusmem mark-stale") -- the ranker down-weights candidateId from then on but never deletes it. "dismiss" silences the suggestion without changing ranking, so it stops resurfacing on future stale/sync runs.
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to write the supersede link or silence the suggestion |
candidateId * | string | Id of the stale/superseded node |
projectRoot * | string | Absolute path to the repository root |
againstId | string | Id of the superseding node. Required for "accept", ignored for "dismiss". |