Skip to content

About

a side agent reads your omp session and flags what you'd miss — one card above the prompt, a plain-language explanation on demand.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

you should know, an omp extension. The card in the image says: Heads up · Two payment tests were silently skipped because DATABASE_URL is not set, leaving critical transaction logic unverified.

TypeScript Tested on omp 19.2.1 No runtime dependencies 23 tests Install

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.

look

omp in a shop API project. The agent counted 41207 order notes, ran migration 0042 on staging, and said that the migration dropped three unused columns. The card says: Heads up · Migration 0042 drops orders.customer_note, which still holds notes on 41,207 orders, and nothing backs them up before it ships. 1: Learn more, 2: Knew this already, 0: Dismiss.

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.

The open explanation for: Heads up · Checkout now retries a timed-out Stripe charge up to 3 times, but the retries carry no idempotency key. Title: A retry can charge a card twice. A short description, a two-line sketch of a charge that times out while Stripe completes it and the retry charges again, a before and now pair, and a last line that says to send an idempotency key before this ships. Choices: 1: Understood, 2: Chat in main session, 0: Dismiss.

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 omp prompt box after 2. It starts with: Here is a note offered by a side agent, and then the card and its explanation as a quote.

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:

A benchmark shows that product listing latency fell from 312 ms to 9 ms after the agent added a cache. The card says: You should know · Listings are now cached per region for 10 minutes, so a price edit reaches shoppers only when that region's copy expires.

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:

  • 3 uses simpler words.
  • 4 keeps only the main point.
  • 5 adds 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: OK

install

omp plugin install github:ubranch/omp-you-should-know

Then, 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.

how it works

  1. After steps 6, 12, 18, and so on, the extension sends the session to the smol model. 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.
  2. The model replies learn: none, or it gives a tag, one or two sentences of approximately 20 words, and an explanation. Most checks end with none.
  3. The sentence becomes the card. The card does not start an agent turn and does not write to the session.
  4. 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.
  5. Two of your prompts clear an unanswered card. Slash commands and ! shell lines do not count. An open explanation stays until you close it.
  6. 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.
  7. Knew this already, Understood, and Chat in main session record 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.

keys

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

reference

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.

why

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.

limits

  • 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 smol call 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.

development

bun install
bun test
bun x tsc --noEmit
omp --extension=./src/index.ts

Keep 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.

About

a side agent reads your omp session and flags what you'd miss — one card above the prompt, a plain-language explanation on demand.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages