Skip to content
mentoor

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?

Choose one answer

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

  1. Scope. One line, one file, many files, or a whole feature? Scope grows to the right in the five kinds.
  2. 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.
  3. 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?

Choose one answer

Check yourself · 3 of 3

Which ticket suits a cloud agent best?

Choose one answer

Practice items, not counted towards your mastery.

Start here