Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TheVoskampsv0.1.0GPL-3.0In 1 marketplace
Tune and personalize the Claude Code auto mode classifier config: capture the `claude auto-mode critique` prompt through a loopback sink and run the critique loop in the current session, which has no 4K-token answer ceiling, and rewrite an existing autoMode block against this machine's facts.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Tools for working on the autoMode block of a Claude Code
settings.json — the rules the auto mode classifier evaluates every
tool call against.
The plugin exists because claude auto-mode critique sends its
critique request with max_tokens of 4096, read off the body the sink
below captured. A large autoMode block can therefore never receive a
complete critique from that command: the answer is truncated at the
ceiling. /tune-auto-mode captures the critique request instead of
letting it reach the API, and replays it through the current Claude
Code session, which has no such ceiling.
tune-auto-mode — the critique loop: capture the critique
prompt, run rounds against a scratch config copy, and write the live
settings.json only at the end, after the human approves.personalize-auto-mode — rewrite an existing autoMode block
against this machine's facts: names, organizations, SSO profiles,
repositories and paths.Neither skill depends on the other. /tune-auto-mode works when no
facts file exists, because it is usable by anyone who received a tuned
settings.json and never wrote facts of their own.
/personalize-auto-mode works on an autoMode block that has never
been tuned. There is no ordering contract between them and neither
reads the other's state; in particular /personalize-auto-mode does
not read the ledger.
payload/sink.py is a loopback-only HTTP sink bound to an ephemeral
port. It never makes an upstream call and never forwards anything: it
writes the received request body to the run directory, returns a
minimal well-formed response so the invoking CLI exits cleanly, and
terminates.
/tune-auto-mode starts it in the background, then runs claude auto-mode critique in the same shell with ANTHROPIC_BASE_URL pointed
at it and ANTHROPIC_API_KEY set to a dummy value, so no real
credential is sent to the local socket. The backgrounding is not
optional: the sink serves until it captures a body or its timeout
expires, so a foreground launch never reaches the critique command and
the capture cannot happen at all.
/usr/bin/python3 "${CLAUDE_PLUGIN_ROOT}/payload/sink.py" --run-dir <dir> &
It prints the base URL on stdout and also writes it to <dir>/sink-url,
then serves until it captures a body into <dir>/critique-request.json
— --body-file renames that file, and the test reads the same default
off the module's DEFAULT_BODY_FILE. If no request reaches it for
--timeout seconds (default 180) it gives up, reports that on stderr
and exits non-zero, so a critique that never started cannot leave the
caller waiting on a sink that never returns.
Standard library only, and no syntax newer than Python 3.9, so a stock
macOS /usr/bin/python3 runs it with nothing installed. That matches
the constraint the repo's existing host-side Python already works
under: the inline python3 -c scripts in
plugins/claude-vm/payload/lib/credential.sh, and in its test under
plugins/claude-vm/payload/test/, run on the macOS host and target
that same stock interpreter — each calls bare python3 and each says
in its own header that it requires no more than the one macOS ships.
The python3 -c blocks in
plugins/claude-vm/payload/provisioners/podman-mkosi.sh are not that
precedent: they run inside the Debian build container, on the
interpreter that image installs, so they say nothing about what macOS
ships.
What is new here is the first .py file, not the first Python. It
adds no lint configuration, the repo declaring none for Python, but it
does change what CI runs: .github/scripts/codeql-language-present.sh
arms the python analysis leg whenever a tracked, non-vendored *.py
file is present, so codeql.yml analyzes Python on every PR from here
on.
The obvious design — answer exactly one request and exit — does not
work, and the failure is silent-looking rather than loud: the CLI opens
with a bodyless HEAD /api/hello reachability preflight, and a sink
that spends its single request on that preflight leaves the CLI
reporting Failed to analyze rules: Connection error. with nothing
captured. So the sink answers every bodyless request with 200 {}
and keeps serving; only a request that carries a body is the capture,
and the sink stops after it.
The critique request measured today carries no stream key, so the
answer it wants is an ordinary JSON message. The sink reads the
captured body and answers a streaming request with a complete
Server-Sent Events stream (message_start through message_stop) and
a non-streaming one with the JSON message. Which shape the CLI asks for
is not a contract this plugin controls — it changes with Claude Code
releases — so the sink covers both rather than pinning the current one.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin auto-mode-toolsPlugins from other owners that cover similar ground