Skip to content

feat(plugin): one status-line timer, no cold segment, pinged in cyan; remove 12 deprecated stubs - #660

Merged
OsherElhadad merged 3 commits into
mainfrom
feat/statusline-v2
Oct 22, 2026
Merged

OsherElhadad merged 3 commits into
mainfrom
feat/statusline-v2

Conversation

@OsherElhadad

Copy link
Copy Markdown
Collaborator

Round 2, sections A (status line) and C (stubs) for the OSS plugin.

Status line

  • One timer, the main agent's. The per-agent list is off by default (--show=agents restores it); the mods show sub-agents.
  • The two alternating timers. Reproduced with TestStatuslineMainClockDoesNotAlternateBetweenSources (red before). _cache_view trusted the proxy's cachestate copy for only 3 s (cs_age <= 3), then let Claude Code's own prompt_cache.expires_at win whenever it was later. The copy is refreshed every 10 s, so the clock read ~4:00 right after a refresh, jumped to ~4:09 three seconds later, and dropped back at the next refresh. The proxy now drives the clock while its copy is under 11 s old. The context bar's used-tokens override used the same 3 s cutoff and is aligned. Separately, the line could show a second clock next to the main one (agent ● 4:55, agents 2 · soonest); that is gone with the default layouts.
  • Cold leaves out the cache and next segments entirely.
  • Pinged (last touch a ping, or a keep-alive plan holds it) is cyan with the loop mark; otherwise green, amber in the last minute, red in the last 15 s.
  • Manual pings: saved $0.31 of $2.10 session ↻ $0.84 once manual_pings.count > 0 (saved_usd is already net of the ping cost). Hidden at zero or on older servers.
  • No new skill; nothing makes the model run a tool.

Stubs

Deleted the 12 skills (and the 7 that existed in the Codex marketplace), the cg.py aliases whose only purpose was a stub (savings, cache, waste, adapt; insights savings|cache|tools are the real entry points), their goldens, and the doc tables. TestDeprecatedStubSkillsStayDeleted keeps them gone. cg.py still redirects a write typed under a read command.

Tests

Full go test ./context-guru-plugin/ passes. Goldens updated deliberately: cold cases lose the cache segment; agent-list cases now run with --show=agents.

… remove 12 deprecated stubs

Status line
- One clock only: the main agent's cache. The per-agent list is off by default (--show=agents
  restores it); the mods show sub-agents.
- The clock no longer alternates between two values. The proxy's copy was trusted for 3 s and then
  Claude Code's own expiry won whenever it was later, flipping back at each refresh (the copy is
  refreshed every 10 s). The proxy now drives the clock while its copy is under 11 s old.
- A cold main cache leaves out the cache and next segments entirely.
- A cache kept warm by pings (last touch a ping, or a keep-alive plan) is drawn in cyan with the
  loop mark; otherwise green, amber in the last minute, red in the last 15 s.
- The saved figure shows what manual pings saved (manual_pings in /api/stats), e.g. `↻ $0.84`.

Stubs
- Delete the 12 "moved, kept for one release" skills (savings, cost-trends, insights-components,
  cache, cost-cold, cost-compact, insights-idle, waste, cost-unused, insights-capabilities,
  cost-today, adapt) and the Codex copies, their cg.py aliases (savings, cache, waste, adapt) and
  goldens, and the docs tables. A guard test keeps them deleted.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Osher Elhadad <[email protected]>
Osher Elhadad added 2 commits October 22, 2026 11:28
Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Osher Elhadad <[email protected]>
A refresh delayed by back-off or a slow server let Claude Code's own expiry win at 11 s and
the timer jump again. The context bar keeps its 11 s cutoff for the token count.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Osher Elhadad <[email protected]>
@OsherElhadad
OsherElhadad merged commit 902d389 into main Oct 22, 2026
6 checks passed
@OsherElhadad
OsherElhadad deleted the feat/statusline-v2 branch October 22, 2026 12:01
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Oct 22, 2026
amiddavid added a commit that referenced this pull request Oct 22, 2026
…0.2.4) (#673)

chore(plugin): bump the plugins for v0.5.4 (Claude Code 0.5.4, Codex 0.2.4)

Both plugins changed in this release, so installed plugins must update.

- Claude Code plugin: the new band and pane (#659), one status-line
  timer and the 12 old commands removed (#660), the Ping header and
  ping reasons (#667), and the save-more settings card (#648).
- Codex plugin: the vendored cg.py and the save-more settings card
  from #648, #660 and #667.

Assisted-By: Claude
Signed-off-by: DAVID AMID <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant