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.
Untrusted text can steer the agent card 2 of 6

Data and commands arrive as one text stream

builds on: What the agent sees: its context, Trust boundaries and untrusted input
Everything in context reaches the model as one stream of text. Labels that mark a part as your prompt or as tool output are just more text in that stream. They are not a separate channel the model is forced to respect. Models are trained to follow instructions, and training them to ignore instructions inside data only works some of the time. So a line in an issue, README, web page or test log that reads like an order can be obeyed. Unlike SQL, there is no parameterised query or escaping that reliably keeps the two apart.
Terms on this card
context
Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
tool output
Text returned to the agent after it runs a tool, such as a shell command's output, a test log or a fetched web page.
parameterised query
A SQL query where values are sent separately from the SQL text, so the database never treats data as code.
escaping
Marking special characters in data so a parser treats them as plain data rather than syntax.
model
The AI language model at the core of a chat assistant or agent: it takes text in and produces text out.
Learn this step by step on Bytewise
Lesson goal: Explain that instructions hidden in files, web pages, issues, READMEs or tool output enter the agent's context, and the agent cannot reliably tell data from commands. Predict what an injected instruction could make an agent with your permissions do. · the whole lesson