shim-cli - See what your coding agent sends. Mask what you can.
What shim-cli can't do
We launched today, and we'd rather you hear the limits from us before you install.
A prompt you type into Claude Code or Codex is not masked, because neither client lets a hook rewrite it. shim reports it, or blocks it under enforce. Copilot CLI is the exception: there the model gets the masked prompt.
In Claude Code, the output of a failed command can't be replaced. cat .env && cat missing-file exits non-zero and the model reads the .env as is. shim reports it.
Files attached with @ and shell commands are reported, not masked.
Codex and Copilot CLI tool traffic isn't inspected yet. VS Code reports but masks nothing.
Detection is patterns plus checksums. It misses names, postal addresses and passwords with no key name. Treat it as a guard, not a DLP boundary.
No Windows yet. macOS and Linux work.
Why a hook and not an MCP server? An MCP server only sees calls to its own tools. The agent's built-in Read and Bash never pass through it. A hook sits on the client's own tool calls, so it sees those too.
Which of these would stop you from using it? Your answers decide what we fix first.
Why we built shim-cli
Hi PH, Mertcan here, one of the makers.
shim-cli started with a question we couldn t answer: what does a coding agent actually send to the model? When Claude Code reads a .env or a customer CSV to debug something, the contents go straight into the request, and you never see that step.
So we built two things. In Claude Code, a local hook masks secrets and personal data in tool results before the model reads them. shim watch shows what a session sent and what it cost. Everything runs on your machine: no account, no telemetry. It s open source (Apache-2.0).
We launch here on October 18. Until then we ll post one short thread a day on how it works and where it falls short.

p/kodlo
p/many-displays
p/producthunt
p/wellows-3
p/runevr
p/google-cloud-platform
p/reso
p/meridian-16
p/zush
p/beamfy
p/make0-brain
p/expert-chase-deleted-1107920
p/lancetta
p/netfox
p/stackscope-dev
p/monocloud-for-startups-free-for-1-year
p/magic-lasso-adblock
p/comcent
p/vitals-3