Skip to content

feat(plugin): /context-guru:insights groups savings, cache and tools - #544

Merged
amiddavid merged 3 commits into
mainfrom
feat/insights-group
Oct 15, 2026
Merged

amiddavid merged 3 commits into
mainfrom
feat/insights-group

Conversation

@OsherElhadad

Copy link
Copy Markdown
Collaborator

What

A naming and grouping change: one command, /context-guru:insights, covers savings, cache and tools.

Command Shows
/context-guru:insights savings, cache and tools, one after another, each under a rule as wide as the terminal
/context-guru:insights savings the savings screen (was /context-guru:savings)
/context-guru:insights cache the cache screen (was /context-guru:cache)
/context-guru:insights tools what you carry and never use (was /context-guru:waste, renamed only)
  • Output and logic are unchanged: each subcommand calls the same function as before. Only the names in the More: lines, the home screen's command list and the estimate lines change.
  • insights used to redirect to status; it is now this command.
  • savings, cache and waste, the older insights-capabilities (now insights tools), insights-components (insights savings) and insights-idle (insights cache), and the cost-* names stay for one release as redirects that say where the command moved.
  • Codex: $context-guru-insights, with the same structure and redirects.
  • The read is pre-approved with the quoted pattern cg.py" insights:*, which the skill scan test covers.

Tests

  • New goldens for insights, each subcommand, insights tools details and the waste redirect.
  • The redirect test now expects the new names.
  • The plugin suite, the scan test and the Codex tests pass.

Docs

docs/plugin/insights.md, the renamed savings/cache/tools pages, the command table and migration table in docs/plugin/index.md, the README command list, and the Codex README.

Stacked on #526.

@OsherElhadad OsherElhadad left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE at 11ad23e (stacked on #526 dded586). (Posted as a comment: GitHub does not let the author account approve.)

  • Naming and grouping only. cmd_insights dispatches savings, cache and tools to the same cmd_savings, cmd_cache and cmd_waste functions, and the old commands stay in CMDS. The output changes only in command names: the More: lines, the home list and the estimate lines. The remaining golden additions are the new insights screens, built from the existing synthetic fixtures.
  • Pre-approvals. Every redirect and old-name skill now pre-approves the same quoted cg.py" insights:* read, so nothing new is pre-approved. I ran four write-shaped commands under insights against a stub that records methods (insights apply tools x@y, insights tools apply x@y, insights revert tools, insights savings --force apply). Each exited non-zero and sent no request at all.
  • Codex parity. The Codex skills mirror these (insights plus the redirects), and the two copies of cg.py are byte-identical. The Codex tests pass (40, unittest).
  • gofmt and go vet are clean. The plugin suite passes; two install-port tests failed once under load and passed on rerun (-count=2). CI is green, and the commit is signed off with no AI attribution. The PR body has no figures.

Nit, non-blocking: cg.py insights <unknown> prints the save-more usage line rather than an insights one.

This approval covers 11ad23e.

@OsherElhadad OsherElhadad left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-check: APPROVE at de094af. git range-diff against 11ad23e shows the insights commit unchanged (now 7015d9a on #526's a9b9523) plus one fix, de094af. A change typed under insights now prints the exact command, because insights is dropped from the leftover words, and the new apply-under-insights golden pins it. go vet is clean, the plugin goldens and the scan test pass, and the two cg.py copies are identical. The 40 Codex tests pass and CI is green. Signed off. This approval covers de094af.

@OsherElhadad OsherElhadad left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-check: APPROVE at 072a17b. insights <unknown> now prints insights' own usage, pinned by the new insights-unknown golden, and both cg.py copies change identically. The stale cc-remove-mcp-and-skills .cast and SVGs are deleted, and nothing in docs, the README or the plugin references them. The goldens and scan test pass, go vet is clean, CI is green and it is signed off. This approval covers 072a17b.

Osher-Elhadad added 3 commits October 15, 2026 13:39
/context-guru:insights shows the three screens one after another;
insights savings, insights cache and insights tools (the old waste) show
one. Output and logic are unchanged; only the names move. savings, cache,
waste and the older insights-* and cost-* names are one-release redirects
to the new names, on Claude Code and Codex. The home screen and the
estimate lines name the new commands.

Signed-off-by: Osher-Elhadad <[email protected]>
…e; drop a stale screen recording

Signed-off-by: Osher-Elhadad <[email protected]>
@amiddavid
amiddavid force-pushed the feat/insights-group branch from 072a17b to 5559f25 Compare October 15, 2026 10:39
@amiddavid
amiddavid changed the base branch from feat/adapt-command to main October 15, 2026 10:39
@amiddavid
amiddavid merged commit 3051da9 into main Oct 15, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Oct 15, 2026
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.

2 participants