Inspiration
Coding agents now read whole repositories and send them off to a cloud model. Those repositories contain live API keys, internal hostnames and personal data. Right now you either give the agent the context it needs, or you keep your secrets to yourself.
What it does
Airlock sits between your repository and the cloud model.
sanitizefinds the sensitive values in a repo and replaces them with stable placeholders, writing out a mapping.restoreputs the originals back, byte for byte, in whatever comes back from the model.
The same value always becomes the same placeholder, so the model can still follow what the code is doing. Nothing is added or removed, so patches still apply. Things that merely look like secrets are left alone.
How we built it
Two layers. A fast deterministic pass over the repository proposes candidates, and JetBrains' Mellum2 decides the ambiguous ones. Every confirmed value is then masked everywhere it appears, in every form it appears in, and a final pass checks that nothing slipped through.
What's next for Airlock
- Running Airlock as an agent inside JetBrains Air, so it is part of the tool you already use.
- A streaming proxy, so any existing agent can point at it unchanged.