Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Trust boundaries and untrusted input card 1 of 6

Who chose that file name?

You ask the agent for an endpoint that returns a saved report by name. It adds one, requests `?name=q1.pdf` in a test, gets the file back and reports done. The name comes straight from the URL. You did not choose that string, and neither did your code. Anyone who can reach the server did. What could they put there?
Terms on this card
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
endpoint
A URL plus method (such as GET /items) that a web API answers requests on.
Learn this step by step on Bytewise
Lesson goal: Identify where data crosses from an untrusted source (users, network, files, third parties) into your code. Explain that injection bugs come from treating that data as code or commands, and that the defence is to validate and encode at the boundary. · the whole lesson