Who it is forA developer or security reviewer who wants proof that the gateway catches random credentials without a known prefix before trusting it with real prompts.
The problemVendor claims about secret detection are hard to judge without seeing how the detector treats a value that has no key prefix or password label.
The outcomeYou see the gateway's output for the same synthetic string under three detector settings, plus the exact restore check, without any network call or API key.
What you need first
- Node.js 20+, Git, and a terminal
- An OpenAI or Anthropic API key and an available model name, only if you make live upstream calls
- A trusted environment for running the gateway, since it handles raw requests and provider credentials
Steps
- Clone the repository with
git clone https://github.com/CassiopeiaCode/CosyRedactGateway.git - Enter the project folder with
cd CosyRedactGateway - Run the offline demo with
node scripts/demo-high-entropy.mjs - Run the regression and entropy tests with
npm testandnpm run entropy-report
Prompt for your agent
Clone https://github.com/CassiopeiaCode/CosyRedactGateway, run `node scripts/demo-high-entropy.mjs` from the repo root, and report the output for the PSIBEG, H, and all-enabled settings. Verify that the restore check passes and state that the results describe only the synthetic samples, not production leak rates.
Caveat. The demo and calibration numbers use synthetic samples only, so they do not measure how the gateway performs on your own data.
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page