Repository navigation
feat: show the effort level Claude works at, next to its model - #131
Merged
kalaspuff merged 2 commits intoOct 20, 2026
Merged
Conversation
fctl-agent asks Claude with the get_settings control request once Claude has started and after each turn, and reports applied.effort in the session state. SessionDO keeps it in the session summary and writes it to D1's new claude_effort column; sessions.effort stays the level the session asked for. The session page's sidebar shows it under Model, and fctl show prints it. fake-claude answers get_settings and changes its effort level on `effort <level>`.
kalaspuff
approved these changes
Oct 20, 2026
kalaspuff
deleted the
fctl/73-is-it-possible-to-read-from-a-session-wh
branch
October 20, 2026 12:33
5 tasks
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.
The session page's sidebar showed the model a session runs on, but not its effort level, so nobody following a session could tell how hard Claude was working. fctl passes
--effortonly when a project or session sets one; otherwise Claude Code picks its own default (2.1.304 runs Opus 5.5 atmedium). Organization limits, Claude's settings and its environment can change that level, and it can change during a session:/effort highin a message, or the Claude apps over Remote Control. Claude'ssystem/initmessage, where the model comes from, has no effort level in-pmode.What changed
get_settingscontrol request, once Claude has started and again after each turn. It reports the answer'sapplied.effortin the session state (SessionState.effort:low…max, or empty when the model takes none). Claude answersget_settingsfrom its own state, without a model call, andappliedis what it sends the API after the session's--effort, settings, environment, organization limits and the model's default. The request doesn't block the supervisor:Claude::askreturns a future that another task waits on, and the answer comes back asWork::Effort. A Claude Code withoutget_settingsanswers with an error, and the session reports nothing.SessionState.effortandSession.effortare both optional. Older agents leave them out, and older control planes ignore them.claude_effort(migration0015_session_claude_effort.sql).sessions.effortstays the level the session asked for, which its runs pass to Claude. Overwriting it with the reported level, as happens withmodel, would make a resumed session keep that level instead of following its project's setting. The account export includes the new column.fctl showprintseffort:, and--jsonhaseffort.get_settings(--effort, elsemedium) and changes its level oneffort <level>or/effort <level>. The smoke test now also checks that its session reportsmedium.fctl showin the CLI doc, and the self-hosting doc's log line now says 16 migrations.Verification
get_settingsanswersapplied: {"model": "claude-opus-5-5", "effort": "medium", …}without--effort, andclaude-sonnet-5-5/lowwith--model sonnet --effort low. Sending/effort highas a message set the level with no model call (total_cost_usd: 0, a<synthetic>reply), andget_settingssaidhighafterwards.claude::applied_effort(on 2.1.304's answer,null, and answers withoutapplied); the supervisor asking at the end of a turn and reporting a change once, with a stub Claude Code that answers as 2.1.304 does;SessionStatewith and withouteffort; fake-claude'sget_settingsbefore and aftereffortturns.cargo xtask checkpasses, and so doescargo xtask dev --smoke, which now checks the effort level through the API.cargo xtask dev: afterfctl run --effort high "write notes.md",fctl showprintseffort: high. With the session page open,fctl send playground#2 "/effort max"changed the row tomaxwithout a reload, andeffort noneremoved it (the API followed after SessionDO's 5-second write-through). Stopping and resuming brought backhigh, the level the session asked for.FCTL_SETUP_TOKEN=dev-setup-token cargo xtask serveon a new data directory logsApplied 16 database migrations, andcargo xtask dev --smoke --server http://localhost:8787passes through it.Screenshots
At 1936fdd: the Session section of the sidebar, for a session started with
--effort high, 1440 px wide. The sidebar is hidden on narrower screens, so phones look the same as before.The privacy policy in hyperstructure/fctl-site needs no change: it describes sessions by their task, status, branch, pull requests and transcript, not their settings, and the effort level is kept as long as the session, like its model.
Made in the fctl session https://app.fctl.sh/s/ses_01M5CJW6J3ADQ4E3190AC5952E.