Credentials. Advisory mode forwards the original content, so detected secrets can reach the model while you tune rules.
Who it is forA platform engineer who must confirm false positives are low before enforcing redaction across a team's agent traffic.
The problemEnforcing rules too early can break legitimate prompts, but staying silent means secrets flow unchecked.
The outcomeThe team sees which rules fire on real traffic and can add stopwords or a carnet before switching to redact or no-go.
What you need first
- A running underclass instance on 127.0.0.1:8080
- Nix (for `nix run`) or devenv and Cargo for a local checkout
- A coding harness or client that can change its base URL to http://127.0.0.1:8081/v1
- Bubblewrap available for the default sandboxed attachment workers
Steps
- Set
mode = "advisory"in a config file (inferred, check the README) - Validate it with
preflight check --config /path/to/config.toml(inferred, check the README) - Start the proxy with
preflight serve --config /path/to/config.toml - Review
inspection.findingevents and rule IDs in the JSON logs - Add exact exemptions to
stopwordsor hashes tocarnet, then switch mode toredact
Prompt for your agent
Using the preflight repo at github.com/ghuntley/preflight, set the mode to advisory in a config file, run preflight check, and send <N> sample prompts through the proxy. Report each rule_id that fired and whether it was a true or false positive, and verify that the forwarded content matches the original.
Caveat. The README says advisory mode is useful for tuning but that detected secrets can reach the model in that mode, so keep it away from sensitive repositories.
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