Topic 2 of 5 · 4 min read
Matching coding tools to tasks
Goal: Pick the tool kind that fits a described coding task and justify the choice by scope, feedback loop and review cost.
Match the tool to the task by three things: how many files it touches, how fast you get feedback, and how costly the result is to review. The most capable tool is rarely the best one.
Check yourself · 1 of 3
Which task fits plain autocomplete best?
Why it matters
An agent that rewrites a file to fix a typo wastes money and hides a small change in a big diff. Autocomplete on a ten-file refactor wastes your afternoon. Fit saves time and keeps the diff small enough to review honestly.
Three questions
- Scope. One line, one file, many files, or a whole feature? Scope grows to the right in the five kinds.
- Feedback loop. Can the tool check its own work? A repo with fast tests lets an agent loop until they pass. A repo with no tests means you are the only check, so keep the tool close and the steps small.
- Review cost. What will it cost you to read the result? A cloud agent hands you a whole pull request cold, with no live view of how it got there.
A rough map
- A line or a small function you know well: autocomplete.
- A question about unfamiliar code, a concept or an error message: chat, or an agent in read-only mode if the answer lives in the repo.
- A feature across several files, with tests: IDE or terminal agent, with you watching.
- A well-specified ticket with a clear test, such as a dependency bump or a small bug: cloud agent, reviewed as a pull request.
- Risky or vague work, such as a payment flow or an unclear design: you design, tools assist in small steps.
Before and after
Weak: "Use the agent for everything, it is the newest."
Better: "Typo and small edits by autocomplete. 'Why does this build fail?' goes to an agent in read-only mode. The 'upgrade the date library' ticket goes to a cloud agent because it has a clear test and a clear done state."
What goes wrong
- Vague task to an unattended agent. With no clear done state, the cloud agent builds the wrong thing for an hour and you review it all.
- No tests, big agent. Nothing checks the output, so errors reach review and sometimes production.
- Chat for repo-wide questions. The answer sounds right but ignores code the model never saw.
Re-pick the tool as the task changes. Many engineers start a task in chat to understand it, move to an agent to build it, and finish with autocomplete for the polish.
Examples
A week of tasks, matched
| Task | Kind | Why |
|---|---|---|
| Fix a typo in an error message | autocomplete | one line, no risk |
| "What does this regex do?" | chat | no repo needed |
| Add a filter to the orders list, API and UI | IDE agent | many files, you watch |
| Bump a library, fix breakages, tests exist | cloud agent | clear test, review as a PR |
| Redesign the billing retry logic | human plan, chat for options | vague, high risk |
The unfocused ticket
A ticket says "improve performance of the dashboard". A cloud agent returns a 900-line pull request that changes caching, queries and the chart library. Nothing says which change helped. The fix: first measure in a terminal agent, pick one bottleneck, then give the cloud agent one narrow ticket with a number to hit.
Key points
- Choose a tool by scope, feedback loop and review cost, not by how new or powerful it is.
- Autocomplete suits small edits you already understand; agents suit multi-file work with tests.
- Cloud agents fit well-specified tickets with a clear test and a clear done state.
- Without tests or a clear goal, keep the tool close and the steps small.
- Switching kinds mid-task is normal: understand in chat, build with an agent, polish by hand.
Common mistakes
- Using the strongest agent for one-line edits and getting a noisy diff.
- Handing a vague ticket to a cloud agent and expecting it to find the goal.
- Running a big agent task in a repo with no tests, so no one checks the result.
- Asking chat about repo-specific behavior it cannot see.
Check yourself · 2 of 3
A repo has no tests. You want a feature across six files. What is the safest way to use an agent?
Check yourself · 3 of 3
Which ticket suits a cloud agent best?
Practice items, not counted towards your mastery.
Start here
- Claude Code overview (opens in a new tab)DocsFree
What a terminal and IDE agent can read, run and change in your project.
- OpenAI Codex documentation (opens in a new tab)DocsFree
How a vendor documents its agent surfaces: CLI, IDE and cloud tasks.
- Gemini CLI (open-source terminal agent) (opens in a new tab)ToolFree
An open-source terminal agent you can read, run and compare with the paid ones.