418-byte file balloons to 180KB: tarpit-guard MCP server flags AI-trapping code

Ok-Impact-5316 · reddit · 2026-12-01

Some code is now deliberately crafted to trap AI agents. Using a hardening tool called BLA, the author turned a 418-byte JS file into 180KB of decoy functions and misleading comments — functionally identical, but an agent reading it burns tens of thousands of tokens.

They released tarpit-guard, a small MCP server that scores files 0-100 for tarpit potential so agents can check before reading and stop if flagged; it only detects, never decodes.

The author is soliciting feedback, especially false positives.

Original post →

More from coding & agent

coding & agent channel →