If you want an AI coding agent to fix a bug or build a feature, you first have to describe the job in writing. A good task says what should change and where in the code to look. It also says how you’ll know the work is done. Write it like a clear issue for a developer who knows how to code but is new to your project. An issue is the ticket where someone describes a bug or asks for a change.

An AI coding agent is a tool that works directly in your repository, the place where your project’s code lives. It reads files and edits them. It can also run commands like your tests, then hand back the result. Often that result is a pull request, which is a proposed set of code changes that you review before they go into your main code. GitHub Copilot cloud agent is one well-known example. OpenAI Codex and Claude Code are two others.

The companies behind these tools give similar advice on how to write a task. GitHub asks for three things:

  • a clear description of the problem
  • complete acceptance criteria, which are the conditions that show the work is finished
  • directions about which files to change

How much detail you need depends on the job. For a small bug, the steps that trigger it and the behavior you expect are often enough. A framework upgrade moves your project to a newer version of the larger library your code is built on. For that kind of job, ask the agent to look at the project and write a plan before it changes any code.

What should every task say?

Every task, big or small, needs a few basic pieces. Start with the behavior you want to change. A task like “Fix the login bug” doesn’t say what fails. Describe what someone does on the site and what goes wrong. Then say what should happen instead.

Next, point the agent to the right place. If you know which files are involved, name them. You can also name the page or feature the task is about. If you don’t know where the code lives, describe what a person sees, like “the orders table in the admin area”. GitHub says Copilot cloud agent can often find the right code by itself, even if you don’t give exact file paths.

Then say what the task includes and what must stay as it is. For example, you can write “don’t change the public API” or “keep the current design”. The public API is the part of your code that other programs call. Without limits like these, an agent can start rewriting code that has nothing to do with the task, or add features nobody asked for. Anthropic, the company behind Claude, describes this habit in its prompting guide. It suggests telling Claude to make only the changes you asked for.

End with how to check the change. If you know a command that runs your project’s tests, name it, like npm test or php artisan test. Ask the agent to tell you which checks it couldn’t run and which risks it sees.

A template for a bug fix

This template works for bugs you can describe or reproduce. To reproduce a bug means you can make it happen again. If you don’t know the cause, describe what you see and don’t guess.

Title: [Short description of the bug]

Problem
[What is broken, and who or what is affected?]

Reproduction
1. [Starting state or setup]
2. [Action]
3. [What happens]

Expected behavior
[What should happen instead? Include conditions or examples.]

Actual behavior
[What happens now? Include exact error text or logs if available.]

Scope and context
- Relevant area or files, if known: [paths or component]
- Existing behavior to follow: [example]
- Keep unchanged: [behavior or files outside this task]

Acceptance criteria
- [ ] [Observable behavior after the fix]
- [ ] [A regression test covers the failure]
- [ ] [Related behavior that must keep working]

Verification
Run [focused test or command].
If it cannot run, explain why and what remains unchecked.

When finished, report the cause, changed areas, checks run, and limitations.

The template asks for a regression test. That’s a test that fails if the same bug ever comes back.

Write acceptance criteria that you can see on the screen or in the output. It’s hard to check whether “Improve error handling” is done. “Show an error message when the server rejects the request” is concrete, so both the agent and the person reviewing the code can check it.

Here is a filled-in example. For most bugs, a task this short is enough:

On the checkout page, the total doesn't update when a customer removes the
last item from the cart. It still shows the old amount until the page is
reloaded. The total should update right away, the same way it does when an
item is added. Add a test for removing the last item. Run npm test.

A template for a new feature

For a new feature, describe what a person or another program should be able to do once it’s built. Include the unusual cases, called edge cases, if they change what should happen. For example, a search might find nothing, or someone might try to do something they don’t have permission for. In the template below, each “Given, when, then” line describes one case. “Given” is the starting situation. “When” is what someone does, and “then” is what happens.

Title: [User-visible capability]

Goal
[What should a user or service be able to do? Why is it needed?]

Behavior
- Given [starting condition], when [action], then [expected outcome].
- Given [important alternate condition], then [expected outcome].
- [Describe error, empty, loading, or permission behavior if relevant.]

