Skip to content

[pull] main from cobusgreyling:main#52

Merged
pull[bot] merged 3 commits into
Ricky-G:mainfrom
cobusgreyling:main
Jul 22, 2026
Merged

[pull] main from cobusgreyling:main#52
pull[bot] merged 3 commits into
Ricky-G:mainfrom
cobusgreyling:main

Conversation

@pull

@pull pull Bot commented Jul 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Tusm11 and others added 3 commits July 22, 2026 11:54
* Add prompt-caching cost estimate to loop-cost

loop-cost currently assumes every token costs full price on every run,
with no way to model the discount from prompt caching (STATE.md, skills,
and system prompt content that's identical across scheduled invocations
of the same pattern). This adds:

- stable_fraction to each pattern's cost block in registry.yaml
  (portion of report/action tokens that's stable, cacheable content)
- a --with-caching flag on loop-cost that applies Anthropic's published
  cache-read discount (~10% of base input cost) to the stable portion,
  reporting the token and percentage reduction alongside the existing
  scenarios

Patterns without stable_fraction set are unaffected (fully backward
compatible — the caching scenario is simply omitted).

* Add stable_fraction to registry schema, remove stray file
loop-cost's --with-caching flag (added in a prior PR) reports a
discounted 'caching' scenario alongside noop/report/action/realistic,
but loop-context's --budget-from-pattern had no way to resolve a
budget from it. This adds 'caching' as a valid --budget-scenario,
passes --with-caching through to loop-cost when it's selected, and
gives a clearer error pointing at registry.yaml's stable_fraction
when a pattern doesn't support it yet.

Depends on the stable_fraction/--with-caching work in loop-cost.
Daily triage failed after #321: tsc cannot resolve
@cobusgreyling/readiness-core when only loop-audit is npm ci'd.
Match audit.yml / release-loop-audit pattern.

Co-authored-by: Cobus Greyling <cobusgreyling@Cobuss-MacBook-Pro-2.local>
@pull pull Bot locked and limited conversation to collaborators Jul 22, 2026
@pull pull Bot added the ⤵️ pull label Jul 22, 2026
@pull
pull Bot merged commit 8a776a0 into Ricky-G:main Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants