FastrMemory

v0.9.3
io.github.atifjubaer/fastrmemory Checked 1 day ago Published 1 month ago

Local-first cognitive agent memory with bi-temporal SQLite, replayable history, hybrid retrieval.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fastr_recall

Triple-Stream hybrid search (BM25 + Vector + Graph) with progressive token budgeting and trap weighting.

ParameterTypeDescription
query *stringSearch query or task description
budgetTokensintegerToken ceiling (e.g. 500, 1500, 4000)
filesarrayTarget file paths being inspected or edited
includeHistorybooleanInclude historical superseded rules
modulestringFilter by module (e.g. auth, db, api)

fastr_remember

Records a new rule, architectural decision, error trap, or workflow. Automatically scrubs credentials.

ParameterTypeDescription
content *stringDetailed actionable lesson or trap warning
kind *stringKind of memory
title *stringConcise headline title
assertionstringCondition that keeps this memory relevant, checked against the working tree: text_present:<path>::<text>, symbol_present:<path>::<name>, or file_present:<path>. Once it stops holding, recall stops ret…
filesarrayRelated file paths
modulestringModule name (e.g. auth, db, api, ui)
pinnedbooleanPin to always surface during recall
scopestringStorage scope: project-local or organization-wide global
symbolsarrayRelated symbol or function names
verifiedbooleanSet true if already verified by passing tests

fastr_handoff

Saves or retrieves cross-agent session milestones. Promotes staging memories when verifyStaging=true.

ParameterTypeDescription
action *stringAction: "save" new milestone or "latest" to retrieve
activeFilesarrayActive files modified during session
nextStepstringImmediate next action for the next agent session
summarystringSummary of progress completed (required for save)
taskTitlestringCurrent task title (required for save)
verifyStagingbooleanSet true to promote session staging memories to verified

fastr_status

Returns health, memory counts, raw event counts, pending spool count, and embedding coverage %.

ParameterTypeDescription
projectIdstringProject ID override

fastr_trap_log

Immediately logs an error trap diagnosed during a build failure or test error. Receives a conditional 2.0x recall boost for trap-intent or file-scoped queries.

ParameterTypeDescription
content *stringExact explanation of the error trap and the concrete workaround/fix
files *arrayCode files affected by this error trap
title *stringClear, imperative rule title (e.g. Never Use Date.now() for JWT Exp)
assertionstringCondition that keeps this memory relevant, checked against the working tree: text_present:<path>::<text>, symbol_present:<path>::<name>, or file_present:<path>. Once it stops holding, recall stops ret…
modulestringModule name (e.g. auth, db, api)

fastr_trap_recall

Fetch all active [TRAP] warnings protecting specific files before beginning an edit.

ParameterTypeDescription
files *arrayTarget files about to be edited or inspected
includeNeighborsbooleanInclude 1-hop downstream call-graph and import traps

fastr_compress

Compresses markdown files or text to reduce token usage while strictly preserving headings, URLs, and code blocks. Creates .original.md backup if filePath is provided.

ParameterTypeDescription
contentstringDirect text or markdown content to compress in-memory
dryRunbooleanPreview compression savings without modifying file on disk
filePathstringPath to markdown or text file to compress on disk

fastr_diagnose

Performs comprehensive health checks across SQLite B-Trees, FTS5 BM25 search index consistency, orphaned file links, and multi-agent DAG frontiers.

ParameterTypeDescription
categorystringOptional diagnostic category filter

fastr_get

Fetch one memory by ID with full content, linked files, status, bi-temporal validity (valid_from/valid_to), and superseded_by.

ParameterTypeDescription
id *stringMemory ID (e.g. mem_8f2a1c)

fastr_replay

Reconstruct the active memory set at a past ISO timestamp from bi-temporal valid_from/valid_to windows.

ParameterTypeDescription
atstringISO timestamp (default: now)

fastr_tools

Lists the memory tools this server can run, with their input schemas. Use fastr_call to execute any listed tool.

ParameterTypeDescription
limitintegerMaximum tools to return
querystringFilter by tool name or description

fastr_call

Runs any tool from fastr_tools by name. Arguments are validated against that tool's input schema before dispatch.

ParameterTypeDescription
tool *stringTool name from fastr_tools, e.g. fastr_list or fastr_export
argsobjectArguments object for the target tool