All courses

Coding agent vs chat assistant

Explain that a coding agent is a language model with tools that reads your files, runs commands and edits code itself, while a chat assistant only returns text you copy by hand. Name what changes as a result: speed, reach and risk.

Read it card by card Start the whole course

Same request, two very different helpers

With a chat assistant, you paste code in, it replies, and you copy its answer back into your file and run it yourself. Now you open a **coding agent** in your project folder and type: *"The total in `report.py` is wrong. Find out why and fix it."* You haven't pasted any code. What will it actually do, and why can it do more than the chat window could?

A language model that has hands

Underneath, both use the same kind of **language model**. The difference is **tools**. A chat assistant can only produce text, and it sees only what you give it. You are its hands. A coding agent is given tools: it can **open your files**, **run commands** on your computer, and **edit files directly**. It chooses which tool to use, reads what comes back, and keeps going until it thinks the task is done.

What changes: speed, reach, risk

- **Speed:** no copy-paste round trips. It reads, runs, edits and re-runs on its own, in one go. - **Reach:** it can open any file in the project and run your program, not just the snippet you remembered to paste. - **Risk:** its edits land in your real files, and its commands run on your real machine. An approval prompt only protects you if you actually read what you approve.

What that request looks like in an agent

Each `⚙` line is the agent **acting**, not talking. Many tools can pause to ask you first. Here it was set to ask only before edits, so it ran commands without stopping. The final message is its own summary. Notice that by then the file is **already changed**.
▸ You: The total in report.py is wrong.
  Find out why and fix it.
⚙ Read: report.py
⚙ Run: python report.py
⚙ Read: data/sales.csv
⚙ Edit: report.py
[Approve? yes / no / always]
⚙ Run: python report.py
◂ Agent: Fixed. The loop skipped the
  last row of sales.csv, so totals
  were short. The total now
  includes every row.

Compare it with the chat way

In chat you'd paste `report.py`, maybe forget the CSV, get a guess, paste it back, run it, then paste the new error. That's several round trips, and you touch every change. The agent found the data file itself, ran the script and edited the file. It was faster and reached further. But clicking yes at a prompt is not the same as reading the edit, and its summary is its own claim. So your job shifts from **typing changes** to **checking what it changed**.

Remember

A coding agent is a language model with tools: it reads your files, runs commands and edits code itself, while a chat assistant only hands you text to copy. That makes it **faster** and gives it **more reach**, and it also **raises the risk**, because its changes are real the moment it makes them.

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.