v0.21.0: check + session-summary — the advisor, wired into your world - #7
Open
lroolle wants to merge 2 commits into
Open
v0.21.0: check + session-summary — the advisor, wired into your world#7lroolle wants to merge 2 commits into
lroolle wants to merge 2 commits into
Conversation
The statusline never runs when you're away — exactly when expiring capacity needs a voice. Instead of a daemon, `check` exposes the advisor's judgment as an exit code (0 calm / 1 opportunity / 2 pressure / 3 unknown-or-stale) with the plain verdict on stdout, for tmux segments, cron notifiers, and scripts. Model context for the scoped clauses comes from the last logged snapshot — the first consumer of the widened `model` field. `session-summary` gives one-line session retrospectives from the usage log, designed as a SessionEnd hook (hook JSON on stdin, only session_id read; bare runs fall back to the last logged session). Window deltas are positive-delta sums — the profile builder's rule — so a session straddling a 5h reset still reports what it consumed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
README scripting section (cron + tmux + SessionEnd hook recipes), CHANGELOG entry, counts synced to 334 tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lroolle
force-pushed
the
feat/check-session-summary
branch
from
July 29, 2026 06:05
cccc810 to
88dd3dd
Compare
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.
Stacked on #6 (merge that first; this PR's base is
feat/waste-ledger).What
Two subcommands that take the advisor beyond the render loop — the statusline never runs when you're away, which is exactly when expiring capacity needs a voice. Still no daemon: we provide the judgment, the host provides the plumbing.
statusline.sh check— the advisor as an exit code:Wire it into tmux (
status-right '#(statusline.sh check)'), cron notifiers, or CI. Staleness guard follows the state-dir contract (>1h = "unknown", not stale numbers presented as now). Model context for scoped clauses comes from the last logged snapshot — the first consumer of #6's widenedmodelfield.statusline.sh session-summary— one-line session retrospectives, designed as aSessionEndhook (hook JSON on stdin; bare runs summarize the last logged session):Window deltas are positive-delta sums (the profile builder's rule), so sessions straddling a 5h reset report what they actually consumed.
Verification
🤖 Generated with Claude Code