This omp extension adds a second, cheaper model that reads your session. After every sixth step, the model looks for one thing that you must know and probably do not know. Usually it finds nothing, and nothing shows. If it finds something, one card shows above your prompt.
The extension copies the You should know plugin from Claude Code.
In this session, the agent counted the notes. Then it ran the migration and said
that the work was complete. The card has the same layout as the Claude Code
card: a lavender ✦, a dim tag, the text, and the choices below the text. The
tag is always Heads up or You should know.
The model writes the explanation in the same reply as the card. Thus, 1 shows
the explanation immediately. The explanation has a maximum of 100 words, for a
person who did not follow the session. Bold words show in lavender.
2 copies the card and its explanation into your prompt box as a quote. Below
the quote is an empty line for your question. The main agent gets nothing until
you send the prompt.
The model uses Heads up for something that occurs now. It uses You should know for how a part of the system works, when the work depends on that part:
These sessions are staged. A scripted model operated omp in a sample project, so the text is not from a real session. The screens are real omp output, captured from a terminal.
Three more keys write the explanation again. The card does not show these keys:
3uses simpler words.4keeps only the main point.5adds the real files and settings.
While the model writes, the card shows ✦ One moment… with the omp shimmer. If
the model cannot write the first explanation, the card shows one line:
✦ Couldn’t write that explanation · 0: OKomp plugin install github:ubranch/omp-you-should-knowThen, in omp:
/ysk on or off, and the side model
/ysk check check now, not at the next sixth step
The side model is your smol role. If modelRoles.smol is not set, omp selects
a fast model from the providers that you are logged in to. To select a model,
set it in ~/.omp/agent/config.yml:
modelRoles:
smol: <provider>/<model>Side requests ask for high reasoning with reasoning: "high". The extension
does not disable reasoning or change your model roles or account pool. omp's
session-aware auth resolver keeps control of authentication and account selection.
Side requests use the model-supported output budget (65,536 tokens for Gemini
3.8 Flash), rather than a smaller extension cap. High reasoning can consume more
tokens; the visible answer prompts still ask for 100 words, or 160 words at most.
- After steps 6, 12, 18, and so on, the extension sends the session to the
smolmodel. The transcript has your first request and the newest steps, tool calls, and results. It starts at the last compaction and has a maximum of 48,000 characters. - The model replies
learn: none, or it gives a tag, one or two sentences of approximately 20 words, and an explanation. Most checks end withnone. - The sentence becomes the card. The card does not start an agent turn and does not write to the session.
- The extension keeps each shown topic for three days. The model gets this list, and the extension drops a new card that has the same topic.
- Two of your prompts clear an unanswered card. Slash commands and
!shell lines do not count. An open explanation stays until you close it. - If your prompts clear three cards in a row, the extension skips the next
automatic check. Each next card that your prompts clear doubles the skip, to
a maximum of 16 checks. An answer to a card stops the skips. These skips do
not apply to
/ysk check. Each running omp keeps its own count, so cards in other panes do not change it. Claude Code keeps one count for all sessions. Knew this already,Understood, andChat in main sessionrecord the topic as known. The extension keeps the last 50 known topics, with no time limit. The model gets this list, and the extension drops these topics.
When a long session exceeds the 48,000-character context budget, user instructions and the latest compaction summary take priority over routine assistant and tool output. Selected context stays in chronological order. Oversized instructions are excerpted rather than kept in full.
An accepted new user request cancels an unfinished check, so its old result cannot appear later. Ordinary tool turns and slash commands do not cancel it. An explanation you requested keeps running when you submit a new request.
The last successful check is reused when its full input and model configuration match. A reused check makes no model call, resolves no credentials, and does not wait for request pacing. Failed, cancelled, truncated, and malformed replies are not reused. Explanations are generated on demand rather than cached.
The cache exists only in the running extension. A new accepted user request,
session switch, shutdown, or /ysk off clears it. Model configuration comparison
does not rerun dynamic header commands. Different output from an unchanged
header command alone does not invalidate a cached result.
Checks and explanations share a five-second gap between request starts in each running omp. A request can wait before inference starts. The gap and provider cooldown survive session switches. They are not shared across omp processes and do not limit the main agent's requests.
Switching sessions, shutting down omp, or using /ysk off cancels pending side
requests, including requests that are waiting for pacing. 0 cancels a pending
explanation without showing an error.
Digits go to the card only when the prompt box has focus, the prompt box is empty, and no dialog is open. Thus, typed text and approval prompts keep their keys.
| card | keys |
|---|---|
| card | 1 learn more · 2 knew this already · 0 dismiss |
| one moment… | 0 cancel |
| explanation | 1 understood · 2 chat in main session · 0 dismiss · not shown: 3 simpler · 4 shorter · 5 more detail |
| couldn’t write | 0 ok |
commands, environment, files
| Command | What it does |
|---|---|
/ysk |
Shows on or off, the side model, the current card, and the checks that it will skip |
/ysk check |
Checks now and tells you if it finds nothing. Identical inputs may reuse the last successful result |
/ysk on · /ysk off |
Turns checks on or off. The setting stays for all sessions |
/ysk 1 … /ysk 5 · /ysk 0 |
Selects a card choice. Use it when the prompt box has text |
| Variable | Meaning |
|---|---|
OMP_YSK_DEBUG=1 |
Automatic checks also tell you when they find nothing or when they skip |
| File | Holds |
|---|---|
~/.omp/agent/you-should-know.json |
On or off, the topics from the last three days, and the known topics |
The extension logs each failed side request to the omp log. Failures never print
to the chat. The card shows one short line instead, such as
✦ Couldn’t check the session (busy, retry in 30 s) · 0: OK. Press 0 to close it.
Each side request has a 15-minute deadline. It starts after pacing. If the provider sends no stream event within 90 s, the request retries and falls back.
Server overload ("high demand", 5xx, 408), network drops, and empty replies are
retried one time, 5 s later. If the model still fails, the request falls back to
openai-codex/gpt-6-luna at max reasoning when a Codex subscription is logged
in. The session's main model is never used. Timeouts and bad requests are not
retried. While it retries or falls back, the omp footer shows the step, such as
You should know: busy, trying gpt-6-luna….
Rate, concurrency, capacity, quota, and credit-balance failures put that model into a cooldown using omp's rate-limit backoff helper. Requests to a cooling model skip it without contacting the provider and try the next model.
An automatic check shows its failure card one time in each session. /ysk check
and explanations show every failure. If a rewrite fails, the card keeps the
current explanation.
Claude Code 2.1.287 added a built-in plugin, You should know. It is a second agent that watches a long task and tells you about things that you possibly did not see. omp has an advisor, but the advisor reviews the work of the agent and talks to the agent, not to you.
This extension adds the same behaviour to omp. It has the same six-step interval, the same card and choices, and the same word limits: 100, 45, and 160. Claude Code is not open source, so the prompts here are new text. Only the fixed text on the card (tags, choices, and status lines) is the same as in Claude Code.
- The extension works only in the interactive TUI and only for the main agent. It does not watch subagents.
- When a card shows, a digit that you type first into an empty prompt goes to the card. Close the card first, or start the message with a different character.
- Each check is one
smolcall with a maximum of 48,000 characters of transcript, approximately 12k tokens. Each explanation is one more call. - The side model can be wrong. A card is a reason to examine the work. It is not a decision.
bun install
bun test
bun x tsc --noEmit
omp --extension=./src/index.tsKeep the =. omp 18.4.9 reads -e ./src/index.ts as a chat message.
src/core.ts has the testable logic, src/prompts.ts has the two prompts, and
src/index.ts connects the extension to omp.
test/extension.e2e.test.ts loads the real extension and sends Gemini
requests to a local HTTP fixture. It checks high reasoning, pacing,
cooldown, first-event handling, and cancellation without using your accounts.
The fixture supplies the host context and captures rendered cards. It narrows
the development package's host barrels to real exports; the completion library
and providers stay real. It does not test the full TUI, live provider capacity,
account rotation, or the complete 15-minute wait.



