ren ren-mm: Pure-C Multi-Project Memory & Codebase Intelligence

ren-mm.so is a dynamically loaded Xylem extension for ren (installed from external/libmm). It connects ren to libmm.so, giving the LLM agent access to persistent memory lore, multi-project code search, AST-bound symbol inspection, call-graph tracing, git diff blast-radius analysis, and zero-JSON distillation.


1. Available Tools

ren-mm registers two high-density, low-overhead tools with ren: recall and record.

recall

Universal retrieval tool supporting multiple specialized query formats:

Query FormatActionEngine API
recall <query>Hybrid lexical + semantic persistent memory searchmm_recall()
recall projectsLists all discovered code repositoriesmm_project_list()
recall [project:<name>] code:<query>Hybrid code symbol and signature searchmm_project_code_search()
recall [project:<name>] symbol:<name>Full source AST read + callers/calleesmm_project_code_symbol()
recall [project:<name>] trace:<name>Bidirectional multi-hop call graph tracemm_project_code_trace()
recall [project:<name>] diffWorktree git diff impact & blast radiusmm_code_diff_impact()
recall guardrail:<intent>Pre-flight counterfactual safety checkmm_evaluate_guardrail()
recall session:<query>Cross-session transcript searchmm_session_recall()

record

Memory storage and distillation tool:

  1. Simple Key-Value Format:

` record <problem>::<findings> `

  1. Zero-JSON Line-Delimited Distillation Format:

`text record PROBLEM: Fix socket leak on client disconnect TYPE: episode STANDING: false PROJECT: axil-auren SUBSYSTEM: net APPROACH: Close fd on exit | worked | Prevents FD exhaustion FINDING: Socket remained open after client reset CONSTRAINT: Never exit connection loop without closing client FD `


2. Usage with ren

Load ren-mm.so when starting ren:

# Direct CLI run
ren -m ren-mm -p "Search for aec_process in libjarvis"

# Background socket listener (used by Jarvis)
ren --session jarvis \
    --listen /tmp/ren-jarvis-$USER.sock \
    --max-turns 16 \
    -m ren-jarvis:ren-reflex:ren-mm