Cartograph

v2.0.3
io.github.pbathuri/cartograph Checked 16 hours ago Published 8 days ago

Your agents search your PDFs, docs and code locally and cite the page.

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

retrieve_context

BEST retrieval for injecting context: hybrid (semantic + keyword) over the user's whole graph — code, notes, PDFs, Office docs. Every snippet has a `cite` (file:L40-88, paper.pdf p.12). Set mode=mix with max_tokens for one budgeted bundle of relevant memories, entity facts and snippets.

ParameterTypeDescription
query *stringWhat to find.
cwdstringWorking directory, scopes memories to its project.
max_tokensintegerHard token budget for the whole result (default 2000 when mode is set).
modestringchunks (default): snippets. mix: memories + entity facts + snippets. graph: entity facts. memory: agent memories. projects: ranked projects.
top_kintegerHow many snippets (default 8).

relevant_projects

Which of your projects/repos are most relevant to a query (hybrid ranked).

ParameterTypeDescription
query *stringWhat the task is about.
top_kintegerHow many projects (default 8).

elevate_task

One-shot top-of-field briefing for a build task: elite bar, reference repos, the frontier playbook (process), adjoining-field moves, and your most relevant existing repos.

ParameterTypeDescription
task *stringThe build task.
project_pathstringOptional path of the project being built.

frontier_status

Coverage of each field's top-tier reference repos in your graph + the prioritized acquisition backlog.

ParameterTypeDescription
topintegerHow many fields to report (default 8).

personalize

THE personalization hook — call FIRST on any user prompt. Returns a steering brief (the user's persona/field focus, output guidance, the compass constellation of ambitions, ventures, inquiries, sparks, and sorties, and persona-ranked snippets) to prepend so your answer fits this specific user. They hold many directions at once; do not collapse them onto one project. Adapts as feedback accrues.

ParameterTypeDescription
prompt *stringThe user's request.
max_charsintegerContext budget in characters (0 = unlimited).
top_kintegerHow many snippets (default 6).

constellation

The user's compass: slow ambitions, warm ventures and inquiries, new sparks, temporary sorties and their residue, threads they returned to, and resting work that is memory rather than a to-do. Pass a prompt to mark which threads it touches, including quiet ones. Built by `carto compass --sync` from AutoLog.

ParameterTypeDescription
promptstringOptional prompt to mark which threads it touches.

record_use

Close the learning loop: after answering, report which projects actually helped (and which didn't) so the persona adapts to what the user responds to. Call when you used Cartograph context in a useful answer. Writes local persona feedback.

ParameterTypeDescription
helped *arrayProject names that helped.
not_helpfularrayProject names that did not help.
querystringThe query the feedback is about.

frontier_hints

Reasoning hints for the task at hand: the textbook method for its technical area (CUDA, time series, MD, signals, sparse, HPC, quant, ML), one worth-trying tangent with when-to-try, frontier papers/repos the scout pulled for the user's active topics, and related projects from the user's graph. Use when planning an implementation.

ParameterTypeDescription
prompt *stringThe task or question.

entities

Facts read deterministically from the user's files, each with evidence (a citable chunk), extractor, confidence and first/last seen: dependencies, imports, cited papers (DOI/arXiv), GitHub repos, Hugging Face models/datasets. Give `find` to see which projects use/cite something (e.g. 'pydantic', '1706.03762'); give `project` to list what one project depends on and which projects it shares entities with.

ParameterTypeDescription
findstringEntity name or fragment to look up across projects.
kindstringRestrict to one kind.
limitintegerMax facts (default 20).
projectstringProject name to describe.

brief

Session-start memory digest for the project being worked on: its active decisions, rejected approaches (don't retry them), preferences, open todos, recent sessions, and memories whose anchored files changed. Call at the start of a task. Bounded by max_chars.

ParameterTypeDescription
cwdstringThe working directory (picks the project).
max_charsintegerCharacter budget (default 2000).
projectstringProject name, if known.

recall

Search the user's shared agent memory (decisions, rejected approaches, preferences, facts, todos, session logs). Active memories only unless history=true; each result says if it may be stale because a file it depends on changed.

ParameterTypeDescription
cwdstringWorking directory (picks the project).
historybooleanInclude superseded memories.
kindsarrayRestrict to kinds: decision, rejected, preference, fact, todo, note, session.
limitintegerMax results (default 10).
max_charsintegerCap on total text returned (0 = none).
projectstringProject name.
querystringKeywords (empty = newest).

remember

Save something every future session (in any client) should know: a decision and why, an approach that was tried and rejected, a user preference, a fact, a todo. Anchor it to the files it depends on so it's flagged stale when they change. Returns similar existing memories; supersede them if this one replaces them.

ParameterTypeDescription
text *stringThe memory, self-contained (include the why).
anchorsarrayFile paths this memory depends on.
cwdstringWorking directory (picks the project).
kindstringMemory kind.
projectstringProject name.
sourcestringClient name, e.g. claude-code, cursor.
supersedesarrayMemory ids this replaces.

supersede

Mark a memory as no longer true (kept as history with its validity interval), optionally pointing at the memory that replaces it.

ParameterTypeDescription
id *integerMemory to close.
byintegerReplacement memory id.
reasonstringWhy it no longer holds.

graph_stats

Counts in your graph (projects/files/chunks/edges/entities) and the semantic index state.