Redacto for VS CodeAnonymize 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 VS Code 1.85 or newer. It works on its own: there is no browser extension to install. UseSelect code in an editor, or text in the Output panel or the terminal, right-click → Redacto: Anonymize selection. Variables, Watch expressions and test failure messages have it on their context menus too. Ctrl+Shift+Alt+A (macOS: Cmd+Shift+Alt+A) anonymizes the selection anywhere, also in the Debug Console and the Problems view. Redacto: Anonymize clipboard handles text you copied from somewhere else. You can also type or paste text into the panel yourself. The panel (Redacto in the Activity Bar) 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. |