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.2GPL-3.0In 1 marketplace
Instruments for seeing what the Claude Code harness sends to the API: launch a session through a local logging reverse proxy that writes every request and response to disk verbatim, so two sessions launched identically except for one setting can be compared.
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Shows what the Claude Code harness sends to the API, by launching a session through a local logging proxy that writes every request and response to disk byte for byte.
The assembled system prompt reaches a session as one flat concatenation with no provenance markers. A session cannot tell which setting injected which text, and grepping the harness bundle yields static strings with no indication of which is used in which context. When the harness changes what it sends, hand-written rules and prompts go stale against it with nothing to show the change.
A capture makes that visible. Launch two sessions identically except for one setting, and the difference between their captures is that setting's contribution.
claude CLI on PATH.bash and python3. The versions a stock macOS ships, bash 3.2 and
Python 3.9, are enough, and nothing else is installed.Ask a session for the launch command:
/claude-harness-tools:claude-harness-capture
The skill prints the launcher's absolute path, where captures land, their layout and how to read one. It runs nothing: a session cannot relaunch itself through a proxy, so you start the captured session from your own terminal.
<absolute path>/bin/ch-capture [name suffix words...] [-- claude args...]
-- name the session. With none, the name carries a
date stamp instead.-- reaches claude unchanged, and claude's exit
status is the launcher's.Ctrl-C
included.What the launcher does to the session:
origin, in the session
name. Outside one, or without an origin, the name says (local).[harness-proxy], so a captured
session is recognizable in Claude Code's session list and can be
matched to its capture by eye. A --name you pass after -- replaces
the computed name and gets the same suffix.ANTHROPIC_BASE_URL. Requests are forwarded to the
value in force at launch, or to https://api.anthropic.com without
one, so a session that already goes through a gateway is captured
through that gateway. The override that points claude at the proxy
applies to that claude process only; your shell keeps its value.Captures live under
${XDG_STATE_HOME:-$HOME/.local/state}/claude-harness-tools/captures,
one directory per session. The directory is named by a UTC millisecond
stamp, then the session name as a slug, and it carries that name from
the moment the session starts. The stamp sorts sessions by launch time.
Inside it, session.json describes the launch, proxy.log holds the
proxy's own diagnostics, and each request has a numbered directory, in
arrival order, with its metadata, headers and both bodies. Every path
the session requests is captured, so filter on the method and path in
each request's request.json.
A capture is the traffic as it crossed the wire. Nothing is parsed or rewritten on the way through, so two captures differ only where the traffic did. That has consequences when you read one:
Content-Encoding; decompress a copy before
reading it.request.json holds your
API key or token in clear. Treat a capture as sensitive, and redact a
copy before sharing it.Transfer-Encoding: chunked still has its chunk size lines in it; strip them before
decompressing or splitting events.502 or a 400 may be the proxy's own answer. The proxy
answers 502 when no upstream response exists and 400 when a
request's body framing cannot be read, and marks either with an
error in request.json. Every status upstream sends passes through
unchanged.request.json with no ended_at belongs to a request that was
still in flight when the proxy stopped.A failure to write a capture never changes what the session receives:
it is reported in proxy.log, and the response goes through as upstream
sent it.
claude CLI, not the Claude desktop app. The
launcher wraps the CLI and nothing else.cr() wrapper unchanged. If your shell has one,
the launcher stands beside it rather than replacing it.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 claude-harness-toolsPlugins from other owners that cover similar ground