Free lesson · Module 1, lesson 1 of 7

From autocomplete to coding agents

Place autocomplete, a chat assistant and a coding agent on one line by who chooses the next step, and say what agentic engineering is: building and running the software around a model that acts on code.

Lessons in this module

Lesson notes

For the student

Autocomplete, a chat assistant and a coding agent all use a model. They differ in one thing: who chooses the next step. This lesson places them on one line and says what agentic engineering is. If you have not written Python before, start with the beginner courses first.

One line, by who chooses the next step

  • Autocomplete: suggests the rest of the line you are typing. You choose every keystroke
  • Chat assistant: replies to your message with text or code, then waits. You copy, run and ask again
  • Coding agent: given a task, it reads files, edits, runs the tests and reads the result; the model chooses the next step (edit again, run another test, or stop), within limits its builder set
  • A fixed script (for example: lint, then test, on every commit) acts, but its programmer chose every step in advance. It is not on the line and it is not an agent

Definitions

  • Agent: a model that chooses its own next step, using tools, in a loop, until the task is done
  • Tool: a function in your program that the model can ask to run. A coding agent's tools read a file, search the code, edit a file and run a command such as the tests
  • Agentic engineering: building and running the software around a model that acts on code: the tools, the loop and the limits on what the agent may do
  • In this course you build one coding agent, RepoMate, on Campus Store, a practice repository made for this course (the web API of a college store, with its tests)

Two questions that place any coding help

  • Does it act on the files, or only suggest and reply? Only suggests or replies: autocomplete or a chat assistant
  • It acts: who chose the order of the steps? A programmer, in advance: a fixed script. The model, after reading each result: an agent
  • Judge a tool by what it does, not by what it is called

Habits

  • Writing code is not choosing steps; chat rounds you drive are not a loop
  • A change counts when the tests pass, run by your program. A reply that says the work is done is only text the model wrote

Try it

  • Sort these five into autocomplete, chat assistant, fixed script or coding agent, and say who chooses the next step in each
  • 1: grey text in your editor that finishes a function name
  • 2: a chat window that explains a traceback you paste in
  • 3: a job that runs the linter and the tests on every push
  • 4: a tool that reads a bug report, searches the code, edits a file, runs the tests and tries again when they fail
  • 5: a chat window whose code you copy, run and paste back, five times
  • Check yourself: 1 autocomplete (you); 2 and 5 chat assistant (you, every round); 3 fixed script (its programmer, in advance); 4 coding agent (the model)

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

Autocomplete, a chat assistant and a coding agent all use a model. Which single question places them on one line?

Question 2 · medium

A job on the college store project runs the linter and then the tests on every commit. It really does act. Why is it not an agent?

Question 3 · medium

A tool on Arjun's project acts on the files: it edits code and runs commands. Which question decides whether it is an agent or a fixed script?

Question 4 · medium

What does this course mean by agentic engineering?

Question 5 · hard

Kabir pastes a traceback into a chat window, copies the code it replies with, runs the tests and pastes the new failure back. After five rounds the tests pass. Which statement is right?

Next: Inside a coding agent: model, tools, loop and harness