Scope
- Include: [capability and affected areas]
- Exclude: [nearby work that is out of scope]
- Constraints: [compatibility, API, design, performance, or security needs]

Repository context
- Likely area or files, if known: [paths or component]
- Existing pattern to follow: [example]
- Relevant documentation or mockup: [reference]

Acceptance criteria
- [ ] [Primary behavior works]
- [ ] [Important edge case works]
- [ ] [Tests cover the new behavior]
- [ ] [Documentation or API details are updated if needed]

Verification
Run [focused tests] and [build, lint, or type check if relevant].
Report what changed, which checks passed or failed, and open questions.

For a large feature, ask the agent to suggest a plan before it writes code. For a small feature where the scope is clear, the agent can start right away.

A template for a framework upgrade

An upgrade task needs the exact version you have now and the exact version you want. It also needs a clear scope that says what the upgrade includes. And it should ask the agent to check for breaking changes, which are changes in the new version that stop old code from working.

Title: Upgrade [framework, dependency, or tool] from [current version] to [target version]

Goal
Upgrade [named project or package] from [exact current version] to [exact target version].

Scope
- Projects or packages included: [names]
- Keep unchanged: [platform targets, APIs, configuration, or unrelated dependencies]
- Related dependencies allowed to change: [list or "only when required"]
- Migration guides or release notes: [references]

Before implementation
1. Inspect the current project and dependency state.
2. Identify breaking changes, deprecated APIs, and compatibility issues.
3. Summarize the proposed scope and plan before broad changes.
4. Flag compatibility decisions that need review.

Acceptance criteria
- [ ] The intended project or package targets [exact target version].
- [ ] Required migration changes are complete.
- [ ] Unrelated dependencies and behavior remain unchanged unless explained.
- [ ] Relevant tests and build checks pass, or failures are explained.
- [ ] Required documentation is updated.

Verification
Run [build], [focused tests], and [integration or smoke tests if relevant].
Report versions changed, migration issues found, checks run, failures, and remaining risks.

How much detail should you give?

Give enough detail that you can judge the result when it comes back. If you’re not sure how the code is organized, don’t tell the agent every edit to make. Point it to similar code it can follow, or to the place where the code probably lives. Then let it read the code around it. If the approach matters to you, say which one you want and why.

Tests show whether the code works, but passing them shouldn’t become the goal. Anthropic’s guide warns that Claude can focus too much on making tests pass instead of solving the problem in general. Ask the agent to stick to the behavior you described, and tell it not to weaken or delete tests to make them pass.

How do you write a task for Vroni?

Vroni is an AI coding agent for GitHub repositories, and you give it tasks in plain words. First you install the Vroni GitHub App on the repositories you choose. Then you write the task in the Vroni dashboard. You can start a task from a GitHub issue instead by adding the vroni label to the issue or writing @vroni in it.

Vroni first plans the change and writes the code. Then it runs the checks your project already has, like your tests, and fixes what fails. When it’s done, it opens a pull request with a summary.

A few things work differently with Vroni:

  • In the dashboard, Vroni only reads the Task description field. The title only shows up in your own task lists, so put the whole template into the description.
  • Before it writes code, Vroni turns your task into a plan and a specification, which is a precise description of what to build. You don’t need to ask for a plan. Vroni can’t tell from your code why you want the change, so say why and mention your preferred approach if that matters to you.
  • Don’t paste passwords or API keys into a task. Vroni saves the task text in your task history. If you start the task from an issue, or tick Open a linked GitHub issue, the text ends up on GitHub.
  • Vroni can’t log into your production systems, which are the servers your live app runs on. It also can’t log into the dashboards of other services you use.

Vroni never merges a pull request and never deploys code to your servers. You review each pull request and merge it yourself.

You pay for the minutes Vroni works, so a vague task costs you minutes while Vroni guesses what you meant. The Solo plan costs $299 a month (€249 in Europe) and includes 2 hours of Vroni time. The Team plan costs $1,199 a month (€999 in Europe) and includes 10 hours, with any number of users. Vroni’s guide on writing a good task has more examples, and the pricing page has the details.