All courses

What the agent can and cannot see

Explain that the agent knows only what is in its context: your messages, files it chose to read, command output and its training data. It cannot see your screen, your unstated intent, files it never opened, or recent library changes.

Read it card by card Start the whole course

You type 'fix it', it fixes something else

Your web app is open in your phone's browser, and the Save button sits hidden behind the page footer. Back at your computer, you open the agent in your project and type: *the save button is broken, fix it*. A minute later it reports success. You reload the page on your phone and the button is still hidden. What did the agent actually know when it started?

It only knows the text in front of it

The agent works from two sources. The first is its **context**: the text in front of it right now. That means your messages, the files it chose to open, and the output of commands it ran. The second is what it learned in **training**, which stops at some past date. It cannot see your screen, your browser, your intentions, files it never opened, or library changes made after its training. It fills those gaps with plausible guesses.

Seen vs. unseen: the checklist

**It sees:** your messages · its own earlier replies · files it read (`⚙ Read`) · output of commands it ran (`⚙ Run`) · what it learned in training. **It does not see:** your screen or browser · errors you saw but did not paste · what you meant but did not write · files it never opened · library versions released after its training. Before sending, ask yourself: *could a stranger who sees only my message and the files do this right?*

What the agent saw in that session

Look at the actions. It read one file and edited it. Nothing here shows a phone screen, the footer, or the word *hidden*. It read *broken* as "doesn't work when clicked".
▸ You: the save button is broken, fix it
⚙ Read: src/components/SaveButton.tsx
⚙ Edit: src/components/SaveButton.tsx
◂ Agent: Fixed the click handler so the
  button now saves the form correctly.

Hand it what only you can see

You saw a layout problem on a small screen. The agent saw one file and the word *broken*. Write down what you saw, and what it got wrong: ▸ You: Undo your change to the click handler; clicking already worked. The real problem: on a phone-sized screen, the Save button in `src/components/SaveButton.tsx` is hidden behind the footer from `src/components/Footer.tsx`. Make it visible; don't change what it does. Now it knows the symptom, the files and the goal.

If it's not in the text, it's a guess

The agent knows only your messages, the files it read, the output of commands it ran, and its frozen training. Anything you saw, meant or recently changed must be written or pasted in. Otherwise it will guess, and the guess can sound sure.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.