You find that your coding assistant’s shell has been uploading the whole .git folder to its vendor’s servers.
- ANothing to do, since the vendor’s privacy policy already promises not to read customer repositories
- BDelete the .git folder after every session so there is never history for the shell to upload
- CRotate secrets from history; check what the tool sends out
- 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 Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path