mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
Documented new TUI Context tab
This commit is contained in:
@@ -27,6 +27,26 @@ Give me a quick summary of the codebase.
|
||||
|
||||
---
|
||||
|
||||
## Session context
|
||||
|
||||
OpenCode tracks token usage and cost for each session. You can open the **Context** tab from the context indicator in the session header.
|
||||
|
||||
- Hover the indicator to see a quick tooltip (tokens, % usage, cost).
|
||||
- Click it to open the **Context** tab.
|
||||
|
||||
The **Context** tab includes:
|
||||
|
||||
- Provider/model details and the model's context limit
|
||||
- Token totals (input/output/reasoning/cache) plus an approximate breakdown
|
||||
- The latest system prompt (if one was set)
|
||||
- Raw message JSON for debugging
|
||||
|
||||
:::note
|
||||
The breakdown is an estimate; providers tokenize content differently.
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## File references
|
||||
|
||||
You can reference files in your messages using `@`. This does a fuzzy file search in the current working directory.
|
||||
|
||||
Reference in New Issue
Block a user