Skip to content
mentoor

Topic 1 of 5 · 4 min read

Choosing work to assign to agents

Goal: Sort a backlog into agent-ready, pair-with-agent and human-only tickets and rewrite one ticket as an agent brief.

Give an agent a ticket only when a stranger could finish it from the ticket alone and you could check the result without trusting the stranger. Agents such as Copilot's cloud agent, Claude Code, Codex and Devin take an issue, work on their own branch and open a pull request. They do not ask the hallway what you meant.

Check yourself · 1 of 3

Which ticket is the best fit to hand to a coding agent such as Claude Code or Copilot?

Choose one answer

Why it matters

An agent works from the text you give it plus the repository. Whatever lives only in people's heads is invisible to it. A vague ticket does not make an agent slow. It makes the agent confident and wrong, and you pay for that in review time.

Sort the backlog into three piles

  1. Agent-ready. Small, well-bounded, with a clear finish line and a check that can run: a failing test, a lint rule, a type error. Examples: add a missing validation, upgrade a library across call sites, write tests for an existing module, fix a bug that has a reproduction.
  2. Pair with an agent. The goal is clear but the path is not. A person drives, the agent drafts and explores. Examples: a refactor that touches shared code, a new endpoint whose design is still open.
  3. Human only. The hard part is a decision, not typing: product trade-offs, security design, anything where the ticket would say "figure out what we want".

Write the issue as a brief

An agent-ready ticket states four things:

  • Outcome: one sentence on what is true when it is done.
  • Where: the files, modules or entry points to start from, and what to leave alone.
  • Acceptance: checks the agent can run, such as "the new test passes and the existing suite stays green".
  • Limits: no new dependencies, no schema changes, stop and ask if the change grows past a few files.

Before and after

Weak: "Fix the slow export."

Better: "Exporting a report with more than 5,000 rows times out. Reproduce with the fixture in tests/export/large.csv. The cause is probably the per-row query in export/build.ts. Make the large fixture export in under 10 seconds. Do not change the public API of the export service. Add a regression test."

The second version gives the agent a reproduction, a place to start, a finish line and a fence.

What goes wrong

  • Assigning a decision. "Improve onboarding" is a product question. The agent will pick an answer and defend it.
  • Hiding the check. If the only test is a person eyeballing the screen, the agent cannot know when it is done and will stop when the code looks plausible.
  • Treating size as free. Agents will happily produce a 40-file change. Cheap to generate does not mean cheap to review, so split big tickets before assigning them.

Examples

Sorting five tickets

Ticket Pile Why
Add email format check to the signup form Agent-ready Small, testable, clear finish
Upgrade the date library and fix call sites Agent-ready Mechanical, the compiler and tests verify it
Split the billing module in two Pair Goal is clear, boundaries need a person's judgement
Make search feel faster Human only The target is undefined
Choose how we store card tokens Human only Security design decision

A brief for Copilot or Claude Code

Outcome: Password reset links expire after 30 minutes.

Start from: auth/reset.ts and its tests.

Acceptance: a new test shows an expired link is rejected with the existing LinkExpired error; the full auth suite passes.

Limits: no new packages, no change to the token format, stop and comment if more than four files need to change.

Key points

  • Assign a ticket only when someone outside the team could finish it from the ticket and the repository alone.
  • Sort work into agent-ready, pair-with-agent and human-only; the deciding factor is whether the hard part is typing or choosing.
  • A good agent brief states the outcome, where to start, checks the agent can run, and limits on scope.
  • Tickets that hide a product or design decision stay with people, because an agent will make the decision silently.
  • Split large tickets before assigning: generating a big change is cheap, reviewing it is not.

Common mistakes

  • Assigning a ticket whose real content is an unresolved decision, such as "improve the dashboard".
  • Writing the issue for a teammate who shares your context, then handing it to an agent that has none.
  • Giving no check the agent can run, so "done" means "looks plausible".
  • Assigning one huge ticket instead of several small ones that can be reviewed separately.

Check yourself · 2 of 3

An issue says "Fix the slow export." What is the most useful addition before assigning it to an agent?

Choose one answer

Check yourself · 3 of 3

Why split a large ticket before assigning it to an agent?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic