Skip to content
All articles
Fundamentals 8 min read· by Lars Zimmermann

Where does your data go when an AI writes code for you?

Agent in the terminal, assistant in the cloud or local AI: which data leaves your computer when you code with AI, and why test data has to be made up.

In short

There are three kinds of tools for coding with AI. An agent in the terminal works on your computer but sends inputs and answers to the provider. A cloud assistant works on a copy of your project on other people’s computers. A local AI keeps everything with you. Real data goes into none of them; you build with made-up data.

Auf Deutsch lesen: deutsche Fassung

Video· in German· 3:43

Three tools, one goal: where does your data go when you build with AI?

Clicking the image or a chapter loads the video from YouTube. Your browser then sends data to Google, such as your IP address. Until then there is no connection to YouTube. More in the privacy policy.

How the episode is made: the voice is an AI clone of my own voice and the music is AI-generated, both produced locally on my computer. Ronny, the drawn robot, has no voice; his lines appear as text on screen. I am responsible for the content and the facts.

More episodes on YouTube: channel “Der KI-AUDITOR” · playlist “Coding with AI”

Ronny is supposed to test the sign-up for training sessions. He asks: do you have real data for me? And the club’s entire membership list lands in the chat window. Names, mobile numbers, the children’s birthdays. Ronny cheers: testing done! Only now nobody knows exactly which computers this list is sitting on. That is how the second episode of my Coding with AI series begins, a video in German. In the first, we made the plan for a small club app, without any code at all. Now it is about the tools with which an AI writes code for you, and about the question that should come before every tool: where does your data go?

Three kinds of tools

Anyone coding with AI today almost always ends up with one of three kinds of tools. The names change quickly, the design stays. That is why I describe them by design and name no products.

  • The AI agent in the terminal. The terminal is a plain window for commands. Agent means: the AI carries out tasks itself. It reads your project, changes files and runs commands, directly on your computer. The language model doing the thinking usually runs at the provider on the internet.
  • The coding assistant in the cloud. You give it a task in the browser or in an app, and it works on a copy of your project on someone else’s computers. Your own computer can even be asleep in the meantime.
  • The local AI. A program on your computer downloads a language model and does the computing itself. It needs a powerful computer, and the models are usually weaker than the big ones on the internet.

For the data question, the window you type into is not what matters. What matters is where the model computes and what it gets to see for that. That is exactly what the manufacturers’ documentation says, and I read it for all three designs, as of November 2026.

What leaves your computer

With the agent in the terminal the answer is least obvious. A widely used agent describes itself in its documentation like this: it reads your codebase, edits files and runs commands. It runs locally. To work with the language model, however, it sends data over the network, and that includes all inputs and all of the model’s outputs, encrypted in transit. Whatever the agent reads from your files so that the model can think about it becomes part of this conversation. If it reads the membership list, the list is at the provider.

How long it stays there depends on the account. For the same manufacturer, the documentation says: for private accounts that have allowed their data to be used for model improvement, data is kept for five years, without that permission for 30 days. For business accounts it is 30 days by default, and under the business terms the manufacturer does not train on code or prompts unless the customer opts in. One detail many people miss: the agent also stores the session histories on your own computer, for 30 days by default, in plain text. So the list then sits in two places.

With the assistant in the cloud, things are clearer. If you start a session there, your project is copied into an isolated virtual machine run by the provider, as the same manufacturer describes for its cloud sessions. A second large provider writes about its coding agent that each task in the cloud has its own workspace and can keep running while your computer is asleep. That is convenient. It also means: everything in the copied version of your project then sits on someone else’s computers.

With local AI, ideally nothing leaves your computer. A widely used program for local models writes in its frequently asked questions: when it runs locally, the provider does not see your prompts or data. The same program also offers models in the cloud, though. The provider processes those in its own cloud, according to its own statements without storing the content and without training on it. Anyone who wants to be sure can switch off the cloud features there and run the program in local-only mode. Hence the sentence from the video: check whether the model really runs on your machine.

Real data does not belong in building

Back to Ronny and the membership list. It contains children’s data. The General Data Protection Regulation states expressly in recital 38 that children merit specific protection with regard to their personal data, because they may be less aware of the risks. A club that builds an app is responsible for this data. And a test run is no reason to send it to someone else’s computers.

Building does not need the real data anyway. Made-up data is enough for testing: a coach called Erika Muster, a child called Max Muster, a birthday on 1 January, mobile numbers that belong to nobody. The AI notices no difference. The sign-up works with Max Muster just as well as with a real child. And if something goes wrong, nobody gets hurt.

Sometimes it is tempting to change the real list just a little: names out, everything else in. The German data protection supervisory authorities expressly warn against this. According to their guidance on AI, it is generally not enough to remove names and addresses, because the context may still show who is meant (paragraph 49). In a club list with birthday, team and training time, everyone in the club recognises the child, even without a name. Making data up is faster and safer than redacting it.

