Plan: status line as a value readout; ox usage reshaped and renamed
Context
Source: recording "Ox CLI status line design feedback", Oct 26 2026, Dev and Ryan (rec_01a17990-4cb6-7bf9-9584-4728f14b54f1, cnv_ twin). No decisions extracted yet; this plan is read from the transcript. Baseline code: main at de79a35d (status line #1528/#1531, usage report + pane #1534 all merged).
Ryan's principle: every pixel draws human attention. Unrequested surfacing (the status line) has a far higher bar than an on-demand report. Show value delivered, not activity.
Status line — what changes
- Remove the activity feed: no "ran doctor" (doctor should be invisible), no "posted murmur", no whisper text ("you forced me to read something I don't know or care about"; murmurs are for agents and already flow through the content).
- Replace with an always-on session value readout, like Claude's token/cost status lines: what influenced this session — e.g.
1 murmur · 20 discussions— counting only items the AI coworker judged useful. Tiny (~20 chars), a refined summary of the full report. - Keep the red
● recdot; recording status must also be visible when the status line is off (already true viaox session status). Ryan found "rec" ambiguous next to● ox; placement/wording may be revisited. - Must coexist with third-party status lines (ox keeps the top row; user's command chained beneath — already shipped in #1531).
Usage report — what changes
- Remove the
used: not yet reportedline (nobody knows what it means). - Drop the word "injected"; say
16,000 tokens(keep the count — Ryan liked it). - Show what was read, not just "read discussion": discussion titles with
/c/<id>links; same for plans, bulletins; team skills available; whatox queryreturned. - Show only murmurs the AI coworker found useful, never all received (99% are not; volume will grow).
- Rename:
ox usageis reserved for future paid-plan quotas (like Claude usage);statusis wrong too. Dev had consideredox session. Name TBD in this plan. - Do not gate on deterministic co-author scoring first — ship the display, learn the metrics, fix co-author attribution later.
Codex
- Hook-based inline notices look rough; no agreed alternative. Out of scope beyond removing the activity-feed notices that the status-line redesign retires.
Decisions taken in this planning session
- New name:
ox brief(Dev). Skillox-cli-brief, pane/ox-brief, config keybrief_pane, pluginox-cli-brief-pane@ox-cli-brief. - Status-line readout: counts by kind, e.g.
● ox 3 discussions · 1 plan · 1 murmur ● rec; idle● ox ● rec.
Ownership split (agreed with peer session "ox-43"; Dev told it: "you are working on the ranking system while that agent should focus on displaying the information")
- ox-43 owns ranking/relevance AND metadata capture: used-evidence events (self-report at moment of use, consultscan at finalize, LLM judge), per-session rollup in session meta.json, recall-preamble tracing, whisper ids in
<entry>XML, and additivecontexttrace.Eventfieldstitle,url, canonicalrefwritten by recordOxToolCall, executeQuery, conversation/plan commands, traceWhisperDelivery (sender display name), prime docs. Itsbuild.gochanges put on eachsurfaced[]item:ref,title,url,from_name,used {evidence: read|cited|reported|judged, seq}, and top-levelrelevant {count, surfaced_count, by_evidence{read,cited,reported,judged}}. Co-author logic stays display-only; nothing inhooks_commit_msg.go. - This plan owns display:
internal/usage/render.go+ types (field renames), the pane mod, the status line, and the rename. The renderer treatstitle/url/from_name/used/relevantas optional (older traces lack them) and falls back toref. - Sequencing: the rename PR lands first (ox-43 branches its capture PRs from main after it merges, so nobody edits
cmd/ox/usage.go/internal/usage/build.goconcurrently). The display PR follows. Message ox-43 when the rename merges.
Delivery: two PRs, in order
Work in the worktree /Users/devdhawan/Documents/GitHub/sageox/ox-usage content = main @ de79a35d (pull main first). Fleet of agents per PR, small conventional commits, Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>, PR body last line: the exact SageOx-Session: link from the current prime output (now https://sageox.ai/c/ses_01a17a3b-59be-7599-b012-c9aa746d43fa; re-read prime if the session changes).
PR 1 — feat(brief): rename ox usage to ox brief (lands first; ox-43 branches after it merges)
Nothing has shipped in a release tag (newest v0.24.2), but main builds already install the pane, so keep a one-release deprecated shim and clean up the old plugin.
| Surface | Change |
|---|---|
| Command | Light rename (Dev's call): Go package internal/usage and all usage*.go file names stay to avoid conflicts with ox-43, who is editing internal/usage/types.go and build.go now. cmd/ox/usage.go: Use: "brief", Short "Show what SageOx gave this session". Keep a hidden Deprecated: "use 'ox brief'" usage command reusing the same run func (precedent cmd/ox/session_show.go:76-81). cmd/ox/usage_pane.go: `ox brief pane enable |
| Classifier | internal/oxactivity/classify.go:372,419: add brief row ("checked ox brief", KindOther); keep the usage row while the shim exists. |
| Config | internal/config/user_config.go:312,480: BriefPaneEnabled (yaml brief_pane_enabled), IsBriefPaneEnabled() falls back to the old field. cmd/ox/config_settings.go:252,854,1175,1513: setting brief_pane; usage_pane becomes Deprecated: true with a DeprecationNotice (pattern at 260-290). cmd/ox/config_get.go:207. |
| Pane mod | internal/usagepane keeps its Go name; inside it: PluginName "ox-cli-brief-pane", MarketplaceName "ox-cli-brief", folder mods/claude-code/ox-cli-brief-pane; mod/.claude-plugin/{plugin,marketplace}.json; register.tsx (TITLE ox brief, command ox-brief, pane/atom ids, ● ox brief); logic.ts (PANE, PLUGIN, USAGE_ARGV = ['ox','brief','--json','--recent','0']); tests + d.ts. Plugin name must equal plugin.json and marketplace.json names (used by Ref()). |
| Legacy cleanup | In cmd/ox/doctor_usage_pane.go (file name kept; slug brief-pane, name "Brief pane"): legacyUsagePaneInstaller() = claudemod.Installer{Dir: claudemod.Dir("mods","ox-cli-usage-pane"), Plugin: "ox-cli-usage-pane", Marketplace: "ox-cli-usage", Claude: in.Claude}; when the folder exists or Status().Installed, --fix calls Disable (removes plugin, marketplace, folder); otherwise a warning. Same in cmd/ox/integrate.go uninstall. Called from doctor and ensureBriefPane (cmd/ox/init.go:781). |
| Skill | extensions/skills/ox-cli-usage → ox-cli-brief (SKILL.md name + $ox brief --json), extensions/skills/catalog.go:42, internal/prime/capability_table.go:165. Old copy retires via the skill-manager lockfile sweep (internal/skillmanager/plan_retirement.go) — verify with an existing retirement test. |
| Docs | make docs (adds docs/reference/brief/**, removes docs/reference/usage/**), docs/reference/index.mdx, docs/guides/agent-compatibility.md (~70, ~89), CHANGELOG.md:13-14 + cmd/ox/release_notes.md (edit the two Unreleased bullets in place). |
Commits: feat(config): add brief_pane, deprecate usage_pane → refactor(usagepane): rename the Claude Code pane plugin to ox-cli-brief-pane → feat(doctor): remove the old ox-cli-usage-pane plugin once → feat(brief): rename ox usage to ox brief, keep a hidden deprecated alias → feat(skills): rename ox-cli-usage to ox-cli-brief → docs(brief): regenerate reference and guides.
Verify: go test ./cmd/ox -run 'Brief|Usage|Pane|Config|Classify', go test ./internal/usage ./internal/usagepane ./internal/config ./internal/oxactivity ./extensions/..., make lint, make docs && make docs-check. Live: ox doctor --fix removes ox-cli-usage-pane@ox-cli-usage from claude plugin list and installs the brief pane; /reload-plugins, /ox-brief opens; ox usage prints the deprecation and still works. Then message ox-43 that the rename merged.
PR 2 — status line value readout + brief display (branch from main after PR 1 merges)
A. Status line: counts, not activity (internal/oxactivity, cmd/ox/statusline*.go)
Data flow: counters in oxactivity.State, keyed per harness session (StateKey), bumped by hooks. Not render-time trace parsing: ox statusline runs every 15 s under TestStatusline_LatencyBudget (<20 ms warm), the trace is per agent not per window, and the not-recording cache spans 7 days. Counters are correct by construction because the hook knows input.SessionID.
internal/oxactivity/state.go:State{Discussions, Plans, Docs, Sessions, Murmurs int; SeenRefs []string (cap 64, dedup "<refType>\x00<ref>"); UpdatedAt};Bump(bucket, ref) bool; dropLastAction*/LastWhisper*(old files decode to zero; no migration). ExportedRecordInfluence(projectRoot, agentID, harnessSessionID, refType, ref string) errorwrappingUpdateState— the hand-off API for ox-43's live evidence writers (ox agent <id> context used <ref>and the post-commitcited_commitdetector; confirmed by ox-43). Contract agreed with ox-43: acceptsrefType∈ {discussion,plan,doc/team-context/kb→Docs,session(ses_ ids and session names),murmur(whisper ids)}; unknown types return nil without writing; creates the state file if absent (never errors on a missing file); never blocks the caller. Buckets: Discussions, Plans, Docs, Sessions, Murmurs.internal/oxactivity/render.go:Segment{Discussions, Plans, Docs, Sessions, Murmurs}; line =● ox+" "+ non-zeroN noun(singular/plural) joined by dim·, numbers green, nouns dim; all zero →● ox. Fit order: drop the smallest non-zero count first (ties → rightmost) until it fits;● recis reserved first and dropped last (existing rule incomposeStatusline). DeleteFormatAge,DisplayName, whisper truncation,cleanText(no untrusted text remains).cmd/ox/usage_trace.go recordOxToolCall: afterClassify, forKindRetrievalwithinvokedRefType∈ {discussion, plan, team-context} callRecordInfluence(reads are deliberate acts).murmur list,query,code,session,decision,agent primedo not count. Replaces therecordStatuslineActivitycall. Still gated bystatuslineEnabled(), not byTraceConsultationsEnabled().- Murmurs count only via
RecordInfluencefrom used-evidence (ox-43). Until their writers land, the murmur bucket stays 0 — acceptable per Ryan ("only if it actually helped"). cmd/ox/statusline.go: delete action/whisper TTLs, the murmur cache and the wholelatestTeammateMurmur/scanRecentMurmurssection and their imports;buildOxStatusline= LoadState →Segment()→ recording flag. RewriteLonghelp (75-92) with the new example and fix the stalesettings.jsonwording.cmd/ox/statusline_hooks.go: deleterecordStatuslineActivity,recordStatuslineWhisper;cmd/ox/agent.go:1384drop the whisper call (collapsewriteWhispersForback towriteWhispersifsessionIDis otherwise unused).- Codex:
cmd/ox/agent_hook_codex_activity.go— deletecodexToolNotice,codexWhisperNotice,codexPromptStdout,codexColorAllowed, version/meta helpers; keepwriteCodexHookJSON+emitCodexAfterTool(whispers still need the envelope) with an emptysystemMessage;agent_hook.go:512,596write toos.Stdoutdirectly. Codex gets no status line for now (no API); note in release notes.
Tests: rewrite internal/oxactivity/{render,state}_test.go (add TestRender_Pluralization, TestRender_ZeroBucketsOmitted, TestState_BumpDedupsRefs, TestLoadState_OldSchemaDecodesToZero); cmd/ox/statusline_test.go delete TestStatusline_ActionFreshness/TeammateMurmurs/NewerWhisperWins/MurmurReadIsCached…, add TestStatusline_CountsLine, rewrite FitsColumns (smallest drops first, rec stays), PerSessionState, LatencyBudget (seed counts, single bound), keep TestComposeStatusline_IdleKeepsMarks byte-exact ● ox ● rec; statusline_slow_test.go seeds counts; statusline_hooks_test.go → TestHandleAfterTool_CountsRetrievals (plan view → 1 plan, conversation show → 1 discussion, murmur list/query/heartbeat → nothing), respects off; codex tests reduced to TestCodexAfterTool_NoSystemMessage + whispers-only envelope.
B. Brief report display (internal/usage/{types,render,me,team}.go, pane mod) — display only
Wording (Dev's call): display label read, count word useful (pane header calls N · ~16k tokens · read N · useful N; ox brief me columns calls / tokens / read / useful / score). JSON keeps ox-43's field names (surfaced, relevant).
Data from ox-43 (optional, fall back to ref): surfaced[].{ref,title,url,from_name,used{evidence,seq}}, relevant{count,surfaced_count,by_evidence}. Keep those names untouched.
types.go:Injected→Context(json:"context",TotalTokens→Tokens json:"tokens");Used.Statusand thenot_recording/not_yet_reported/reportedconsts deleted (keepSelfReported/Retrieval/Consulted/SageoxScore/ProducedCommits/SelfReport); addSurfaced.Kinddisplay helper only if needed (derive fromRefType).render.go(80 cols, ≤24 lines, label col 11):
Rules: no "injected", noox brief · this session OxAb12 · claude-code · ● recording · 31 turns calls 6 checked murmurs ×3 loaded team context ×1 pulled plan ×1 context ~16k tokens prime:team 9.1k ▇▇▇▇▇ ox calls 5.5k ▇▇▇ whispers 0.2k read AGENTS.md · MEMORY.md · 3 team skills discussion Usage report design review ✓ https://sageox.ai/c/cnv_0192a3b4-… plan Usage receipts https://sageox.ai/plan/pln_4d8e2f query "auth token refresh" → 3 hits murmurs Ryan [wip] ("kept token TTL") score moderate · 2 commits ✓ used by the AI coworker (read / cited / reported / judged)usedrow, no "not yet reported"/"not recording" strings;✓whenusedpresent, legend only when a ✓ appears;murmursrow lists only items withused(received count stays JSON-only); URLs never truncated (wrapItemsmoves them to the continuation line); items withouttitlerenderkind ref; items withouturlbut with acnv_/rec_/pln_ref get one fromweblink(below);relevant.count/surfaced_countshown in the header asN of M usedwhen present.internal/weblink(new, small): moveartifactURL/idTypePrefixfromcmd/ox/pr_header.go:273-306with tests;Conversation(ep,id)(/c/),Plan(ep,id)(/plan/); callerspr_header.go:146,154,166,plan_share.go:241,session_url.go,conversation_share.go:103.brief.Input.Endpointset incmd/ox/brief.gofromendpoint.GetForProject(projectRoot). Never guess a link for slugs/docs.me.go: columnscalls / tokens / read / useful / score;useful=relevant.countwhen present else matched self-reports; guidance wording.team.go:injected→context,tok→tokens; stays aggregate-only, still routes toox recap.- Guidance (
types.go:197-211): printdisplayverbatim in a ```text fence + ≤3 sentences; claim "used" only for items withused; tokens are estimates; no time/dollar claims; self-reporting stays an instruction to the coworker but never surfaces to the human;trace.available=false→ reason +ox session start. (Self-report command may change to ox-43'sox agent <id> context used <ref> --why; keep readingused.self_report.commandfrom JSON so the text follows.) - Pane
internal/usagepane/mod/hooks/logic.ts:154-173: headercalls N · ~16k tokens · read N · useful N; deletehumanStatus;types/index.d.tsmirrorscontext,relevant?,surfaced[].used?; tests 112,144. - Docs: CHANGELOG + release_notes bullets rewritten (status line counts; Codex notices removed; brief wording),
docs/guides/agent-compatibility.md"Live activity line" → value readout (and fix.claude/settings.local.json),extensions/skills/ox-cli-brief/SKILL.md,make docs.
Tests: internal/usage/build_test.go drop UsedNotYetReported (63,162) and "you reported" (184), rename Injected→Context; render_test.go goldens regenerated (-update) and assert NotContains "injected"|"not yet reported"|"not recording"; add TestRender_MurmursOnlyWhenUsed, TestRender_URLOnContinuationLine, TestRender_FallbackToRefWithoutTitle, TestRender_RelevantHeader; render_edges_test.go:96,191, rollup_test.go:155; cmd/ox/usage_test.go:85,135; internal/weblink/weblink_test.go.
Commits: refactor(oxactivity): replace action/whisper state with per-session influence counters → feat(statusline): show counts of context that influenced the session → refactor(hooks): drop Codex activity and whisper notices → refactor(weblink): move artifactURL out of cmd/ox → feat(brief): context/read/murmurs display with sageox.ai links; drop the self-report nag → feat(usagepane): read the new report fields → docs(statusline,brief): describe the value readout.
Verify: go test ./internal/oxactivity ./internal/usage ./internal/weblink ./cmd/ox -run 'Statusline|Render|State|Codex|AfterTool|Brief|Display|Weblink', make lint, make docs-check, slow test TestStatuslineBinary_ColorReachesClaudeCode. Live in Claude Code: new session → ● ox ● rec; agent runs ox plan view <slug> and ox conversation show <id> → within 15 s ● ox 1 discussion · 1 plan ● rec; ox murmur list → unchanged; narrow terminal → smallest count drops, ● rec stays; /ox-brief shows the new layout; ox brief in a terminal shows no "injected"/"used" rows.
Enrichment (ox plan enrich, read-only)
- No prior art found. Collisions are this session's own earlier murmurs on the pane mod files, plus open PR #1360 (mikemikimike) touching
cmd/ox/init.go— keep theensureBriefPaneedit there to a rename so it rebases cleanly. - Expert routing: Ryan owns
config_settings.go,user_config.go,integrate.go,catalog.go,capability_table.go,pr_header.go, docs — matches the review list below.
Ryan review items
- New data path: pane folder
mods/claude-code/ox-cli-brief-pane+ legacy cleanup (PR 1);brief_paneconfig key. - Customer-facing wording:
brief,context,read,murmurs,useful, the ✓ legend; status-line nouns. - Codex loses its inline notices (no replacement yet).
- Doctor slug
brief-paneis a new telemetry key (usage-panenever shipped).
Coordination with ox-43 (confirmed)
- ox-43 calls
oxactivity.RecordInfluencefrom its two live writers (ox agent <id> context used <ref>, post-commitcited_commitdetector), passing the harness session id (must be the same Claude Codesession_idthe hooks receive andStateKeyuses), the item'sref_typeandref. Finalize-time evidence (scan, judge) does not call it. No rollup file. - Their PR 1 lands without the calls; they add them in their PR 2 once this plan's PR 2 (which ships the helper) is on main. Message ox-43 when each of my PRs merges.
- JSON array stays
surfaced(ox-43 adds fields to it); only the display label isread.Report.Endpointcarried asjson:"-". - ox-43's final shape (on its branch,
internal/usage/types.go):surfaced[]{ref, ref_type, from?, from_name?, topic?, title?, url?, seq?, via: prime|whisper|retrieval|recall, used?{evidence, seq?, grade: provable|reported|judged}};relevant{count, surfaced_count, by_evidence{read,cited,reported,judged}, items[], derived{category, reason?}};attribution{would_attribute, category, reason?, source, threshold};used.self_report{command: "ox agent <id> context used <ref> --why", batch_command, batch_example_line};used.statusgainsreported_none. My display PR deletesused.statusentirely (all values) and rendersgradeonly via the ✓ legend wording. Expect a trivial conflict incmd/ox/usage_test.go(~87, ~204:ExampleLine→BatchExampleLine). The harness session id they pass is confirmed to be the Claude Codesession_id(matchesStateKey).

