Repository navigation
Choose every setting for the user, and add a monthly spending limit - #22
Merged
Merged
Conversation
Settings now opens with the API key, the model in use and one spending limit. Everything else is behind "Show advanced settings", with values that work, and nothing was removed. - Models are automatic: the first Opus the key offers, for requests and for plans. A pick by hand still wins. No model ID is written into the user's settings. - Effort per kind of work, fitted to the levels a model reports: high for requests and the queue's search, xhigh for plans, medium for a look at a page. - No call to Claude has a token budget. The queue's search has 24 steps of its own, a look 40, a request 40 and a plan 60, with 60 minutes of working time before a run pauses to ask. - Tool results are capped at 8 to 64 KB, so a code list or a long outline arrives whole. - Looking at the page is on by default (the owner's decision; rule 9 and its tests are changed with it). - A monthly spending limit, $200 by default, is a kill switch: it is read before every call to Claude, by every kind of work. It replaces the per-pull cost ceiling, which no longer exists without budgets. - Migration 0010 moves an existing install to the new defaults once and keeps values the user changed by hand. Decision 11 records it; decisions 7, 8 and 9, the README, the user guide, the architecture notes and CLAUDE.md are updated. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T34mysyME89SCok2YZSRT8
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d0b89f5f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…equest is sent again Two gaps in the monthly spending limit, found in review. - The month's spending was summed over runs by the month each began, so a run paused in one month and continued in the next went on uncounted. Each reply is now counted in the month it is recorded (claude_months, migration 0011, kept up by runs.save). Earlier runs count in the month they began. The table is not content: Delete all content keeps it. - A model call that failed part-way could be sent again twice without the limit being read, and what the failed attempt cost was not saved until later. The partial usage is saved at once, and the limit is read before every request that is sent again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T34mysyME89SCok2YZSRT8
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 this does
A user pastes an API key, signs in to the code site, and everything works. There is nothing to choose in Settings. Every setting is still there, behind Show advanced settings, with a value CodePull picked.
Settings screen
What CodePull now chooses
Pacing, text sharing (Outlines) and the library settings are unchanged.
The spending limit is a kill switch
claude_months, migration 0011), so a request continued into a new month is counted there. A request that failed part-way is not sent again past the limit. Both came out of review and are in the second commit.Existing installs
Migration 0010 runs once: both models go to Automatic, a step limit or plan size still at the old default moves to the new one, and a stored "off" for looking at the page is removed. Values changed by hand stay, except a hand-picked model, which the app cannot tell from its own pick.
Things to know before merging
CLAUDE.md, decision 8, the README and the tests that pinned "off by default" are changed with it. What the fallback can do is unchanged.docs/adr/0011-chosen-for-the-user.md) records the whole change and what was considered.assets/pricing.json, so a model with no price there is not seen by it. Every model the app picks by itself is priced, and a test keeps it so.Verification
On the head commit, locally on Linux:
npm run buildandnpm run format:checkpass.npm test: 234 unit tests pass, including new ones for the automatic model, effort levels, the kill switch in the tool loop, the look and the queue, the month's spending, and both migrations.npm run test:appunderxvfb-run: all nine Electron checks pass, including a new one that drives the kill switch through the real screens.CI passed on Windows, macOS and Linux for both commits.
https://claude.ai/code/session_01T34mysyME89SCok2YZSRT8
Generated by Claude Code