2026-11-27 16:43 UTC

Cloakroom aims to mask sensitive data in coding-agent tool results

state: expiredheat: lowuncertainty: mediumrelevance: mediumcoding-agents data-privacy secret-redactionShanjeev

What is this?

Cloakroom is an open-source tool its developer says uses Codex hooks to mask secrets and personal data in shell output and MCP results before they reach the model, and to restore placeholders locally in some commands and patches. The supplied Reddit post says it was tested with Codex 0.164 and describes setup requirements and coverage gaps. Search results also describe Cloakroom versions or integrations for Claude Code and Gemini, but do not independently verify how well any version works.

Why it matters

Cloakroom addresses a practical privacy risk in coding agents: commands and MCP tools can return secrets or personal data that may be sent to a model. If its hooks work as described, local masking could reduce accidental exposure without preventing the agent from using placeholders. This is a small, developer-led tool, not an independently validated security control; its documented gaps and the requirement to trust the hooks matter before relying on it.

Current assessment

The developer’s Reddit post describes Cloakroom as a free, open-source tool that uses Codex hooks to mask shell output and MCP results, restore placeholders locally in commands and patches, and block prompts containing detected secrets. The post says it was tested with Codex 0.164 and warns that hooks must be trusted to run; `codex exec` may not warn when they are skipped. It also identifies important blind spots: long-running commands can emit unmasked initial output unless an opt-in setting is enabled, Codex web search is outside its reach, images opened with `view_image` are not covered, and unknown commands are refused rather than prompting the user. Search results provide newer, developer-associated evidence of Cloakroom versions or integrations for Claude Code and Gemini, with broader claimed coverage, but these snippets do not independently establish efficacy or security. Treat this as a potentially useful defense-in-depth option for people using coding agents with sensitive data, not a guarantee that data cannot reach a model; the supplied evidence does not include independent testing, an audit, or adoption data.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-26 01:21⭐ origin directly observedCodex CLI reads your .env and logs: I wrote hooks that mask keys and personal data before the model sees them
Shanjeev on r/codex
—
10-26 01:21amplified on r/codex 👑reddit.post.1xfjknn
Shanjeev
peak 2 · 5 comments · 100% of case engagement
10-26 01:25our radar first saw it · +0.1hdiscovery anchor: reddit.post.1xfjknn—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 reddit ⭐Codex CLI reads your .env and logs: I wrote hooks that mask keys and personal data before the model sees them
codex
Shanjeev05

Interpretation history

Decision trace