Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
docs(agent-tui): add /context overlay to slash-commands and context pages
thinhlpg4bd4c1188811
diff --git a/docs/src/pages/docs/agent/context.mdx b/docs/src/pages/docs/agent/context.mdxindex bdd5fd9ba..3bf1c61ba 100644--- a/docs/src/pages/docs/agent/context.mdx+++ b/docs/src/pages/docs/agent/context.mdx@@ -31,6 +31,26 @@ At the end of a turn you get a receipt:`↑` is context sent, `↓` tokens produced, then elapsed time and throughput. The two differ onpurpose: context is the size of the request, output is what came back.+### The `/context` overlay++```+/context+```++Opens a centered overlay on top of the live transcript (the turn keeps running behind it).+Inside is a rail that shows the fill as a percentage of the window, a visual bar with the+`^` marker at the current usage point and the `X` auto-compact reserve zone, and a token+scale, followed by a per-category breakdown: System prompt, System tools, Project context,+Skills, and Messages. Press <kbd>Esc</kbd>, <kbd>q</kbd>, or <kbd>Ctrl</kbd>+<kbd>C</kbd> to+close; closing never cancels the turn.++The headline fill uses the provider's own `prompt_tokens` when available. After a compaction,+rewind, or resume the provider count is reset, so the number falls back to an estimate+(labelled *estimated*) and climbs back to the real value on the next request.++The report is a point-in-time snapshot taken when `/context` is typed, so numbers stay fixed+until you open it again.+## Automatic compactionAs the conversation approaches the window, older turns are summarized to make room. The reserve isdiff --git a/docs/src/pages/docs/agent/slash-commands.mdx b/docs/src/pages/docs/agent/slash-commands.mdxindex 6666595d2..209e19a13 100644--- a/docs/src/pages/docs/agent/slash-commands.mdx+++ b/docs/src/pages/docs/agent/slash-commands.mdx@@ -46,6 +46,7 @@ See [Sessions](/docs/agent/sessions).| `/plan [exit\|text]` | Enter read-only plan mode, optionally with a first message || `/todo [add [phase\|] text \| clear]` | Open the todo editor, append an item, or drop all || `/compact` | Summarize older turns to free up context |+| `/context` | Show what is filling the context window, by category - opens a live overlay while the turn keeps running || `/cancel [N]` | Cancel queued messages. Bare: all, or an index |See [Run modes](/docs/agent/run-modes), [Goals and todos](/docs/agent/goals-and-todos), and