Cloakroom: Open-Source Layer That Masks Keys in .env and Logs Before Coding Agents See Them

Shanjeev · reddit · 2026-10-27

Agent CLIs like Claude Code, Codex CLI and Gemini CLI read everything in a project—including .env files, logs and support tickets—and send it to the model. Cloakroom runs hooks locally that swap keys, names, emails and addresses for placeholders before the model sees them, restoring real values when the agent writes files or runs commands.

A small detection model runs locally alongside the rules. Free, open source, no account. Known gaps: output from long-running commands requires an opt-in hold, and hosted web search isn't covered. The author invites feedback on what else is missing.

GitHub: https://github.com/shanjeevrajendran/cloakroom

Original post →

More from coding & agent

coding & agent channel →