Inspiration
Every team in the JetBrains challenge started with the same question: how can developers use a cloud coding agent while keeping sensitive project data private? We focused on making that work in PyCharm, where a developer can ask for a change and check the result in their own files.
What it does
Xellum masks sensitive values it finds in project files and chat messages, including API keys, private server addresses and personal data. The coding agent works with placeholders. When it replies or edits a file, Xellum restores the original values for the developer.
How we built it
We built on the starter gateway from JetBrains. We wrote rules to catch common secrets and used Mellum to interpret clues in the project’s documentation, such as which servers are private. We connected Xellum to JetBrains Air so the coding agent could read and edit a masked copy of the project.
Challenges we ran into
A public website and a private server can have almost identical names. A password can also be split across two strings, making it easy to miss. We had to catch cases like these while leaving ordinary values alone and keeping the code valid.
Accomplishments that we're proud of
As an extra step, we added support for Mellum to Xenolith, our own inference engine, and ran the model locally on our laptop.
What we learned
Sometimes the best clue about a value is in another file. A line of code might tell us where a server is used, while the documentation tells us whether it is private. We also learned that using the same placeholder in chat and in code helps the agent follow a request without seeing the underlying value.
What's next for Xellum
Today, Xellum prepares a masked copy when the project opens and syncs edits at the end of each turn. We want to integrate FUSE so Xellum can handle file access directly, masking values when the agent reads a file and restoring them when it writes an edit.
We’d also like to explore Tree-sitter to better preserve code syntax during masking. Another direction is to give the local agent tools to write and test its own regular expressions, then refine them based on what it finds in each project.
Repo, hash and docker
Repository: https://github.com/simoneiacomino/mellum-privacy-gateway Commit hash: 30e0de966f54718ecf6ffc89bd8047e214a48373 Dockerfile: gateway/Dockerfile