feature: attribute tool-pruning savings — tokens and cost saved
@huang195 is already working on this.
Since Sep 10, 2026.
Assessment
This issue has not been assessed yet.
Description
Feature Description
The README claims tool-definition pruning saves 4–20% of the prompt on every turn. Nothing
reports the realised figure, so the claim is currently unfalsifiable.
Proposed Solution
- Per request: tokens removed by pruning and the cost that avoided
- Rolled into session and per-model totals
- Distinguish savings from cache effects so the two are not double-counted
- Report per agent, and report zero honestly for agents with no tool inventory — do not
present "no savings" as "no data" or vice versa
Additional Context
Part of the Cortex v0.9.0 release, stretch scope. Note that toolscan/known.go hardcodes
Claude Code built-in tool names, so pruning currently applies to Claude Code only.
- Dominant language
- Go
- Stars
- 13
- Forks
- 40
- Avg merge
- 12h 9m
- Merged PRs (30d)
- 164
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rossoctl/cortex
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
nice to have
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bazel-contrib/rules_go#4721 · 2 comments ·
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
bug carvel-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100