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 6 of 6

Untrusted until checked at the door

Every value from outside your code is untrusted until you check it at the boundary where it enters. Validate its shape there. Then hand it on as data, never as part of a path, query, command or page that another program will interpret. Where it must go into text, encode it for that destination.
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