Redact private paths and strings from error logs before pasting into AI.
A tiny, fast GTK app for Linux that helps you scrub sensitive data (like local file paths, usernames, API keys) from stack traces and logs — so you can safely paste into AI tools without leaking private info.
You're debugging. You copy a huge error stack.
You want to ask an AI for help.
But your home directory, project paths, or secrets are in there.
Don't risk it.
Don't manually edit 200 lines.
Just:
- Paste the log
- Add/remove strings to strip
- Click Parse
- Copy clean output → paste safely
- Simple GUI (GTK3) – works great on Linux desktops
- Live removal list – edit and reuse your common redaction strings
- One-click parsing – replaces all matches instantly
- Saves your removal list to
removal_strings.txton each parse - Zero dependencies beyond GTK (standard on most Linux distros)
python redactify.py- Paste your error log into the top text box
- Edit the middle box with strings to remove (one per line), e.g.:
/home/alice/ /projects/secret-app/ my-secret-key - Click Parse
- Copy the clean output from the bottom box
- Paste safely into ChatGPT, Claude, etc.
Your removal_strings.txt is saved automatically.
Before (Input):
Traceback (most recent call last):
File "/home/bob/projects/myapp/main.py", line 42, in <module>
load_config("/home/bob/.config/myapp/secret.json")
KeyError: 'API_KEY_12345_XYZ'Removal List:
/home/bob
12345_XYZ
After (Output):
Traceback (most recent call last):
File "/projects/myapp/main.py", line 42, in <module>
load_config("/.config/myapp/secret.json")
KeyError: 'API_KEY_'Safe to share.
- Python 3
- PyGObject (
gi) - GTK+ 3
Install on Debian/Ubuntu:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0On Fedora:
sudo dnf install python3-gobject gtk3MIT License – Free to use, modify, and distribute.
This tool started as a 15-minute script to stop me from leaking my ~/dev/ paths into AI chats.
It’s small, it works, and now it’s yours.
Star if it saves you time.
Fork if you improve it.