Repository navigation
Conversation
crush computes session cost purely from per-model cost_per_1m_* rates in config; a custom provider like casper with none set shows $0.00 forever. The `model add` example now carries the four --price-* flags as placeholders so the sidebar figure can be made meaningful. The real numbers deliberately stay in the hand-managed crushrc. If they are casper's internal rates they are employer-confidential, and the existing rule for casper (the API key is never committed, not even encrypted) applies: a public ciphertext is permanent, and agenix decrypts at activation while crush.json is built at eval time, so it would not fit mechanically either. Also records crush's misleading cached-cost names: --price-cache-create writes cost_per_1m_in_cached and --price-cache-hit writes cost_per_1m_out_cached, which is billed against cache-read tokens, not output (internal/agent/agent.go updateSessionUsage, crush main 76cc5c5). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016D2WAsAGBJZHkbWegd613b
Contributor
⊕ Entity-level changestools/cheat/cheatsheets/personal/crush/casper
Summary: 1 added, 1 modified, 1 deleted across 1 file functions and classes, not lines · sem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the four
--price-*flags to themodel addexample intools/cheat/cheatsheets/personal/crush/casper, as placeholders, with a note on where the real numbers belong.Why
crush computes session cost only from per-model
cost_per_1m_*rates (internal/agent/agent.go,updateSessionUsage). A custom provider with none set shows$0.00forever, so casper needs prices supplied by hand.Where the numbers live: only in the hand-managed
~/.config/crush/crushrc. If they are casper's internal rates, they stay out of this public repo entirely, agenix included. This follows the existing casper rule ("never committed, not even encrypted"). It also fits the mechanics: agenix decrypts at activation, butcrush.jsonis built at eval time.Naming trap, now recorded:
--price-cache-createwritescost_per_1m_in_cached, which is billed against cache writes.--price-cache-hitwritescost_per_1m_out_cached, which is billed against cache reads, not output tokens.Verification
internal/shellconfig/model.goand the cost formula fromagent.go, both on crushmainat 76cc5c5 (2026-09-30). I have not checked them against the crush version charm-nur pins. Runmodel addwith no arguments in your installed crush; the usage line lists the flags.🤖 Generated with Claude Code
https://claude.ai/code/session_016D2WAsAGBJZHkbWegd613b
Generated by Claude Code