← All articles
Developer Guides

AI coding tools and privacy: what to check before sharing a file or prompt

A privacy checklist for sharing code or files with AI tools: inspect sensitive data, metadata, retention terms, and connected permissions.

Before sharing a file or prompt with an AI tool, ask what information it contains, where the service processes it, and which settings or connected tools can access it. “It is only a snippet” is not a privacy review: a few lines can reveal customer data, internal URLs, credentials, or a proprietary design.

Review the material before upload

Search code and logs for API keys, tokens, passwords, private URLs, customer identifiers, email addresses, and production data. Replace them with realistic but fictional values while keeping the structure needed to explain the issue. Remove unrelated files and context instead of sending a whole repository by default.

For images and documents, inspect metadata as well as visible content. Photos may contain device, timestamp, or location fields depending on the format and capture settings. The Toolsnix Image Metadata Editor can help inspect or edit supported image metadata; confirm the exported file afterward because metadata support varies by format.

Check the service and its connections

Read the provider’s current privacy and data-use terms for the account and plan you use. Check retention, training use, deletion controls, access by collaborators, and whether prompts may be reviewed for abuse or support. These details vary by provider and can change, so avoid relying on a generic promise from a different product tier.

If an AI assistant can use tools, review connected drives, repositories, browser sessions, and API credentials separately. Limit access to the task, prefer read-only access where practical, and require confirmation before actions that send, publish, or delete information.

Use a simple sharing decision

  1. Classify the data. Is it public, internal, personal, regulated, or credential-bearing?
  2. Minimize it. Share the smallest excerpt that reproduces the problem.
  3. Sanitize it. Replace real identifiers and secrets with test values.
  4. Check the destination. Confirm the account, settings, retention, and connected permissions.
  5. Review the output. Make sure the answer has not repeated private details before sharing it further.

If a live credential was shared, rotate or revoke it; deleting the prompt may not invalidate the credential.

FAQ

Is a browser-based tool automatically private?

No. Browser execution and network behavior depend on the specific tool. Check what the page says it processes locally and whether it makes external requests; do not infer privacy from the word “online.”

Can I anonymize a code sample by changing names?

Changing names helps, but inspect literals, comments, stack traces, URLs, and surrounding context too. Ensure the sample still reproduces the issue after sensitive details are removed.

Should I upload a full photo to remove metadata?

Only if needed. Use a copy, inspect the exported result, and verify which fields the editor supports for that format.

Further reading