Skip to the page

Use AI coding agents well

An AI coding agent is a program that works on your code for you - it reads files, edits them and runs commands such as your tests in a loop, deciding each next step from what the last one showed, until the task is done. This guide shows how to set one up and use it well, one topic at a time, starting with Claude Code.

Each topic is one page with a direct answer at the top, our own worked examples and the questions people ask most. Where a topic is a list, such as the slash commands or the settings, the page has a search over every entry. Everything is written from the agent maker's own documentation, which each page links.

What a coding agent is

A chat assistant answers and stops. A coding agent keeps going: given a task such as "fix the failing login test", it searches the code, reads the files that matter, makes a change, runs the test, reads the result and tries again until the test passes. Each step uses a tool, and the model chooses the next tool from what the last one returned. This loop is what makes it an AgentAgentA model that uses tools in a loop, deciding each next step from what the last one returned, until the task is done..

Because it acts on your machine, the skills that matter are not only prompting. You decide what it may do without asking (permissions), what it knows about your project before it starts (CLAUDE.md), how much of the conversation it carries (sessions and context) and what it can reach beyond your files (MCP). The topics below take these one at a time.

To see the same loop from the inside, with the tool calls and the Context WindowContext WindowEverything a model can see at once while it writes an answer, counted in tokens. When the window is full, something has to be left out. filling up step by step, follow a request through How AI agents work.

Claude Code, topic by topic

Start

Install it, run a first session, and see what happens inside one.

Daily use

The habits, commands and keys you use every day.

Control

What it knows about your project, what it may do, and which model does it.

Extend

Give it new tools, packaged know-how, helpers and your own scripts.

Automate

Run it from scripts and CI with no one at the keyboard.

Cost

What it costs and how to spend less.

Questions

What is an AI coding agent?
A program that uses an AI model to work on code by itself in a loop - it reads files, edits them and runs commands such as tests, and decides each next step from the result of the last, until the task is done. Claude Code is one; you give it a task in plain words and it works in your project folder.
How is a coding agent different from code completion?
Code completion suggests the next lines as you type, and you stay in control of every change. A coding agent takes a whole task, such as fixing a bug or adding a feature, and carries it out across many files, running commands to check its work. You review what it did rather than writing each line.
Is it safe to let an AI agent run commands on my computer?
It can be, with the right limits. Claude Code asks before it edits files or runs commands unless you allow them, keeps checkpoints so you can undo its edits, and can run commands in a sandbox. Start in the default mode, allow only the commands you trust, and read changes before you commit them.
Which topic should I read first?
Install and sign in, then Your first session, then CLAUDE.md and memory. Those 3 cover getting started, the everyday loop and giving the agent what it needs to know about your project. Permissions and Best practices come next.

Sources

Where each fact comes from

  1. 1Claude Code overview
  2. 2How Claude Code works
  3. 3Configure permissions