Show HN: Watermarks Remover: Clean LLM watermarks from text and files
A Python-based open-source tool that removes multi-vendor AI provenance watermarks from text and various file formats (images, documents, audio, video) Supports detection and removal of watermarks from Claude, Gemini/SynthID-Text, OpenAI, and open-LLM systems using Kirchenbauer-style and keyed-Gumbel/Aaronson methods Ships as an agent skill with a thin HTTP client architecture, integrating as a PostToolUse hook in Claude Code and Cursor to auto-detect and strip watermarks from files the agent wr
Analysis
TL;DR
- A Python-based open-source tool that removes multi-vendor AI provenance watermarks from text and various file formats (images, documents, audio, video)
- Supports detection and removal of watermarks from Claude, Gemini/SynthID-Text, OpenAI, and open-LLM systems using Kirchenbauer-style and keyed-Gumbel/Aaronson methods
- Ships as an agent skill with a thin HTTP client architecture, integrating as a PostToolUse hook in Claude Code and Cursor to auto-detect and strip watermarks from files the agent writes
- Provides two operational modes: "check" (reports marks without modifying files) and "clean" (strips marks in-place with atomic file swaps to preserve mtimes)
- Version 0.6.0, requires Python 3.10+ stdlib with zero external dependencies, and includes pre-commit hooks, CI SARIF export, and support for 15+ file formats
Why It Matters
This tool addresses a growing tension between AI provenance tracking and user privacy/ownership rights, offering practitioners a way to reclaim full control over AI-assisted content before publication or distribution. As major AI vendors increasingly embed invisible watermarks into generated outputs, tools like this become relevant for researchers, developers, and organizations concerned about content hygiene, metadata privacy, and the ability to publish AI-assisted work without embedded tracking signals.
Technical Details
- Three-layer watermark removal architecture: Layer A handles invisible Unicode, exotic spaces, bidi overrides, and tag characters via deterministic Python scripts; Layer B addresses statistical token-sampling text watermarks through agent rewrite plus an optional
rewrite_text.pyhook; Layer C targets metadata watermarks in C2PA, EXIF, XMP, and document properties across PNG, JPEG, WebP, AVIF, HEIC, BMP, GIF, TIFF, SVG, PDF, DOCX, XLSX, PPTX, EPUB, ODT, HTML, Markdown, MP4/MOV/M4A/M4V, WAV, MP3, and FLAC - Agent skill integration: The skill acts as a thin HTTP client calling a local Python service, with a
PostToolUsehook registered onWrite|Edit|MultiEdit|NotebookEditevents that runshook_written_file.pyagainst newly written files, usingaudit_lib'sscan_file/is_actionablefor consistent detection across hooks, pre-commit gates, and CI SARIF exports - Atomic cleaning strategy: In "clean" mode, the tool writes to a sibling temp file and swaps only when content actually changes, preserving file mtimes and avoiding unnecessary file watcher triggers
- Installation and packaging: Supports Claude Code (personal and project-scoped), Cursor, Cowork, claude.ai, and cloud sessions via a unified
install_skill.pyscript that validates against Agent Skills packaging rules (spec-only frontmatter, naming constraints, 1024-char description limit, 30 MB upload cap for Cowork bundles) - Configuration via environment and settings: Hook mode is controlled by
WATERMARKS_HOOK_MODE=cleanor theCLAUDE_PLUGIN_OPTION_HOOK_MODEvariable, deliberately avoiding${user_config.hook_mode}interpolation to prevent silent hook failures on fresh installs
Industry Insight
- The emergence of dedicated watermark-removal tooling signals an escalating cat-and-mouse dynamic between AI providers embedding provenance marks and users seeking to strip them, likely prompting vendors to adopt more robust or server-verified watermarking schemes in the near term
- The hook-based integration pattern (detect-on-write with check-by-default) offers a reusable blueprint for other content-integrity tooling, such as license compliance scanning, PII detection, or style-guide enforcement in AI-assisted development workflows
- Professionals should evaluate whether their organization's AI content policies require keeping or removing these marks, as the tool's existence makes watermark removal trivially accessible and may affect downstream content authenticity claims or platform compliance requirements
Disclaimer: The above content is generated by AI and is for reference only.