Chat, autocomplete and agent
| Chat (claude.ai) | Editor autocomplete | Claude Code | |
|---|---|---|---|
| What it sees | what you paste | the current file and neighbours | the whole repository, reads on its own |
| What it does | answers with text | suggests lines of code | changes files, runs commands, tests, git |
| Who verifies | you copy and run | you accept the suggestion | the agent runs tests and fixes itself |
| Task size | a question, a snippet | a line, a function | a feature, bug fix, multi-file refactor |
The key difference is the loop: the agent decides which files to read, what to change and how to verify the result. You set the task and make decisions at key points.
What working with it looks like
- You open a terminal in the project folder and run
claude. - You describe the task in plain language: "Add a date filter to the orders page with tests."
- The agent finds and reads the relevant files and proposes a plan.
- It changes the code, runs tests and the linter, fixes errors.
- It shows a summary and, if you ask, makes a commit or a pull request.
By default the agent asks permission for every action that changes files or runs commands. How to configure that is covered in the permissions lesson.
Tasks to give the agent
- Bug fixes with a reproduction: an error, a log or a failing test.
- Medium-sized features: a new page, an endpoint, an API integration.
- Refactoring: renaming, extracting a module, upgrading dependencies.
- Tests and documentation: covering existing code, README, comments.
- Code exploration: "how does auth work here?", "where is the price calculated?".
What is better done yourself or in a chat
- Architecture decisions without code: choosing a database or cloud is easier to think through in a chat.
- One-line edits: faster by hand.
- Secrets and production access: the agent doesn’t need your production database password.
Where Claude Code runs
The main interface is the terminal. There are also VS Code and JetBrains extensions, a desktop app and a web version. Under the hood it is the same agent, so everything in this course applies to all of them.
What you need to start
- A paid Claude plan (Pro or Max) or an API key with pay-per-token billing.
- A terminal and git.
- A project to experiment on, ideally with tests: the agent uses them to verify its work.
Installation is covered in the next lesson and in the article "Claude Code Setup Guide".
Today's task
Write down three tasks from your backlog you would give the agent and one you would keep. Next to each, note how the agent could verify the result: a test, a run, the linter.