smcreader

v0.1.5
smcreader Checked 1 day ago Published 1 month ago

SMC Reader (Save My Context Reader): pull-model reading of large tool outputs for Claude Code.

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

reader_open

Open a document in a persistent haiku-powered reader WITHOUT loading it into your context. Use for: large files (logs, long sources, datasets), long command outputs (pass as {text}), anything you will question repeatedly. Do NOT use for small files you are about to Edit (use Read — you need exact bytes). Returns id + stats + head/tail preview; then interrogate with reader_ask, verify exact values with reader_peek.

ParameterTypeDescription
briefing *stringWhy you are opening this and what matters — the reader prioritizes by it. Name what to watch for (errors? a function? specific numbers?).
pathstringAbsolute file path. Exactly one of path|text.
textstringInline text to open (e.g. a big command output you want kept out of your context).

reader_ask

Ask the haiku reader a question about an open document. The reader remembers the dialog: follow-up questions are cheap. Default answer (format "lines"): a short direct answer + the document lines that answer it, VERBATIM from disk (exact bytes — fit for Edit), ~6–9 s. Several questions to one document at once run in parallel. Errors/anomalies you did not ask about are NOT listed in lines — ask for them explicitly ("what looks suspicious here?") or use format "prose" — a connected explanation with line citations and a NOTICED section (slower).

ParameterTypeDescription
id *stringReader id from reader_open (ctx_...).
question *stringOne specific question per ask.
formatstringAnswer format (default "lines"): "lines" — relevant document lines verbatim + short note; "prose" — explanation with citations.

reader_peek

Verbatim numbered slice of an open document — no LLM, exact bytes from disk. Use to ground-check a reader_ask claim or pull an exact value/snippet. Max 400 lines per call.

ParameterTypeDescription
id *string
endintegerAlias of end_line.
end_lineintegerLast line, inclusive. Required (alias: end).
startintegerAlias of start_line.
start_lineintegerFirst line, 1-based. Required (alias: start).

reader_close

Close a reader and delete its spilled raw file. Call when done — max 10 readers may be open.

ParameterTypeDescription
id *string

reader_list

List open readers (id, size, briefing, ask count). Use when unsure what is open or before opening near the limit of 10.