Installation
- New install
- Existing install
- MCP only, no hooks
- Agent plugin marketplaces
rclm-hooks-install sets up the MCP server by default alongside capture hooks, under the same account configuration:--no-with-mcp if you only want capture hooks without the MCP server.Supported clients
Available MCP tools
search_sessions
Hybrid semantic and keyword search across captured sessions. Accepts optional project, file-path, record-type, and access-scope filters. Returns titles and short highlights rather than complete content.
search_by_filename
Find sessions that touched a specific file or folder. Use this when the request is about file history rather than a separate topic or concept.
list_projects
Discover deterministic project names available as filters in other tools. Use this instead of guessing a project identifier.
get_session
Retrieve metadata and a direct ReclaimLLM link for a known session ID without loading the session transcript.
summarize_session
Export a reusable Markdown context document for a specific session. It runs only after an explicit request and can include bounded file diffs.
file_brief
Return a distilled brief of prior sessions that touched a file: who, when, and a short highlight of what changed.
handoff
Package the current session’s decisions, progress, diffs, and remaining work into a compact continuation document for a fresh session.
transfer_session
Download the complete ReclaimLLM-captured record into a secure local JSON artifact for another agent. Preserves captured messages, tool calls/results, file diffs, metadata, and unknown fields.
signals
Return up to five open workflow-efficiency Signals for the current project and user, including the detected pattern, evidence, scope, and projected savings when available.
replay_eligibility
Cheap, metadata-only check of whether replaying compression mechanisms on a session or corpus is worth doing. No blob fetch, no model calls.
replay_session
Reproduce RCLM’s shipped compression mechanisms over one captured session’s tool calls and report the real tool-result token reduction. Read-only; never re-executes historical commands.
replay_corpus
Same as
replay_session, aggregated across a filtered window of sessions (by date range, source, model family, project, or category).replay_compare
Replay the same session corpus under multiple mechanism configurations in one call, so combined-savings claims stay attributable to a specific mechanism set.
Choose the right session tool
handoff and transfer_session are ReclaimLLM tools exposed through MCP; they are not standard MCP protocol operations. Neither tool ends the source session.Transfer a full session between Claude Code and Codex
Usetransfer_session when a summary is not enough and you explicitly need the complete session captured by ReclaimLLM.
Start a new session in the target agent and provide the ReclaimLLM session ID:
artifact_pathschema_versionbyte_sizesha256token_estimatecomplete
Transfer limits and temporary files
- Transfers are never silently truncated. An artifact that exceeds the configured ceiling fails explicitly.
- The backend and local download ceiling defaults to 100 MiB and can be changed with
SESSION_TRANSFER_MAX_BYTES. - Temporary artifacts are written atomically with owner-only permissions.
- Interrupted or invalid downloads remove their partial files.
- Artifacts become eligible for bounded opportunistic cleanup after one hour by default. Configure this with
SESSION_TRANSFER_TTL_SECONDS. - A complete artifact may still exceed the target model’s active context window. The target agent can inspect the file incrementally rather than loading every byte at once.
Inspect workflow-efficiency Signals
Usesignals only when you want to understand why a session or project is expensive, which repeated workflow patterns were detected, or what evidence supports a recommended change.
Verify token savings with Replay
replay_eligibility, replay_session, replay_corpus, and replay_compare reproduce RCLM’s shipped context-compression mechanisms — range-aware read caching, exec-output compaction, and result dedupe — over sessions RCLM already captured, and report the real tool-result token reduction. Replay never calls a model and never re-executes a historical command; it only re-runs the same shipped filter functions against content that was already recorded.
Use replay_eligibility first. It checks only session metadata (turn count, tool-call count, completion state) and skips the full session blob, so it’s fast:
replay_session and replay_corpus compute the actual reduction:
replay_compare runs multiple mechanism configurations against the same corpus in one call, so a combined-savings number stays attributable to the mechanisms that produced it — e.g. exec compaction alone versus exec compaction plus read caching.
Every Replay result states sessions considered vs. eligible vs. excluded, and explains why excluded sessions were skipped. A session or corpus below the turn/tool-call thresholds is refused with the specific failing constraint (
insufficient_data) rather than given an unstable number — a low eligible count is itself a finding, not something to work around by loosening filters.Example prompts
Use these prompts directly in your coding assistant once the MCP server is running:Find prior work on a topic
Find prior work on a topic
search_sessions and returns matching session titles with highlights for you to review.Look up file history before editing
Look up file history before editing
search_by_filename to surface relevant sessions and can follow up with file_brief for a distilled summary.Recover a prior solution
Recover a prior solution
search_sessions to find the capture and get_session to retrieve its link and metadata.Seed a new session with compact context
Seed a new session with compact context
summarize_session to generate a compact Markdown context document.Continue a long session in a fresh context window
Continue a long session in a fresh context window
handoff to produce a compact continuation document. In environments that do not expose a current session ID, pass the ReclaimLLM session ID explicitly.Move the complete captured session to another agent
Move the complete captured session to another agent
Inspect workflow cost
Inspect workflow cost
signals to return the current project’s open workflow-efficiency findings.Verify a token-savings claim
Verify a token-savings claim
replay_eligibility first, then replay_corpus if the sample looks large enough, and reports the measured reduction alongside the eligibility funnel.Catch up after time away
Catch up after time away
list_projects to confirm the project name, then search_sessions scoped to that project.How requests route to the backend
Search, retrieval, export, transfer, and Signals requests route through the ReclaimLLM backend. Search uses the same hybrid semantic and keyword ranking as the web interface, while authorization and sharing remain backend-owned.Your current RCLM API key grants both capture and read access. The same key used by your capture hooks is used by the MCP server to query your session history. Scoped read-only keys are being evaluated for a future release.