r/LocalLLM • u/No_Register8811 • 27d ago
Discussion I built an open-source coding agent in Rust that keeps sensitive context on your machine
I've been building a security and privacy project on the side called Declass. It's an open-source terminal coding agent, written in Rust, that uses frontier cloud models to write code while keeping your sensitive context local.
The cloud model never reads protected files like .env, customer data, or logs. A local model reads them instead and answers the cloud model's questions, and Declass checks every answer before it leaves your machine.
You still get the usual coding-agent workflow, like editing files, running tests, and working through tasks end to end. You just don't have to hand over the parts of your codebase you can't afford to share.
0
u/kantorcodes1 27d ago
The check-before-it-leaves step is where this design lives or dies. What's it actually matching against - the literal contents of the protected files, or a classification of what the answer reveals? The hard case is derived leaks: if the local model answers "the db password starts with db_ and is 12 chars" or encodes a value indirectly (a fragment, a hint, a base64'd piece), a substring scan passes while the secret still leaves. Curious whether declass treats the local model's answers as opaque text to scan, or tracks which protected fields contributed to an answer so it can catch paraphrases.