-
-
GIF
-
Elwind: your AI agent gets the code, never the secrets.
-
Find: the real gateway marks 7 sensitive values in the code.
-
Mask: each value becomes a placeholder; real values stay in the local Elwind Vault.
-
Request: everything the LLM sees. Checked, not assumed: 0 real values sent.
-
Restore: Elwind puts the real values back on the laptop. Mellum2 never saw them.
-
Proof: who decided each value, plus measured scores (93.5 dev vs 28.6 starter).
Inspiration
Developers paste code, logs and configs into AI assistants every day. That text often contains API keys, tokens, passwords and internal hostnames. Once it reaches a cloud LLM, it is out of your control.
What it does
Elwind is a privacy gateway that sits between a repository and a coding agent. Before anything is sent, it finds secrets (API keys, tokens, passwords, private keys, connection strings, credentials in URLs), replaces each one with a consistent placeholder like SECRET_1, and lets the agent work on the masked copy. Afterwards it restores the real values byte for byte. The agent gets fully working code; it never sees a real secret.
How we built it
- A rule engine with format-based detectors (known key formats, entropy, assignments, multi-line arguments, prose like "the password is ...", decoded values, UTF-16 files) that separates real secrets from decoys and test values.
- JetBrains Mellum2 for the gray zone: when the rules are unsure, Mellum2 judges the candidate in context and can catch secrets the rules would miss. It also reads project docs for context.
- Safety first: Mellum calls have a hard 200 s budget per repo, with retries and a circuit breaker. If Mellum is slow or unreachable, the gateway falls back to the rules and never crashes or leaks.
- A reversible mapping layer, so restore is exact, including encodings and line endings.
- A JetBrains Air (ACP) agent and a live web demo that show the full sanitize, agent edit and restore flow.
Challenges we ran into
Balancing recall against false alarms on decoys, keeping every repo under the 300 s limit even with slow model answers, and avoiding overfitting: we kept a locked test split that we only ran once, at the end.
Accomplishments that we're proud of
- Integrity 1.0: every restore is byte-exact.
- No crashes or timeouts on any test set.
- Locked held-out test (24 unseen repos, real Mellum2): 84.97. Validation set: 93.5 (the starter baseline scores about 29).
What we learned
How to combine deterministic rules with a model, and how to design an LLM layer that fails safe.
What's next for Elwind
Team policies, audit logs and a native plugin for more JetBrains IDEs.
Submission (JetBrains Mellum Privacy Gateway)
- Repo: https://github.com/OrhunMahir/Elwind
- Commit: ef6bd5d1b23930aee47fe9494658ae717f5259da
- Dockerfile: gateway/Dockerfile (build context: gateway/)