Claude Loadout
Start each Claude Code session with only the tools it needs.
claude-loadout is a small launcher that sits in front of Claude Code. It looks at what you are working
on, figures out which of your installed MCP servers, plugins, and skills are actually relevant,
and starts the session with just those. Everything else stays installed and untouched; it simply
is not loaded for that run.
TL;DR
Type cld instead of claude. Every argument is forwarded, everything else works the same.
Before it launches, claude-loadout:
- infers what this repo is about — directory name, marker files, README title; local, offline, no model call;
- ranks your installed MCP servers, plugins and skills against that goal with a small local model;
- applies your keep/drop rules;
- starts Claude Code with only what survived — plus, if you enabled it, the notes from past sessions that are relevant to this one, inside a token budget you set.
Nothing is uninstalled or changed globally; the rest is simply not loaded for that run. The decision is
cached in .loadout/ and reused on every later launch until you run cld update. If any step fails, you
get a normal, full session.
Notes and decisions you or a session record (cld memory add, cld decision new) go to
./docs/memory/; run cld memory link once per repository so Claude Code loads them too.
pipx install ccloadout
cld # in place of `claude`
Why
Every Claude Code session loads all of your installed MCP servers, plugins, and skills: a calendar integration, a browser driver, three documentation servers, a design system, whether or not today's task touches them. Two costs stack up before you type a word:
- Context. Each server and plugin puts its own description into the session, and skills appear
in
/contexttoo. That is window spent on tools you are not using today. - Auto-triggering. A skill's
descriptionis what Claude reads to decide when to load the skill on its own (Claude Code docs). Every skill you install adds one more candidate Claude weighs whenever a request looks relevant, so a crowded set is also more chances to reach for the wrong one.
The more you install, the noisier every session starts, whatever the task.
claude-loadout addresses that per session, with nothing to toggle by hand — you keep everything
installed. A few details behind the four steps above:
- The goal comes from the directory name, marker files like
package.jsonorpyproject.toml, and any project description it can find (adescriptionfield, or the README's title and opening line). If it can't tell, it asks once and remembers the answer. Text only, no model call. A remembered goal that was inferred refreshes on its own when those inputs change (a new description, a rewritten README); one you typed yourself is kept until you change it. A goal cached by a release before 0.11.0 counts as yours unless it matches what the repo says today;claude-loadout updatere-infers it. - The ranking runs on a small, fast, local model. No network call, nothing leaves your machine.
- The rules are yours: pin tools to always keep, or write plain-language ones like "this corporate plugin only in work sessions."
- The cache means you pay for scoping once per repo. The choice lands in
.loadout/and later launches reuse it;claude-loadout updaterefreshes it when you want. An unseeded repo is scoped on the fly at launch. - The fallback is absolute. If anything goes wrong at any step, claude-loadout quietly launches the full, normal session instead — it can never leave you unable to start Claude.
Quick start
pipx install ccloadout installs two names for the same entrypoint: claude-loadout (canonical) and
cld (the short alias). The rest of this README uses claude-loadout; substitute cld wherever you
prefer.
Aliases are an optional convenience. claude-loadout reads which Claude profile you're on from the
CLAUDE_CONFIG_DIR environment variable (default ~/.claude) and passes it straight through, so one
install wraps any alias, use whatever names you already have:
alias claude-work="CLAUDE_CONFIG_DIR=~/.claude-work claude-loadout"
alias claude-perso="CLAUDE_CONFIG_DIR=~/.claude-perso claude-loadout"
# Optional, wrap plain `claude` too:
# alias claude="claude-loadout"
If you run claude-loadout (or --explain / rules) with CLAUDE_CONFIG_DIR unset and more than
one profile exists (~/.claude, ~/.claude-perso, ...), it asks which profile to use rather than
silently falling back to ~/.claude, where your always_keep wouldn't apply. Set the variable
explicitly (as in the aliases above) to skip the prompt. There is no default at the prompt: pick a
number, or press Ctrl-D to cancel without launching.
Installing from source
Working from a clone? Install the CLI from the repo instead:
make install # pipx install . --force
Re-run it after any code change, pipx keeps the previously built copy until you reinstall, so
edits to the source won't reach the claude-loadout on your PATH until you make install again.
make dev gives you an editable install (pip install -e ".[dev]") if you'd rather skip that
step while hacking, and make test runs the suite.
See what it would do, before it does it
Curious, or tuning things? Add --explain and claude-loadout prints its plan and exits without
launching anything:
claude-loadout --explain
You'll see the goal it detected, which items it would keep, which it would drop (and why), and the exact command it would run. It's the best way to get a feel for the tool and to calibrate how aggressively it prunes.
Check your setup, and what to do next
Just installed, or unsure whether things are wired up? claude-loadout doctor inspects your
environment without launching anything and prints the next steps:
claude-loadout doctor
It enumerates every Claude profile it finds (~/.claude, ~/.claude-perso, ...), marks the one
selected by CLAUDE_CONFIG_DIR as active, and for each shows which config files exist and how many
MCP servers / plugins / skills it would inventory. A profile whose end-of-session reminder is off
([memory] stop_prompt) gets a warning naming the file to edit. It then reports whether Claude
Code reads this repository's docs/memory (see Where notes live), which
embedding model is in use (bundled, external, or keyword fallback), whether a rule model is
configured, and finishes with the alias + --explain + rules cheat sheet to get going.
How much it saves
The plan reports two different kinds of saving, kept separate on purpose:
- Up front: skill and plugin descriptions (and the agent lists plugins carry) sit in the
system prompt from the first turn, so dropping them trims context immediately. This is the
trimmed up frontfigure in--explainand each launch. - On demand: MCP tool schemas, claude.ai connectors included, load lazily: Claude Code lists
them as loaded on-demand, so their cost lands only if a tool is actually used. Dropping them
(via
--strict-mcp-config) avoids that potential cost and blocks the invocation, but frees ~nothing up front. It's reported separately ason-demand avoided, don't add it to the up-front number. claude-loadout doctorshows the ceiling per profile for both;claude-loadout rulescloses with the same once you're done authoring.
# .loadout/config.toml
[token_costs]
mcp = 1500
plugin = 800
Measuring the real cost, claude-loadout measure
For actual numbers instead of estimates, claude-loadout measure connects to each MCP server,
runs the MCP handshake (initialize → tools/list), and tokenizes the real tool set:
claude-loadout measure
It's opt-in because it makes network/subprocess connections (unlike every other
command, which stays offline). Servers that need credentials you don't hold, fail to
connect, or time out are reported unmeasured, never counted as zero. The count uses a
~4-chars/token heuristic, so it's labelled (measured, heuristic) rather than exact -
it's not Claude's own tokenizer. Results are cached to $CLAUDE_CONFIG_DIR/loadout/costs.json.
measure is also a diagnostic: it shows the cost of every server Claude Code knows,
including claude.ai connectors and plugin-bundled servers. Once cached, those measured
numbers feed the savings display in two ways:
- for MCP servers declared in your
.claude.json/.mcp.json(matched by bare name), the measured cost replaces the per-kind estimate in the on-demand figure; - for claude.ai connectors, the measured cost is what
--explain,doctor, and each launch report as dropped by strict mode (see the pruning table below), before you runmeasurethere's no offline way to know they exist, so they only appear afterwards.
How it works
Under the hood, a scoped launch is a normal Claude Code session plus two small, temporary overlay files:
- MCP servers: claude-loadout writes a curated MCP config listing only the kept servers and starts
Claude with
--strict-mcp-config, so only those load. This flag also excludes your claude.ai account connectors for that session (see the table below). - Plugins: dropped plugins are switched off via a
--settingsoverlay. Anything a plugin provides (its skills, agents, MCP servers, hooks) goes with it. Strict mode would also drop the MCP servers of plugins you keep, so claude-loadout copies those into the curated config, under the sameplugin_<plugin>_<server>names Claude Code gives them (tools staymcp__plugin_<plugin>_<server>__*, so permission rules keep matching).--explainlists every server the session will get.
Both overlay files live in your temp directory and are deleted when the session ends. Your real
configuration is never touched, claude-loadout never edits settings.json or .claude.json, and
it is not the nuclear --bare mode: your CLAUDE.md, hooks, and memory all stay in place.
What it prunes, and what it doesn't
| Scoped per session? | |
|---|---|
MCP servers (.claude.json / .mcp.json) |
Yes: only the kept set loads |
| Plugins (and everything they provide) | Yes: dropped plugins are disabled; kept plugins keep their MCP servers |
| claude.ai connectors (Gmail, Calendar, ...) | All dropped (all-or-nothing in v1): --strict-mcp-config loads only the curated overlay, so account connectors don't load at all. A connector that needs account authorization (Gmail, Calendar, ...) can't be re-added even if claude-loadout wanted to: its OAuth lives in your claude.ai account and doesn't transfer to a config claude-loadout can pass to Claude (verified, the re-injected server reports "not authorized"). Connectors that need no auth are technically re-injectable, but v1 keeps none either way. Run claude-loadout measure to see them listed with their token cost in --explain. |
Standalone skills ($CLAUDE_CONFIG_DIR/skills) |
Yes: off-topic skills are dropped via skillOverrides: "off" (removes the skill and its description from context). On by default; --no-scope-skills keeps them all |
CLAUDE.md, hooks, memory |
No: always preserved |
Configuration
Everything is optional, claude-loadout works with zero configuration. When you do want to tune it,
settings are TOML and resolved through a chain, where a later layer replaces an earlier one for
each top-level key (a list value is overwritten wholesale); the [memory] and [token_costs]
tables merge field by field instead:
- Built-in defaults
- User / profile,
$CLAUDE_CONFIG_DIR/loadout/config.toml - Repo-local,
./.loadout/config.toml - Environment,
LOADOUT_ALWAYS_KEEP,LOADOUT_THRESHOLD,LOADOUT_RULE_MODEL
| Key | Meaning | Default |
|---|---|---|
always_keep |
Item ids or glob patterns to never prune. Unknown ids are ignored. | (empty) |
threshold |
Cosine cutoff; an item is kept when its relevance score is >= threshold. Higher prunes more; lower keeps more. Calibrate with --explain. |
0.24 |
model_name |
The embedding model used for ranking. | minishlab/potion-base-8M |
[memory] |
Opt-in session memory recall. See Memory recall. | (off) |
rule_model_path |
Absolute path to a local GGUF instruct model for compiling natural-language rules. Not bundled, you supply it. Unset means natural-language rule authoring is off (you still get the keep / drop / skip prompt). See Exclusion rules. | (unset) |
# .loadout/config.toml
# always_keep below is an EXAMPLE, the shipped default is empty.
always_keep = ["superpowers", "remember", "caveman*"]
threshold = 0.24
# Optional: only needed for natural-language rule authoring (see "Exclusion rules").
# This model is NOT shipped with claude-loadout, download a GGUF yourself and point here.
# Use an absolute path, "~" is not expanded.
rule_model_path = "/Users/you/models/Qwen2.5-0.5B-Instruct.gguf"
The default embedding model ships inside the package (~29 MB, minishlab/potion-base-8M,
MIT-licensed), a fresh install ranks offline out of the box, with no first-run download. Point
model_name at another model2vec model (a Hub id or a local directory) only if you want to
override the default; a Hub id is fetched on demand, and if a model can't be loaded at all
claude-loadout falls back to a keyword-matching heuristic and warns, it still runs.
Memory recall
Your notes from past sessions, ranked against what this session is about, and only the ones that fit a token budget. Off until you turn it on.
cld memory enable # this repository
cld memory # status, and what to do next
cld init asks once per run whether to enable it for the repositories it seeds. Everything is
reversible with cld memory disable.
How the pieces fit
you write a note ──┐
├─→ store ──rank──→ session context ──→ cld recall (session asks for more)
a session ends ────┘ ↑ │
(candidate) │ └──→ cld memory flag (session says "this is wrong")
└── cld memory audit ←──────────────┘
Four verbs, in the order you meet them:
cld memory add "<note>" |
write something down now |
cld memory consolidate |
turn finished sessions into notes, one confirmation each |
cld recall "<query>" |
search the store and print entries in full |
cld memory audit |
review what you have, delete what has gone stale |
One more, run once per repository: cld memory link, so Claude Code loads what you write
(see Where notes live).
Where notes live
It reads stores that already exist rather than inventing another one:
./docs/memory/in the repository (git-tracked — this is where new notes go by default)$CLAUDE_CONFIG_DIR/projects/<slug>/memory/— Claude Code's own memory directory- your
debug-decisionscorpus, if you keep one
No note is ever written to a folder of ours. Uninstall claude-loadout and every note stays
exactly where it is. There is nothing to migrate.
Claude Code itself loads only the second folder, through its MEMORY.md index. A note in
./docs/memory/ therefore reaches a session without cld only when Claude Code's folder for the
repository is a symlink to it. cld memory link sets that up:
cld memory link # shows the plan, then asks
cld memory link --yes # for scripts
It copies anything Claude Code already keeps into ./docs/memory/, merges the two MEMORY.md
indexes, adds index lines for notes that have none, keeps the original folder as
memory.bak-<timestamp>, and replaces it with the link. It refuses when two files share a name but
differ, and when Claude Code has no sessions recorded for the repository (so the folder it reads
can't be confirmed). Until a repository is linked, memory add says so after every write, and
cld doctor shows it.
From a git worktree, every store resolves to the main checkout, the way Claude Code keys its own
memory, so a note written in a worktree is not stranded when the worktree goes. The memory,
decision, debt and recall commands also read the main checkout's .loadout/config.toml
there (a worktree has no .loadout/ of its own), and an --anchor path is resolved against the
main checkout too. A note is indexed only in a folder that already has a MEMORY.md;
cld memory link creates one.
With [memory] git_tracked = false, new notes go straight to Claude Code's folder instead, and
there is nothing to link. Use that for shared or public repositories whose docs/ you don't want
notes in.
Notes that follow you between projects
A note about a tool, a harness quirk or the way you like to work is not about the repository you happened to discover it in. Mark it global and every session sees it:
cld memory add --global "the settings overlay merges hooks, it does not replace them"
cld memory scope some-old-note global # promote one you already have
Global is a property of the note — scope: global in its frontmatter — not a special location, so
the file still lives in a canonical store. [memory] scopes = ["repo"] turns the cross-project half
off entirely.
Notes that point at each other
Two notes often only make sense together: a decision and the constraint behind it, a bug and the
lever that caused it. Link them, in the frontmatter or with [[wikilinks]] in the body, and a note
that gets recalled brings what it points at:
- [memory · repo] skill-scoping-mechanism — how loadout prunes user skills…
- [memory · repo] overlay-merge-quirk — hooks merge, they do not replace (linked to skill-scoping-mechanism)
One step out, never two: past that, relevance evaporates and the budget fills with cousins. Links are followed only from notes that were admitted on their own merit, so a rejected note cannot smuggle its neighbours in.
# .loadout/config.toml
[memory]
enabled = true
budget_tokens = 800 # ceiling on what recall may inject
threshold = 0.24 # relevance cutoff, same scale as tool ranking
git_tracked = true # new notes land in ./docs/memory and travel with the repo (link it, see above);
# false writes them to Claude Code's own memory folder instead
scopes = ["repo", "global"] # drop "global" to see only this repository's notes
promote_after = 3 # deliveries after which a note is pinned into recall
decay_days = 90 # untouched for this long, a note is demoted (never deleted)
prompt_recall = false # also re-rank on every prompt (see below)
stop_prompt = false # at session end, ask the session to record what it decided (doctor warns when off)
decision_keywords = [] # deliberation stems; empty keeps the built-in en/it/es/de list
It does not duplicate Claude Code's own memory
Claude Code already injects the lines of its MEMORY.md index into every session. Notes it lists
are skipped here rather than sent twice — the budget goes to the ones the session would not
otherwise have, and the skipped notes stay reachable with cld recall. --explain says so:
memory
injected: 3 of 7 entries ≈ 210 tokens (heuristic)
already loaded: 3 by Claude Code itself (MEMORY.md index) — not repeated here
When you add or delete a note beside such an index, its line is kept in step, so Claude Code is never left pointing at a file that no longer exists.
What it costs, and what it saves
cld --explain shows both, because recall spends the tokens pruning saves:
memory
injected: 6 of 7 entries ≈ 366 tokens (heuristic)
savings
up front: ≈ 3.5k tokens — skill + plugin context, gone from turn one
net up front: ≈ 3.1k tokens — after the memory payload (gain)
Who writes the notes
Both of you, with the line drawn at review.
You write with cld memory add, and the session is invited to: the injected block teaches it
memory add alongside recall, for the things a later session would otherwise have to rediscover —
a root cause, a dead end, a decision you made together. Not routine progress. Whatever it writes is
an ordinary note: ranked, budgeted, and deletable in the audit like any other.
It is also told how to choose the reach, with a test it can actually apply: a fact about this
repository stays here, a fact about a tool, the harness or how you work — still true in a
different repository — goes in with --global. Global notes are marked as such in the audit,
because a wrong one costs you in every session rather than one; cld memory scope <name> repo
demotes it.
Finished sessions and debt markers are captured automatically, but as candidates — never notes:
[memory]
debt_patterns = ["TODO(loadout)"] # markers to watch for; set to [] to capture nothing
Write # TODO(loadout) drop this stub into a file during a session and cld memory consolidate
will offer to turn it into open debt, anchored to that file. It watches shell writes too, since
that is how files usually get written — but only commands that actually write. Searching for a
marker with grep records nothing.
Auditing
Notes rot. cld memory audit lists them with the signals that decide whether they still earn their
place — how often used, an anchor that disappeared, a flag someone raised. Unchecking marks a note
for deletion; nothing is removed until you type delete. Add --all-repos for every project at
once, which is where the forgotten ones live.
To see why a session recalled what it did:
$ cld memory audit --context "how does skill scoping work"
what a session on 'how does skill scoping work' would recall
threshold 0.24 · budget 800 tokens
✓ 0.632 deci 2026-08-21-1326-per-session-skill-sco… Per-session skill scoping: settings-f…
✓ 0.536 memo skill-scoping-mechanism How loadout prunes user-level skills…
── below the line ──
· 0.157 memo strict-mcp-config-connectors How --strict-mcp-config affects clau… below-threshold
Every note gets a score and a reason: below-threshold, over-budget, stale-anchor, decayed,
promoted, flagged, resolved.
When a session finds a bad note
It can say so, but not act on it:
cld memory flag skill-scoping-mechanism --reason "names a lever renamed in 2.1.261"
The flag is stored beside your notes, never inside them. It demotes the note straight away and
hides it from per-prompt recall; you resolve it in the audit, or clear it with --clear.
cld memory audit --json gives a session the whole store to read. Deleting stays yours.
Debt you left behind
The thing neither a session log nor a decision record captures is the shim you meant to remove:
cld debt add --anchor src/ccloadout/rules.py "fail-fast stub until the compiler lands"
cld debt list
cld debt resolve fail-fast-stub-until-the-compiler-lands
A file changing under an anchor never closes an entry by itself — an unrelated edit would silently
close real debt. It flags it and leaves the call to you. Resolved entries stop being injected but
stay findable with cld recall.
Decisions
cld decision new writes a decision into the same store as your notes, with a line in its
MEMORY.md once the folder has one, so Claude Code loads decisions wherever it loads notes (see
Where notes live). The file keeps a date-prefixed name and a Context /
Decision / Alternatives / Rationale template. cld decision list|show|supersede cover both these
and an existing debug-decisions corpus, which is still read and superseded in place but no longer
written to. Superseding a decision takes its line out of MEMORY.md. cld decision revert is
deliberately absent: executing destructive git operations does not belong in a launcher.
Recall on every prompt (optional)
prompt_recall = true adds a hook that re-ranks the store against what you actually typed and adds
at most two notes the session did not already have. It scores lexically rather than with the
embedding model — loading that costs ~520 ms, and this runs on every prompt — and measures 38 ms
median, 56 ms worst end to end.
It exits successfully on every path, including its own timeout: on UserPromptSubmit a failing hook
does not merely error, it erases what you were typing.
End-of-session reminder (optional)
stop_prompt = true adds a Stop hook that, when a session ends, asks it once to record what it
decided — naming cld decision new and cld memory add. It speaks only when the transcript shows
decision signals: plan mode was used, three or more files were edited, a design skill was invoked,
or the conversation used deliberation words — recognised in English, Italian, Spanish and German by
default, since the test is a substring against a stem and a stem costs nothing. For any other
language, decision_keywords = ["retenon", "piste"] replaces the list; the other three signals do
not depend on language at all. It writes nothing itself, and a session that already
registered something is not asked again.
This is the one thing a hook buys here: everything else about a finished session is captured by the
launcher after it exits, but once the session is gone there is nobody left to say why a choice was
made. It is read independently of enabled — the reminder asks you to write, and an empty store is
where a first note is worth most. Every injected hook has five seconds, and reading the whole
transcript fits: the largest one measured, 52 MB, costs 0.29 s.
One caution. Injected notes sit in the highest-trust position a session has. The block says so — it is labelled untrusted reference data — because with
git_tracked = truea note can reach you through a merged pull request. Set it tofalse, or leave[memory]off, in repositories whose notes you would not accept as reference material.
Exclusion rules
Relevance ranking is good at "is this about the same topic," but it can't express intent like "this design-system plugin belongs only in work sessions, never personal ones." Exclusion rules do exactly that: they bind a tool (by id or glob) to a small deterministic rule that's evaluated offline every launch.
Precedence: always_keep (kept no matter what) → your rules → similarity score.
A rule reads naturally in TOML:
[[rule]]
target = "design-system-*"
nl = "corporate design-system plugin, only for work sessions"
[rule.predicate]
action = "keep_if"
match = ["design system", "frontend", "work", "ui"]
match_mode = "any"
keep_if, keep the tool only when the goal matches; drop it otherwise.drop_if, drop it when the goal matches; otherwise fall through to normal ranking.always_keep/always_drop, unconditional.
match terms are compared case-insensitively against the goal and combined with match_mode
(any or all). Rules live at $CLAUDE_CONFIG_DIR/loadout/rules.toml (yours) and/or
./.loadout/rules.toml (this repo, which wins per target).
Writing rules the easy way
You rarely need to hand-write the TOML. Two ways to author rules interactively, and they write to different places on purpose:
claude-loadout rules: the deliberate profile-wide path. Walks through your tools one by one (natural-language or keep / drop / skip) and asks how you want each scoped; the rule lands in$CLAUDE_CONFIG_DIR/loadout/rules.tomland applies to every repo in the profile. Empty answer = skip. Use this for a tool you always want the same way everywhere.- At launch, the pre-launch gate lets you review and adjust the
keep/drop for the current repo in one checkbox, and optionally save it, writing
./.loadout/(local, gitignored) so the choice is scoped to that repo only and never leaks to the others.
Launch scoping you don't save is per-session, it changes nothing on disk. If you launch in a repo that isn't seeded, claude-loadout nudges you to run
claude-loadout initto persist a full keep/drop set for it.
With both in place, your plain-language answer is compiled into a rule by the local model. If a particular answer can't be translated, that one item falls back to the keep / drop / skip choice.
Adjusting before launch
The first time you launch in an unseeded repo that actually scopes something out (interactive session), claude-loadout pauses on a one-line summary before handing the terminal to Claude, so the estimate and the not seeded nudge don't flash past, and you get a chance to adjust:
scoped out 4 of 11 tools + 9 connectors · ~2.4k trimmed up front · ~85.3k on-demand avoided
this repo isn't seeded, run `claude-loadout init` to persist scoping for it
[enter] launch · [e] edit keep/drop · [q] cancel?
- enter launches with the scoping as shown.
- e opens a checkbox of the prunable tools (pinned tools aren't listed, they always stay),
pre-ticked to the current decision. Toggle, confirm, and claude-loadout re-composes the launch with your
set. It then offers to save those choices to the repo (writing
./.loadout/, so future launches andclaude-loadout updaterespect them), decline to keep the edit to just this session. - q cancels without launching.
Once the repo is seeded: you saved from the gate, or ran claude-loadout init, the prompt stops:
claude-loadout prints the one-line estimate, holds it on screen for a moment (~1.5s, Ctrl-C to abort),
then launches, long enough to read, without a keypress. Re-tune a seeded repo with claude-loadout update. Non-interactive launches (-p, pipelines) never pause.
To launch instantly with no pause at all, pass --no-gate (or set LOADOUT_NO_GATE=1): claude-loadout
still prints the estimate and the not seeded nudge, but hands straight to claude.
To keep every standalone skill loaded (skip skill scoping for a session), pass --no-scope-skills
(or set LOADOUT_NO_SCOPE_SKILLS=1).
Seeding repos, claude-loadout init
claude-loadout rules scopes one repo interactively. claude-loadout init writes the same
.loadout/config.toml and .loadout/rules.toml non-interactively, so scoping is in place before
you ever launch Claude in a checkout, for the current repo, or a whole directory of them at once.
claude-loadout init # seed the current repo
claude-loadout init . # bulk-seed every project folder under the current directory
claude-loadout init ~/src # bulk-seed under a specific root
The argument is the switch, mirroring claude-loadout update: no argument seeds the current repo
itself; a ROOT argument seeds every direct subfolder of ROOT in bulk (dotfile dirs like
.git are ignored). The bulk run adds a project-picker step; otherwise both flows are identical.
For each project you keep:
- Picks the subset (bulk only). Projects that already carry a
.loadout/config.tomlor an authored.loadout/rules.tomlare shown as already configured and skipped (never clobbered). The rest appear in a checkbox list (all ticked by default):↑/↓to move, space to toggle,afor all/none, enter to confirm,qto cancel. Where a raw terminal isn't available it falls back to a typed prompt (1,3, ranges like2-4, orall; empty cancels). Single-repoinitskips this step, an already-configured repo is reported, with a nudge to runclaude-loadout update. - Confirms the profile. If you run more than one Claude profile (
~/.claude,~/.claude-perso, ...), each project asks which one to inventory against, with a sticky default, so a work cluster and a personal cluster each take one keypress to switch. The chosen profile decides which tools exist, and therefore which rules get written. - Confirms the goal. claude-loadout shows the goal it auto-detected for the project; press enter to
accept, type to override, or
sto skip that project. - Reviews the keep/drop. After the goal, claude-loadout ranks the tools and shows the resulting
keep/drop as a checkbox list, pre-ticked to its automatic decision (space toggles, enter
confirms,
qskips the project). Enter straight away accepts the auto decision; toggle to overrule it before it's frozen, the same control the single-repo launch flow gives you, in one screen. Where a raw terminal isn't available it accepts the auto decision silently.
Each seeded project then prints a receipt, the count line plus the full list of tools kept and dropped, and the run ends with a summary that also names any projects you skipped and why.
Seeded files are local, not committed: init writes a .loadout/.gitignore that ignores the
whole directory, so the generated (machine-derived) config never lands in git. This is the opposite
of a rule you author by hand with claude-loadout rules, which stays shareable, bulk-seeded scoping is
per-machine, hand-authored scoping is for the team.
For each seeded project it ranks the profile's tools against that goal and, after the keep/drop
review in step 4, freezes that decision into rules.toml (for every kind launches prune: MCP
servers, plugins and standalone skills).
config.toml gets the resolved threshold and model_name; when the file already exists, only
those two keys are updated, so [memory] and anything else you added survive a re-seed (a file
that can't be edited safely in place is left unchanged, with a warning). Pass --yes to run
non-interactively (every eligible project, auto-detected goals, auto keep/drop, active profile) -
required when there's no terminal, e.g. in a script.
Refreshing existing seeds, claude-loadout update
Seeds go stale: you install a new plugin or MCP server, the project's purpose shifts, or you want a
tighter keep/drop than the first pass gave you. claude-loadout update re-runs the decision over a repo
that init already seeded, regenerates its machine-written rules and refreshes its goal.
claude-loadout update # refresh the repo you're standing in
claude-loadout update ~/src # refresh every seeded project under a root (bulk)
- Single vs bulk. No argument updates the current repo; a
ROOTupdates every seeded project under it (bulk shows the same checkbox picker asinit). "Seeded" means a repoinitwrote - detected by its.loadout/config.toml. A repo with only a hand-committedrules.toml(no config) is left untouched; a bulk run names it as not seeded, and a single run refuses. - Fresh goal. update re-infers the goal from scratch (README/metadata as of now, ignoring the cached one), then lets you accept or override, so a project that changed direction gets a current goal, not the stale cache.
- Inventory reconcile. Tools added to the profile since the last seed appear in the review; tools that vanished drop out of the regenerated rules.
- Your rules survive. Rules you authored by hand (via
claude-loadout rulesor by editing the file) are shown in the keep/drop review pre-ticked to their current state and preserved verbatim, only the machine-written rules are regenerated. Flip a hand-authored decision in the review and update replaces just that one with a fresh machine rule.--yesrefreshes non-interactively, but note that because it re-infers the goal, a goal you typed by hand at a previous run is replaced by the inferred one; run update interactively (and override at the goal prompt) to keep a hand-typed goal.
Design guarantees
- Session-local. Scoping affects only the session it launches. Your Claude configuration is
never modified by a launch. (claude-loadout does write its own files under your control: authored
rules in
loadout/rules.toml, a remembered goal in./.loadout/goalwith itsgoal.meta, and the notes and decisions you ask it to record.) The one command that changes a Claude Code folder iscld memory link, and only when you confirm it; it keeps the original as a backup. - Fail-open, always. A missing config, malformed rules file, unavailable model, or any other error degrades to launching the full, unscoped Claude Code, with a warning where it helps. The child process's exit code is passed straight back. claude-loadout can slim a session down; it can never stop one from starting.
Requirements
- Python ≥ 3.11 (runtime deps
model2vecandnumpyinstall automatically) - Claude Code
- Optional, for natural-language rule authoring: the
ccloadout[rules]extra (llama-cpp-python) plus a local GGUF instruct model - The uninstall script is bash (the tool itself is platform-independent)
Uninstalling
scripts/uninstall.sh removes the package (pipx, falling back to pip) and asks whether to
delete the config it wrote: the profile config ($CLAUDE_CONFIG_DIR/loadout/) and every
per-repo .loadout/ it created. For the latter it scans a root you choose (defaulting to
$HOME; type / to sweep the whole filesystem), lists every claude-loadout-authored .loadout/
directory found, and removes them only after a single confirmation. A directory is treated as
claude-loadout's only when it carries an artifact claude-loadout wrote (goal, config.toml,
rules.toml, or a self-ignore .gitignore), so an unrelated .loadout/ is left alone. It
never touches your shell rc, alias lines you added are listed for you to remove by hand.
Releasing (maintainers)
Publishing to PyPI is automated. .github/workflows/publish.yml runs on every merge to master
and publishes only when version in pyproject.toml is not already on PyPI, so a release is just
a PR that bumps the version. Merges that leave the version unchanged are a no-op.
The workflow uses PyPI Trusted Publishing (OIDC), so
no API token is stored in the repo. Configure it once on PyPI: project ccloadout -> Manage ->
Publishing -> add a GitHub trusted publisher with owner marcellobarile, repository
claude-loadout, and workflow publish.yml.
Metadata
Release files for ccloadout 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ccloadout-0.11.0.tar.gz | 28.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccloadout-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.0 MB
Release files / ccloadout-0.11.0.tar.gz
| Download URL | ccloadout-0.11.0.tar.gz |
|---|---|
| Size | 28.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7f31969a1f3dec6b2663fba61d46b861882c0267d3228fba56108ae8bb5dbe1
|
|
BLAKE2b-256 checksum How to use checksums |
b9c981b3a8352a0e7ffa0e3df25548fa112c6e217bd245b8ef6790fc89f5a958
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / ccloadout-0.11.0-py3-none-any.whl
| Download URL | ccloadout-0.11.0-py3-none-any.whl |
|---|---|
| Size | 28.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e04888073d72b5bf659ca467b043f0c9164ea7b0b9279aac705fd2783e86e6ea
|
|
BLAKE2b-256 checksum How to use checksums |
0c1d26fcae5c12c6900fc75ed7f5ad31a5fbd1a17950d7b282502ada41aec3ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log