nexusmem

v0.10.5
io.github.yaminbkk/nexusmem Checked 23 hours ago Published 2 months ago

Local-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.

ParameterTypeDescription
projectRoot *stringAbsolute path to the repository root
query *stringFree-text question or search terms
allProjectsbooleanSearch 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…
asOfstringISO-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.
budgetintegerMax 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.

ParameterTypeDescription
projectRoot *stringAbsolute path to the repository root
pruneSourcestringDelete every node from this exact source (e.g. "shell:pwsh") instead of syncing
pruneStaleShellbooleanShortcut for pruneSource on shell:pwsh, shell:bash and shell:zsh at once -- the dead pre-hook scrape sources
yesbooleanConfirms 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.

ParameterTypeDescription
projectRoot *stringAbsolute 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.

ParameterTypeDescription
projectRoot *stringAbsolute path to the repository root
limitintegerMax 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.

ParameterTypeDescription
projectRoot *stringAbsolute path to the repository root
limitintegerMax 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.

ParameterTypeDescription
action *stringWhether to write the supersede link or silence the suggestion
candidateId *stringId of the stale/superseded node
projectRoot *stringAbsolute path to the repository root
againstIdstringId of the superseding node. Required for "accept", ignored for "dismiss".