Repository navigation
v3.11.0
Added
-
Awake: keep the machine up while Claude Code works. A new opt-in target,
./install.sh awake, holds the machine awake while any Claude Code session
is running or waiting on you, and/or for a timer, and releases it the moment
that stops being true. The hold is a child process (caffeinate -i -w
on macOS,systemd-inhibit --what=idle:sleepon Linux), so the kernel gives
the assertion back whatever happens to the holder - SIGKILL included.
Surfaces: anAwakesection with a countdown badge in the GNOME dropdown
and the macOS menu bar,claudectl awake [status|on|off|extend|recover], an
MCPawaketool, and an opt-inawakestatus-line segment. The shared
contract islib/pure/awake.js+ClaudeUsageCore/{Awake,AwakePower}.swift,
pinned bytests/fixtures/awake.json. Details:
wiki/Awake. -
Closed-lid mode (experimental, opt-in, a separate install step).
./install.sh awakelidlets an Awake session keep running with the lid shut:
on macOS throughpmset -a disablesleep, granted by a narrow sudoers rule
for exactly fourpmsetcommands (validated withvisudo -c, then proven
withsudo -n -l, and every callsudo -nso it never prompts); on Linux
through asystemd-logindhandle-lid-switchinhibitor, which needs no root
and changes no system file. A machine that cannot sleep with the lid shut
must stay on a hard, well-ventilated surface, never in a closed bag. -
Awake safety: a recovery journal, a backstop, floors and a ceiling. Every
persistent change is journaled before it is made and its flag cleared only
after the undo succeeded;scripts/awake-backstop.shruns every minute and
repairs the machine from that file alone, with no node, no Swift and no panel
(it takes the holder's own lock and refuses to cut a live session short); a
disable is read back after a settle, becausepmsetcan exit 0 while
something else puts the bit straight back; the battery floors (low power
below 40%, end below 10%, both configurable, plus a battery that is present
but unreadable twice in a row) and the thermal rules end a session rather
than warn about it; and every session is capped at 12 hours, measured from
now on every extension. The safety design is adapted from
Insomnia (MIT). -
Attribution guard: the author of record is the human who owns the change.
scripts/attribution-guard.shfails a pull request whose commits are
authored or committed by an address.github/attribution-allow.txtdoes not
name, carry aCo-authored-by:trailer naming anyone else, or end in an
assistant footer, and checks the pull request title and body for the same
(the agent body markers, a link to an agent run, an "Open in …" footer, a
"Generated with …" line). The name beside the address is its own check:
"Cursor Agent" or "Claude" fails whatever address it carries, and a real
person whose name collides is exempted by aname:line. It is narrow about
prose on purpose - only footer shapes, trailer keys and URLs count, and the
bare agent phrases only at the head of a line - so a commit about a database
cursor, or one naming three assistants mid-sentence, passes. Deleting the
allow file warns and falls back to the built-in address rather than failing
open. It runs as theattribution guardjob behindci-gate, preceded by
scripts/tests/attribution-guard-test.sh(32 cases over
scripts/tests/fixtures/), and as
attribution guard (edited title or body)from its own workflow on the one
eventci.ymldoes not see. The script, its suite and its fixtures are
copied byte for byte from a shared template repository; only the allow list
is this repo's. -
Rename a saved account without removing it.
claudectl account rename NAME NEW, therename_accountMCP tool, a pencil per login in the GNOME
preferences and a Rename button in macOS Settings. The login, its cached
usage and its kept weekly reset move with it;~/.claudeis not touched.
NEW must be free ignoring case (changing only the case is fine), and a
rename is refused while a switch is unfinished. It runs under the login's
refresh lock so a concurrent refresh cannot write the old file back. The
rule isrenameRefusal/renameKey, pinned in every port by
tests/fixtures/accounts.json. A rename is journaled in
.rename-pending.json: one killed half-way is finished or undone by the
next store operation instead of leaving two names on one single-use refresh
token, and no sync-back can bring the old name back while it runs.
Changed
- The GNOME extension's sample history, forecasts and alert latches moved from
extension.jsintolib/samples.js. No behaviour change;extension.jswas
at the 700-line ceiling.
Fixed
claudectl <group> <cmd> --helpno longer compiles the group word from argv
as a regular expression:claudectl 'session(' open --helpcrashed with
"Invalid regular expression" (CodeQL js/regex-injection).check-depsreported a livetrack:hold as "matches no pin" whenever only
the image digest had moved upstream, failing the weeklydepsjob.- The private-names guard now runs in CI: a
private-namesjob checks the
tree and the full history (--all) from thePRIVATE_NAMESsecret and
fails without it (a fork PR, which gets no secrets, is checked on main
after the merge). It reads identities through a private mailmap kept
outside the repo (PRIVATE_MAILMAP), so an old work address is mapped away
without being written into the public tree. Commits released before the
guard ran are declared by id in.github/private-names-history. - macOS: account rows no longer end in "…". The popup's 340 pt row put
the name, the email and the usage side by side, so all three were cut and
the weekly reset was lost. The name and the full usage now share the first
line and the email sits under the name. A new Settings toggle, "Show each
account's email in the menu" (showAccountEmailInMenu, on by default),
hides that line; the email stays in the row's tooltip.