Repository navigation
v5.7.0
Forty-five pull requests — thirty-eight written by hand, seven opened by the curation bot — and the
question 5.6.0 asked of the README is asked here of the mechanisms themselves: does what the
foundation sets up actually happen? Every hook timeout was written in milliseconds while Claude Code
reads seconds, so no hook had a real bound, and a guard that outlives its bound lets the command run.
Twenty-six hooks carried an onFailure field Claude Code does not have. allowed-tools was taught as a
restriction on 53 skills and is a grant. All 53 skills were forked away from the conversation they were
meant to guide. 63 test assertions asserted nothing. Fixes that did land never reached existing
installs: update skipped every unmodified skill, kept millisecond timeouts without a word, and
module add erased the snapshot recommendation drift is measured against. Around those, the supply
chain is pinned — every action in the foundation's workflows and in the templates it ships now sits on
a commit SHA — and the curation bot reaches past two blind spots: a safety screen that could answer
clean on a scan that never ran, and a monthly discovery that judged the same alphabetical prefix
every month. As before, each claim was taken to its real target and measured, and many fixes carry an
independent review whose findings are folded in.
Added
-
A SessionStart warning when session scratchpads pile up (
scripts/hooks/scratchpad-check.sh).
Claude Code removes no session temp dir when the session ends, and where/tmpis a tmpfs that is
RAM: on 2026-09-24 one session left 4 GB ofnode_modulesin its scratchpad, filled the zram and the
OOM killer ended another session. OverCLAUDE_BASE_SCRATCH_WARN_MB(default 1024) it names the three
largest other sessions and their rebuildable dirs, says when the tree is a tmpfs, and reports files you
do not own (adocker run -vwithout--user). It is sized, not aged — the culprit was one day old —
and it reports only, never deletes. Theworkflowrule gains three lines on keeping installs,
container mounts and sensitive copies out of the scratchpad. (#586) -
Sub-agents launched on Fable now ask first.
permissions.askholdsAgent(model:fable): the
foundation pins no agent to Fable by cost, and nothing enforced it.ask, notdeny, so the rare
deliberate use stays open. Measured in fresh headless sessions: refused in default and auto mode, ran
with the rule removed, ahaikucontrol ran — and an agent pinned to Fable in its frontmatter ran
unasked, which is why a test now refuses such a pin. (#583) -
validator-corpus.sh --transcriptsmeasures the command guard on real agent commands. The
existing corpus is single-line by construction and blind to the class that dominates real refusals —
a multi-line command whose body only cites a trigger. The new mode reads Bash commands from local
Claude Code transcripts and judges each one whole, as the hook receives it, sharded over
CORPUS_JOBSworkers: 15,468 commands in 88 s instead of ~16 min. No input is never reported clean —
an empty directory, a format change, ajqfailure or a dead worker exits 2. Local only, never a CI
input. (#600) -
The hook policies replay under mawk and busybox awk in CI. Hooks run on the user's machine, and
CI covered two of four awk dialects — not Ubuntu's default (mawk) nor Alpine's (busybox).
scripts/awk-portability.shshims each implementation in asawkand replaystests/policy-*.bats,
after a control with a broken awk that must fail something. 197/197 pass under both; nothing was
broken, this pins it. busybox is a static binary checked by SHA-256 and installed withoutsudo.
(#601) -
A triggering eval: does the right skill fire, and only it? Since skills run inline, one that
fires on the wrong prompt injects its content into the user's session.eval/skill-triggering/wraps
.claude/skillsin a throwaway plugin forclaude plugin evaland passes a run only when the
expected skill fires and no other does. Onclaude-opus-5-5, 3 runs per case, it found two real
defects:work-quickshadoweddev-tddon "add a function to a new file" (0/3 → 3/3 after narrowing
its description to edits of existing code), anddev-debugnever fired on a reported bug (0/6 → 6/6
after making its description directive). The campaign then covered every other auto-triggerable
inline skill: 23/25 fire alone 3/3;parallel-agentsis recorded as redundant on Opus, which launches
parallel sub-agents itself, and is left unchanged. 34 skills measured in all, about 9 and 10 USD at
list price for the two campaigns, local only. (#605, #606)
Changed
-
43 skills now run inline; 10 stay forked, by review. A
context: forkskill runs in a sub-agent
that sees none of the conversation — right for a self-contained report, wrong for a skill meant to
guide the work in progress, and all 53 were forked. The ten kept forked (doc-changelog,
doc-generate,ops-standup,qa-design,qa-review,qa-security,qa-tech-debt,
web-scraping,work-batch,work-explore) are pinned by a test, so forking a skill is now a review
decision. On an inline skillmodel:switches the session's model, so the five inline skills that
pinned one (dev-tdd,dev-debugon Opus;work-quick,ops-ci-fix,qa-perfon Sonnet) no longer
do. The docs taught the old contract — six pages and thewriting-skillsguide said "context: fork
(recommended)", aninheritand asharedvalue that do not exist were offered, and the catalogue's
Context column saidforkfor all 53 — and are swept, with guards that check tables by structure
rather than by phrase. (#602, #603, #604, #610) -
Foundation skills pre-approve nothing.
allowed-toolsgrants a tool without a prompt for the
skill's turn; it does not restrict. Measured: a skill listingBashran an approval-requiring command
unprompted (adenystill wins). 40 of 53 skills listed bareBash, 38Write, 37Edit, all 53
Read. In an installed project the shipped allow list already grants those tools, so the gain is not a
security change there; it matters in a project that narrowed its allow list, and for a skill copied
elsewhere, which carried its grants with it. No foundation skill or command declaresallowed-tools
any more, a test refuses the key in any spelling, and "Pre-approving tools" has one canonical section
indocs/CUSTOMIZATION.md. (#589, #598) -
The pipe-to-shell guard spares a program given as an argument.
curl URL | python3 -c '…'parses
the download as data and never executes it, yet was refused. Measured on 17,093 real agent commands:
refusals 184 → 128, 56 freed, 0 newly refused; none of the 84 old pipe-to-shell refusals executed a
download. Only an allow-list of program-as-argument forms passes (python -c/-m,node -e/-p,
perl/ruby -e); an option parser was drafted first and a review ran payloads through four shapes it
let by. Heredoc bodies deliberately stay scanned: stripping them freed 7 of 3,959 heredoc commands and
a review found 8 bypasses. (#595, #597; see Security for #608) -
The lessons budget is settable, and defaults to 4000.
prune-checktook its budget only as an
argument, so/lessons --prunealways compared against a shipped2000borrowed from another tool and
never measured on a Claude Code store — the one real store stayed over it through two pruning passes.
Budget is now argument →LESSONS_BUDGET→4000, a non-numeric or oversized value is rejected, and
the docs call the bound a prune trigger, not a capacity. (#581)
Security
-
Every hook timeout was unbounded, and a timed-out guard fails open. Values were written in
milliseconds (2000, 180000…) and the docs said so; Claude Code reads seconds — measured, so 180000
meant 50 h. A second probe: a blockingPreToolUseguard that sleeps past its timeout lets the
command run, so dividing by 1000 would have let commits through untested. Fast guards get 30 s (over
90× their measured cost), the suite gates 1800 s,setup-deps900 s, informational hooks their value
over 1000. The 26"onFailure"fields were removed: the field does not exist in Claude Code, a probe
with it set toblockstill ran the command, and seven pages taught it as what makes a guard block —
onlyexit 2does. A test refuses any timeout above 3600 s, any blocking guard under 30 s, and
onFailure. (#587) -
The suite gates block when their suite outlives its budget. With the hook timeout at 1800 s, a
suite still running at 30 min would have let the commit, push or deploy through._gate-budget.sh
gives each gate one budget shared across its steps —CLAUDE_BASE_GATE_SECONDS, default 1500, below
the hook timeout — and blocks with exit 2, naming the variable and the gate'sSKIP_bypass. Without
timeout/gtimeout(stock macOS) the gate runs unbounded, as before. (#592) -
#595 opened a hole in the pipe-to-shell guard, now closed. An independent review replayed the
policy:curl … | python3 -c '…' | sh,curl … | sh -c shandcurl … | bash -c "$(cat)"were
blocked before #595 and allowed after it. Every pipe after the download is now examined, not only the
first, and the shell family loses its-cexemption (no real agent command used it in 30 days of
transcripts). Two older gaps close with it — a pipe continued after a backslash, and|&— and a|
inside quotes no longer reads as a pipe. Known gaps unchanged:| env bash,| xargs sh. (#608) -
Every workflow action, in the foundation and in the templates it ships, is pinned to a commit
SHA. A tag is a pointer its owner can move; the size labeler's floatingv1changed behaviour under
this repository on 2026-09-28. The foundation's 23 remaining tag references (10 actions, including
gitleaks-actionandaction-gh-release) are pinned to the release each tag resolved to — no
behaviour change — and a test refuses an unpinned externaluses:. The 19 references in the shipped
templates,anthropics/claude-code-action@v1among them, are pinned too. Dependabot never reads
templates/, soscripts/refresh-template-pins.shre-pins each to the latest release of its major as
a release step, andinit --ciseeds agithub-actions-only.github/dependabot.ymlwhen the
project has none — never editing one it has. Its first run, for this release, moves
anthropics/claude-code-actionfrom v1.0.239 to v1.0.240 in the two review templates. (#620, #621) -
The curation safety screen could report
cleanon a scan that never ran. A failed redirection
returns the same status as a grep that found nothing, and bash served the screen's here-strings from a
temp file above the 64 KiB pipe buffer (at every size on macOS bash 3.2): a full/tmpwould have
passed every candidate under a green run. Scans now travel through pipes, and a differential control
flagsscan-blindwhen the text holds content the scan cannot see. An unreadableSKILL.md— GitHub
serves an empty body over 1 MB — no longer falls back toREADME.mdbut flagsdoc-unreadable. The
review found the same defect one layer down, in the exec-surface count, fixed too. Two real refs
re-verdict identically before and after. (#579)
Fixed
-
updateskipped every unmodified skill, agent, rule and command. The pristine-hashes table only
coveredscripts/hooks, so a.claude/file byte-identical to an older release read as customised
and reached the install only through--force, which also discards real customisations. Measured on
a copy of a 5.4.0 install:update --skillsskipped all 52 skills; with the table extended to every
.claude/fileupdaterefreshes, 65 skipped files became 0, with 75 refreshed as unmodified. An
edited copy is still skipped; the symlink and downgrade guards still hold. (#609) -
claude-base addandremovenow recognise an older release's untouched copy.removedeleted
a bundle file only when it matched the current foundation file, so on an install last updated at
an older release it reported the copypreserved (user-modified)and left an orphan behind;add
reported it modified instead of refreshing it. Both consult the same pristine-hashes lookup as
update. Replayed on a downstream 5.4.0 snapshot:remove flutter --dry-runwent from 3 removed / 1
preserved to 4 / 0. (#622) -
Existing installs were never told their hook timeouts bound nothing.
updateleaves
settings.jsonalone by default and neither it nordoctorreported millisecond values; 10 projects
in the maintainer's fleet carry 39–43 each. Security drift detection now reports one
hook-timeout-msline with the re-sync command. (#616) -
module addandmodule removeerased the recommendation snapshot.write_foundation_manifest
rebuiltfoundation.jsonfrom a whitelist, dropping.recommendations, so the nextupdateread
"first run" and said nothing about a vendor skill added, removed or re-pinned meanwhile. Any field the
function does not own is now kept; the snapshot is dropped only when the preset changes. (#618) -
An explicitly chosen preset is recorded, and the pivot notice then stays quiet.
update --preset X
applied X for one run and wrote nothing, so a project matching two presets (seen:nextjs+
playwright) refused every flaglessupdate -y. A real run now records an explicit--preset; a
detected preset is still never written. With it,presetChoicerecords the set the project matched,
and the "may have changed stack" notice speaks again only when that set changes. (#612, #614) -
The suite gates blocked in silence. On exit 2 Claude Code feeds back a hook's stderr and drops
its stdout; the three gates and the budget message printed on stdout, so every red gate blocked with
No stderr output. The reason and the failing check's output now go to stderr, pinned by tests that
read stderr alone — the existing ones merged the streams and could not see it. (#611) -
A deny rule that only produced a startup warning is gone.
Bash(rm -rf /*:*)printed a warning
in every session since Claude Code 2.1.260 and never produced its own denial — the built-in check
refused that shape first. Removed rather than widened; the command validator now covers the separator
forms the literal rule had caught (;,/,//*,/.*…). On 546 real agentrmcommands no
real deletion changed verdict. (#591) -
Three agents preloaded skills that load nothing. A
disable-model-invocationskill cannot be
preloaded into a sub-agent;work-explore,doc-onboardandqa-chromehad preloaded one since
January. Measured in a sub-agent transcript: the model-invocable preload present, the manual-only one
absent. Removed with no behaviour change, and a test refuses the shape. (#590) -
63 test assertions asserted nothing. bash exempts a negated command from
set -e, so a bare
! grep …that is not a bats test's last line never fails it. All 63, in 16 files, now end in
|| false, and a guard refuses the bare form. One assertion woke up red: it had matched two comments
since #420 and its later lines had never run. (#617) -
The website did not type-check, and nothing looked.
tscreported 11 errors that Docusaurus and
tsxstrip silently. Fixed at the source (tsconfiginclude, a duplicate map key, a redundant
re-export), and CI gains a "Website typecheck" step. (#619) -
The PR size label was never applied.
pr-check.ymlgrantedpull-requests: read, and the labeler
swallowed the 403 until its floating tag moved and turned Validate PR red. The labeler now runs alone
with write access, pinned to a commit, skipped on fork PRs. (#615) -
Monthly curation discovery judged the same alphabetical prefix every month. Hits were sorted
alphabetically and cut at 40 of 301 candidates, so a Playwright skill ranked 148th was never examined;
three runs since June proposed one repository. The cap now takes each source's hits in turn in its own
ranking, and ajudged.jsonledger skips a rejected repository forCURATION_REJUDGE_DAYS(180) —
outages and deferrals stay eligible. Every rejection is named in the digest with its gate and reason,
model-written text escaped. (#613) -
The curation bot now records whether its digest was delivered. Every GitHub write is fail-safe
and the freshness metric is written at the end of a completed run, so an expiredghtoken lost four
nights of digests under a green alert, and a refusedgh pr createstill printed[OK].digest.json
gains.delivery {issue, pr}, and the deploy recipe aCurationBotUndeliveredalert, aligned with the
deployed, promtool-tested rule. The journal's nightly "Broken pipe" line from scans under systemd is
also silenced, without touching the verdict. (#584, #585, #593)
Documentation
-
Why no path deny and no sandbox ship. A
Readdeny on a secrets directory refuses the tool and a
literalcat, but not a script that builds the path norssh -i; the Bash sandbox would close that,
but on Ubuntu 24.04+ it cannot start and every Bash command fails. Measured 2026-09-27 on CLI 2.1.283.
(#607) -
Vendor pins advanced across the release in seven automated re-pin PRs — 24 entries over 10
repositories (PostHog/skillsin every one of them), each re-passing the trust scorer and the
pin-time safety screen on the new ref, reviewed before merge. (#576, #578, #580, #582, #588, #594,
#599)
Upgrade notes
- Re-sync
settings.jsonand the hook scripts by hand:claude-base update --settings --hook-scripts.
A plainupdatenever touchessettings.json, so an existing install keeps its millisecond timeouts
(unbounded hooks), itsonFailurefields and the removed deny rule, and does not get the Fableask
rule nor the scratchpad hook's wiring (#583, #586, #587, #591).updateanddoctornow flag it as
hook-timeout-ms(#616).--settingsreplacessettings.jsonwith the foundation's and keeps only
enabledPlugins: back up any rule or hook you added there and re-apply it afterwards. - Pull the skill, agent and rule changes with
update --skills --agents --rules(or--all): since
#609 an unmodified copy from any earlier release is refreshed without--force; a customised one is
still skipped and named. Likewiseclaude-base add/removenow refresh or remove an older release's
untouched copy instead of reporting it as yours (#622). - A project matching several presets: run
update --preset <name>once; the choice is recorded and
later plainupdate -yruns use it (#612, #614). - CI templates:
updatedoes not touch.github/workflows/. A project that took the templates from
init --cibefore this release keeps tag references and gets no seededdependabot.yml; copy the
pinned templates fromtemplates/github-workflows/if you want the pins (#621). - Optional:
CLAUDE_CODE_TMPDIRin your user~/.claude/settings.jsonenvmoves session
scratchpads off a tmpfs — a projectsettings.jsoncannot set it (#586).LESSONS_BUDGETinenv
sets the lessons prune trigger (#581).CLAUDE_BASE_GATE_SECONDSsets the suite gates' budget (#592).
Installation
Pinned + verified (recommended) — fetch the tagged installer,
check it against the published SHA256SUMS, then run it:
TAG=v5.7.0
curl -fsSL "https://raw.githubusercontent.com/christopherlouet/claude-base/$TAG/install.sh" -o install.sh
curl -fsSL "https://github.com/christopherlouet/claude-base/releases/download/$TAG/SHA256SUMS" -o SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS # install.sh: OK
bash install.sh --ref "$TAG"Quick (latest main, unverified):
curl -fsSL https://raw.githubusercontent.com/christopherlouet/claude-base/main/install.sh | bashContents of this release
- 106 Commands
- 44 Sub-Agents with isolated context
- 53 Skills with automatic triggering
- 32 Modular Rules per language
- 10 Output Styles
- 4 Guides per domain (Web, Mobile, API, Data)
- Interactive Setup Wizard