In any exchange over a network, one program asks and the other answers.
Client and server
A client asks and a server answers. A server is only a program on a computer somewhere, waiting to be asked. Your browser is a client. So is a phone app, or a script you run in a terminal.
Agents will happily put code on the wrong side of this line, and the result still runs. When you read what one built, the first question is which machine each piece runs on, because that decides who can see it and who can change it.
“Before you change anything, list every file you created in a table with three columns: the path, whether it runs on the server or in the browser, and which secrets or data it can reach.”