All courses

When not to use an agent

Recognise poor-fit situations: you cannot check the result, the change is tiny and faster by hand, the stakes are high and the reviewer is unclear, the domain or tool is too obscure, or you need to learn the skill yourself.

Builds on: Describing a task: goal, context, constraints, check, What you stay responsible for

Read it card by card Start the whole course

Should this job go to the agent at all?

Your Monday list has five jobs: fix a typo in one button label, change how the checkout calculates discounts before tonight's release, edit a config file for your company's in-house build tool, produce a churn figure for a board slide, and finish a coding exercise from the course you're taking. You now have an agent. Which of these should you hand it, and why?

An agent trades your typing for your checking

Handing work to an agent is never free. You write the task, wait, then judge the result, and you own whatever you accept. That trade pays off only when three things hold: you can judge the result, judging costs less than doing it yourself, and you don't need the practice of doing it. Every job on that list breaks the trade in a different way. The fix isn't always "no agent". Often it's a smaller, safer job for the agent.

Five checks before you hand a job over

1. **Can I check it?** If you can't tell right from wrong, a plausible result is a trap. 2. **Faster by hand?** For a one-line edit you can see, prompting and reviewing take longer. 3. **High stakes, no clear reviewer?** For money, user data, security or live systems, name a qualified reviewer first. 4. **Obscure?** The agent has seen few examples of in-house or rare languages and tools, so it is more likely to guess. 5. **Must I learn this?** Then do it yourself.

The payroll script nobody can check

An analyst types: ▸ You: Update `payroll.py` so overtime uses the new rules. The agent edits the file and its summary sounds sure of itself. She can't read the logic well. No colleague reviews it, and real salaries depend on it. That fails check 1 and check 3. A better move is to find a qualified reviewer before anyone uses it. She can also work out a few pay slips by hand under the new rules and compare them with the script's output, which gives the reviewer something concrete to check.

Shrink a poor fit into a good job

When a job fails a check, you can still give the agent a narrower job that you can judge. For example, ask for a hint while you're learning, or an explanation before a high-stakes change.
▸ You: I'm learning SQL joins, so don't
write the query for me. Read my attempt
in `reports/sales.sql` and tell me which
line is wrong and why. A hint, not a fix.

▸ You: Don't change any files. Explain
what `billing/discount.py` does today,
step by step, so I can brief our payments
reviewer before anyone edits it.

Hand over only what you can judge and don't need to learn

Before handing work over, ask five things. Can I check it? Is it quicker by hand? Who reviews if the stakes are high? Is it too obscure? Do I need to learn this? On Monday's list, the typo is quicker by hand. The discount change needs a reviewer. The in-house config is obscure. The churn figure needs a definition to check against. The exercise is yours to learn. If a check fails, do the job yourself, get a check or reviewer first, or ask the agent to explain rather than change.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.