Skip to content

The Hidden Guide

Alper Sarıtaş edited this page Dec 4, 2026 · 2 revisions

The guide is the language model behind omo. It does the reasoning: it works out what a query is after, finds the passages that lead there and what each one needs first, and checks your notes against the sources. It never writes to you. Everything it can do to reach you goes through a tool that points at lines of real files. omo checks every pointer, then prints those lines from the file itself.

The guide runs on pi-agent-core's agent loop. Each task runs on a fresh agent with a context of its own. The guide does not see the turns of an earlier task, only your record and search_map.

Tasks

Task Started by Ends with Result
map A query offer_paths Passages that lead to what the query is after, each with its needs and restatements
judge A note judge_claim Passages the note agrees with, contradicts, and leaves out, put to you for approval
transcribe A file dropped in note or source mode give_transcript The verbatim text of each file, in reading order, with formulas in LaTeX

Each task can use its own model and thinking level (/model, /thinking, or config.json; see Configuration).

Tools

Tool Tasks What it does
read map, judge Reads a file in the reading room, each line numbered so the guide can point at lines without counting
grep map, judge Searches file contents (regular expressions, literal strings, globs, context lines)
find map, judge Finds files by glob
ls map, judge Lists a folder, with the date each source was last changed, or when a web page was fetched
search_map map, judge Looks up passages already mapped for you in this folder: their text, your state, their needs and restatements, and their agreement
assume_reader map Records what the guide takes you to know and to lack, each with its evidence. Required before offer_paths
offer_paths map Ends a map
judge_claim judge Ends a judgement
search_outside, add_outside map, judge Search for and add a source from outside the folder, when Outside Sources are on
give_transcript transcribe Returns the transcripts. It is the only tool a transcription has

The file tools are omo's own, written in plain Node. They are confined to the reading room: a path, symlink or glob that leads out of it is refused. They never start another program.

Mapping a query

What you type is given to the guide as it is, with today's date and your record. One set of instructions covers every kind of input, with no categories of query. The guide:

  1. Calls search_map with its own words for the query's key terms, to see what was mapped for you before and where you stand with it.
  2. Reads your record, then calls assume_reader: what it takes you to know and to lack for this query, each item with its evidence. Evidence is your record and the terms of the field you use, in your query and your notes. Your grammar, spelling and style are never evidence. Where nothing shows something, it writes "assumed" and assumes little. These words are used only during the task, never kept or shown.
  3. Reads the sources and names the passages that lead to what you are after, in the order the sources teach them. Each passage is one step, usually one paragraph. Course logistics, tables of contents and outlines are not steps. When your words point at the folder's layout or at time ("week 4", "lecture 3"), it looks at file names, numbering, a syllabus, tables of contents and dates.
  4. Gives each passage its needs: the passages where a term, quantity, method or result it uses is defined or derived. It also gives its restates: passages that state the same idea, not just the same topic.
  5. Checks the first screen. The first call to offer_paths in a task is not recorded. Instead, it returns the passages you would see first (those nothing in the map comes before, minus those you have already covered), quoted, beside what the guide assumed you lack. Where one of them uses something you lack and does not teach it, the guide gives it needs on a passage that does, from the folder or from a source it adds. Then it calls offer_paths again, and that call is recorded.

If the sources hold nothing that leads there, the guide calls offer_paths with an empty list.

omo then widens each pointer to whole units, refuses pointers that do not resolve, refuses needs or restates links that would make a circle, records the map in the ledger, and computes what to show you (see The Understanding Graph).

Judging a note

The guide checks each statement of your note against the reading copies, any of them, not only the passages you read. It calls judge_claim with three lists, each of at most 8 passages:

  • supports: passages that state what the note states;
  • contradicts: passages that state something the note gets wrong, which cannot both be true with it;
  • missing: passages covering a step toward your current query that the note leaves out. This list is empty when there is no current query.

A passage goes in at most one list. A note written on a passage names that passage, and the guide checks it there first. The judgement is then put to you, and only the passages you keep count (see Notes and judgements).

Transcribing

Transcription runs as its own task with its own instructions and no tool but give_transcript. It writes every word as written or said, in reading order, keeping your language, spelling, abbreviations and mistakes, including wrong steps in a calculation. Mathematics goes in LaTeX. Crossed-out text is left out. A word it cannot read or hear becomes [?], never a guess. Filler sounds are dropped from speech, but repeated or corrected words are kept.

A transcript of your own files is put in the prompt for you to check and correct. Only what you keep with enter becomes a note. A transcript of an image source becomes that source's reading copy.

What the guide is told about you

The guide is never shown your earlier conversations with it, because there are none: its own words are never kept. It is told only:

  • The last 30 queries, notes and judgements, as pointers and your own words:

    • what was read;
    • each note, with the passage it was written on;
    • each judgement, with the passages you rejected, or that you have not answered it.

    A pointer in the open folder is given as its file and lines. One in another folder is given as where that source came from.

  • Where you stand with every passage of this folder you have been through: understood, walked through, faded, contradicted or restated.

  • Passages you understand in other folders, given as where each source came from and the first 200 characters of the passage. Its tools cannot open them, but this tells it what you bring with you.

search_map reaches older mappings in this folder.

Budget and errors

Limit Default Setting
Tool calls per task 40. After that only the finishing tool runs, and assume_reader in a map, since a map cannot finish without it. A call to a missing tool or with bad arguments counts limits.toolCalls
Model turns per task 60, a hard stop limits.turns
Passages in a map No limit limits.passages
Needs per passage No limit limits.needs
Sources added per task No limit limits.added

A limit you set in config.json is told to the guide with the query and enforced by the tools. See Limits.

  • Provider errors that may pass, such as an overloaded service or a rate limit, are retried up to 3 times, after 2, 4 and 8 seconds.
  • A full context is reported, not trimmed.
  • A guide that stops without calling its finishing tool is shown as "the guide stopped without an answer".
  • Failed tasks are recorded in the ledger with whether the provider returned the error. Tasks you cancel are not recorded.

Clone this wiki locally