Redacto for Visual StudioAnonymize code, logs and error messages on this device before you paste them into an AI chat, and turn the AI's reply back into your original values. Requires Visual Studio 2022 (17.x) or newer (up to 18.x), on amd64 or arm64, and the Microsoft Edge WebView2 Runtime, which shows the panel. It works on its own: there is no browser extension to install. UseOpen the panel from View → Other Windows → Redacto. Select code in an editor, text in the Output or Command window, or rows in the Error List, right-click → Anonymize with Redacto, or press Ctrl+Shift+Alt+A in any window (Locals, Watch, Find Results, ...). You can also type or paste text into the panel yourself. The panel shows the original next to the anonymized text and saves it to History, where an AI reply can be turned back into the original values. Your code is never changed. Source code and documentation: https://github.com/HunKonTech/Redacto ( How it works
Local AI modelThe plugin does not contain the Local AI model. When the Redacto panel first opens, it downloads the model once (about 170 MB) from Redacto's Hugging Face repository, checks every file against its SHA-256 and shows the progress in the panel and in the IDE. Only model files are downloaded. Until the model is there, and whenever Local AI is switched off, detection uses the pattern rules only, which cover a narrower set of categories. Code languagesRename code identifiers detects the language of each code block, locally and offline, so it knows which names are the language's and its libraries' own (keywords, built-ins, standard library) and leaves those alone. It recognizes these 50 languages:
JavaScript/TypeScript, Python, C#, Java, Kotlin, Go, PHP and Ruby also have their full standard-library names. It also recognizes jQuery, React, Lodash, Node.js, Express, Angular, Vue, RxJS, NumPy, pandas, requests, Django, ASP.NET Core, Entity Framework Core, LINQ, Spring and JUnit (with Mockito and AssertJ) from how the code uses them. Code in another language is still renamed, just without that language's own names, which errs on the side of renaming more. Known limitations
Documentation
Fork and licenseRedacto is an independent, non-commercial fork of Privacy Guardrail by the German Research Center for Artificial Intelligence (DFKI); it is not affiliated with or endorsed by DFKI. It is maintained by Benedek Koncsik and licensed under the Apache License, Version 2.0. See Redacto is free. If it is useful to you, you can support its development through GitHub Sponsors. |