Porting a PII tracer byte-exact from Python to TypeScript, so a coding agent cannot leak your secrets

2026-10-29来源 dev.to TypeScriptEnglish
Porting a PII tracer byte-exact from Python to TypeScript, so a coding agent cannot leak your secrets

My coding agent is good at its job. It is also one cat .env away from sending my keys to a vendor. I did not want to trust a prompt for that. I wanted the request itself to be clean, provably, before it leaves.

This is the story of porting a PII tracer from Python to TypeScript - byte-exact - so it could run inside the agent's pipeline instead of next to it.

原文:https://www.a8q9.cn/en/article/porting-a-pii-tracer-byte-exact-from-python-to-typescript-so-a-coding-agent-cann-584be6.html

相关文章