For organisations this is not a new idea. ISO/IEC 27001, the standard for information security, has dedicated controls for it in Annex A: A.8.33 on test information, which must be appropriately selected, protected and managed, and A.8.31 on separating development, test and production environments. In audits of software projects I therefore always ask: what is it tested with, and where does the test data come from? An AI that helps with coding changes nothing about this question. It makes it more urgent, because it gets to files faster than any person.

A thought experiment from the office shows how easily it happens. Someone wants to find a bug in the customer management system and gives the agent the whole project folder. In it, forgotten for months, sits an export file with real customer data from reproducing an old bug. The agent reads it because it matches the bug. Nobody meant any harm. The data is on its way all the same. That is why working with an agent requires a tidy folder that contains only what it may see.

Which tool fits which job

None of the three tools is right for everything. In the video I give a simple rule of thumb that also holds at work:

  • For practising with made-up data, the assistant in the cloud is convenient. Nothing needs installing, and there is nothing that can come to harm.
  • If you are working on your own project and want to see every step, use the agent in the terminal. You can stop it at any time. If you want to approve commands and file changes yourself beforehand, switch it to manual mode. In a widely used agent, by default a second model reviews its steps instead of you.
  • If data must not leave your computer at all, local AI remains. Expect less performance and check that the cloud features really are off.

In my series we mostly work with the agent in the terminal. Ronny, that is you. It is set up in three rough steps. First, create an account or install a program, and for local AI also download a model. Second, create a separate folder just for your project; that is where the agent works and nowhere else. Third, practise in an empty test folder first: have it create a small file and watch closely what happens. Only once you understand that does the club app come next.

The second step is the most important. An agent you start in your user folder can read everything there that you can read too: photos, tax documents, last year’s membership list. A separate folder for the project is the simplest boundary there is. It takes one minute.

For teenagers who help build things at their club, one more rule applies: ask the committee before any real list goes into a tool. Whoever manages the data decides where it goes. That is not red tape. It keeps it clear who has to be asked if someone later wants to know where their data ended up.

What an organisation should make of it

At work one question comes up that nobody asks at home: which account is being used? The documentation above shows why it matters. The same tool keeps data for 30 days or five years depending on the account type and setting, and whether it is used for training depends on a setting in the private account. Anyone coding at work with a private account holds that setting in their own hands. The organisation does not.

ISO/IEC 27001 provides for this in Annex A with control A.5.23: defined processes for the acquisition, use, management and exit from cloud services. A coding agent that sends source code to the provider is such a service. In practice, three decisions are enough: which tools are allowed with which account, which folders and data they may see, and that testing uses made-up or properly anonymised data, never real data. That fits on one page and can be checked in an audit against real projects.

A form for approving a new AI tool, with purpose, data, account and the person responsible:

Template: AI tool approval request

And anyone who would rather have a project built should ask the service provider the same questions. Which tool does it work with, where does the model compute, and what data does it test with? A good answer comes without hesitation.

How I implement AI projects together with a software developer, with local AI on request:

Implementing AI projects
Remember: for every tool, first ask where it runs and what leaves your computer. You build with made-up data, never with real data.

The task from the video: create an empty folder on your computer and call it practice ground. Think about which of the three tools you want to use and why. In the next episode we write the first real brief for the AI, with a goal, limits and the question of how you can tell that it is really finished. Which file on your computer should an AI agent never get to see?

Primary sources

Share: LinkedIn E-Mail

Frequently asked questions

Does an AI agent in the terminal send my code to the internet?+

Usually, yes. The agent runs on your computer, but the language model as a rule runs at the provider. According to the documentation of a widely used agent, all inputs and outputs go over the network, and whatever the agent reads from your files becomes part of that.

Is local AI safer for coding?+

For data protection, yes, as long as the model really runs on your computer. Some programs for local models also offer models in the cloud. Check this in the settings and switch off the cloud features if data must not leave your computer.

May I test with real data if it is quicker?+

Better not. If the tool sends data to the provider, the real data then sits there too, and under the GDPR children’s data merits specific protection. Made-up data such as Erika Muster and Max Muster is enough for building and testing. The AI notices no difference, and nobody gets hurt.

What should an organisation decide before its first coding agent?+

Which tools are allowed with which account, which folders and data they may see, and that testing uses made-up or anonymised data. ISO/IEC 27001 has dedicated controls in Annex A for cloud services and test information.

Author & expert review: Lars Zimmermann · ISO/IEC 42001 Senior Lead Auditor & Senior Lead Implementer · ISO 9001 Senior Lead Auditor · ISO/IEC 27001 Lead Auditor & Lead Implementer (PECB)

An auditor with shop-floor experience and managing director of a manufacturing company, who audits and builds AI management systems and information security. Author of “Stallgeruch” (in German). Verify the credential on Credly · More about me.

Last updated: 01 December 2026. Researched and reviewed to the best of my knowledge. This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.

Questions about your own case?

In a free 15-minute intro call we assess where you stand on ISO 42001, ISO 27001 and the EU AI Act, honestly and without a sales pitch.

Continue reading