Your agent can read text you can't see: the step-by-step setup
A short breakdown from Adam Rosler, AI engineer. The one you commented HIDDEN for.
What's happening
AI coding agents read project "rules files" (CLAUDE.md, .cursor/rules, .github/copilot-instructions.md) and
follow them. Unicode has 128 invisible "tag" characters, one for every letter, digit and symbol. Your editor and your
terminal draw nothing for them, so a line written in them looks empty. The model still reads it, as words.
In March 2025, researchers at Pillar Security hid instructions like this in rules files, and Cursor and GitHub Copilot
quietly added a script from an attacker's site to the code they wrote, without mentioning it. When we put a similar hidden
line in a CLAUDE.md and ran Claude Code, it read the line word for word and refused, and told us. That refusal is the
model's choice, not a guarantee, and you never see the line yourself.
Why it matters
Rules files arrive in pull requests, templates and copied repos. A reviewer sees a blank line and approves it. From then on every agent session in that repo reads an instruction no human has read.
Step by step
- Check a file now. In a terminal, in your repo:
No output means clean. A line number (likegrep -nP '[\x{200B}-\x{200F}\x{202A}-\x{202E}\x{2060}-\x{2064}\x{FEFF}\x{E0000}-\x{E007F}]' CLAUDE.md4:) means that line holds hidden characters: tag characters, zero-width spaces or text-direction markers. Run it over every rules or prompt file you have. - Check every commit. Put the same check in a pre-commit hook so a commit that adds hidden characters is refused:
create
.git/hooks/pre-commit(make it executable) that runs the grep on the staged rules files and exits with an error when it finds a match. Share it with your team through a hooks folder (git config core.hooksPath .githooks). - See them where you review. GitHub shows a warning for hidden Unicode in files on github.com (since May 2025), and
VS Code highlights invisible characters. Your terminal doesn't:
catprints a hidden line as blank. - If you find one, read it before you delete it. It tells you what someone wanted your agent to do.
Sources: Pillar Security, "New Vulnerability in GitHub Copilot and Cursor: How Hackers Can Weaponize Code Agents" (March 2025); the Unicode Tags block (U+E0000-U+E007F); GitHub's changelog (1 May 2025); our own runs with Claude Code, 23 Nov 2026.
Unlock the full HIDDEN breakdown
Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.