Security · 2026-11-14

You find that your coding assistant’s shell has been uploading the whole .git folder to its vendor’s servers.

  1. ANothing to do, since the vendor’s privacy policy already promises not to read customer repositories
  2. BDelete the .git folder after every session so there is never history for the shell to upload
  3. CRotate secrets from history; check what the tool sends out
  4. DMake the repository public, because then an upload of its history cannot leak anything new

Answer: C

Rotate secrets from history; check what the tool sends out

Why

Git history keeps every secret ever committed, even deleted ones, so treat them as exposed and rotate them. Then look at the tool’s outbound traffic: what an agent shell sends out is part of its behaviour, not a footnote in a policy.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path