Guide
Which Tasks Should You Give an AI Coding Agent?
Choose AI coding tasks by clarity, reversibility, observability, testability, authority, data sensitivity, blast radius, expertise, permissions, and review.
Which Software Tasks Should You Give an AI Coding Agent?
Give an AI coding agent a task when the outcome is clear, the work is reversible, feedback is fast, permissions can stay narrow, the data is appropriate, and a qualified reviewer can validate the result. Hold the task when authority or consequence exceeds the available evidence and oversight.
The fact that an agent can produce code is not the deciding factor.
flowchart TD
A["Define the software task"] --> B["Score clarity and testability"]
B --> C["Score reversibility and observability"]
C --> D["Score authority, sensitivity, and blast radius"]
D --> E["Confirm qualified reviewer"]
E --> F{"Choose autonomy"}
F --> G["Research or propose only"]
F --> H["Supervised local execution"]
F --> I["Delegated bounded execution"]
F --> J["Hold for stronger controls or authority"]
Evaluate the task, not the tool demo
A documentation typo and an identity migration are both software tasks. They should not receive the same permissions, review, or autonomy.
Describe the task as an outcome with exclusions. Identify the affected repository, interfaces, users, data, environments, and external systems. Write the evidence that would demonstrate success.
If the description is "clean up the codebase," the task is not ready. If it is "rename this internal function, update its three call sites, preserve behavior, and pass the focused test suite," the scope is more observable.
Score eight dimensions
| Dimension | Lower-risk signal | Higher-risk signal |
|---|---|---|
| Clarity | Specific behavior and examples | Ambiguous product, architecture, or policy choice |
| Reversibility | Isolated diff and clean restore | Data loss, migration, or external mutation |
| Observability | Immediate, deterministic feedback | Delayed or hidden real-world effects |
| Testability | Known automated and manual checks | Correctness depends on unavailable state |
| Authority | Local read and bounded write | Production, secrets, users, money, infrastructure |
| Sensitivity | Public or synthetic data | Personal, regulated, confidential, security data |
| Blast radius | One module or sandbox | Shared platform, identity, billing, security boundary |
| Expertise | Reviewer understands the domain | No qualified reviewer can validate the result |
Do not average away a critical risk. A task with excellent tests but direct production deletion authority is not medium risk.
Match the autonomy level
Research or explanation is appropriate when the agent can inspect approved material without changing state. The output is a summary, plan, question list, or proposed test.
Propose-only work can produce a patch or plan for review while execution remains blocked. This is useful when the task is clear but mutations need explicit approval.
Supervised local execution fits bounded changes in a sandbox or feature branch. Commands and edits remain visible, tests are fast, and the reviewer can stop the work immediately.
Delegated execution requires strong isolation, narrow permissions, reliable tests, logging, limits, and rollback. It is not merely supervised execution with fewer interruptions.
Hold is the right decision when the task needs a product judgment, security authority, legal interpretation, production credential, destructive migration, regulated-data decision, or qualified reviewer that is not available.
Good starting tasks
Low-risk starting work usually has a small diff and a clear oracle.
| Task pattern | Why it can fit | Evidence still required |
|---|---|---|
| Explain an unfamiliar module | Read-only and reviewable | Links to actual definitions and tests |
| Draft focused tests for known behavior | Clear target and fast feedback | Reviewer confirms tests are meaningful |
| Fix a reproducible local bug | Observable failure and success | Root cause, regression test, full diff |
| Update documentation from verified code | Narrow and reversible | Every command and interface checked |
| Perform a mechanical rename | Tool-supported and bounded | Complete references and passing suite |
| Build a local learning slice | Low consequence when isolated | Understanding, tests, clean repository |
These are not automatically safe. A documentation file can expose a secret. A rename can change a public API. A test can encode the wrong behavior.
Tasks that need tighter control
Authentication, authorization, cryptography, payments, personal data, regulated workflows, dependency upgrades, CI/CD, infrastructure, migrations, public APIs, safety-critical behavior, and incident response deserve specialist review and stronger permissions.
An agent can still assist with research, inventory, plans, test cases, or a proposed diff. The autonomy level should reflect the consequence.
NIST SP 800-218 supports integrating secure development practices into the lifecycle. The OWASP Top 10 for Large Language Model Applications adds risks such as prompt injection, sensitive-information disclosure, insecure output handling, and excessive agency.
Those sources do not classify one organization's task. They help teams ask better questions.
Set permissions from the task record
Start with no more authority than the task needs.
A local documentation task may need read access to the repository and write access to one documentation folder. It should not inherit access to environment files, cloud credentials, databases, email, production commands, or external deployment tools.
Cursor's May 2026 Auto-review changelog describes current product behavior around allowlists, sandboxing, classifiers, and approval for some tool calls. That is a vendor feature at a point in time, not a replacement for the organization's own access model.
Permissions should be enforced by the environment whenever possible. A prompt asking an agent not to touch a file is weaker than a sandbox that prevents the write.
Define stop conditions
The agent should stop when it discovers a material scope change.
| New condition | Required response |
|---|---|
| A new dependency or external service | Reassess supply chain, terms, data, and operations |
| A migration or destructive command | Hold for recovery plan and explicit authority |
| A secret or sensitive record | Stop access and involve the responsible owner |
| A production or customer system | Reclassify environment and permissions |
| A public interface change | Add compatibility and consumer review |
| Missing or unreliable tests | Reduce autonomy and create evidence first |
| Unfamiliar domain | Add a qualified reviewer |
An autonomy decision expires when the task changes.
Require a review record
The task record should preserve the outcome, exclusions, risk dimensions, autonomy level, allowed files and tools, blocked authority, acceptance checks, stop conditions, reviewer, commands, diff, test results, and final decision.
Cursor's current agent best-practices guide emphasizes plans, focused context, tests, and careful review. Those practices become more reliable when they are attached to a task classification instead of applied as general optimism about the tool.
Reassess after the pilot
Track the defects caught in review, rejected scope, test failures, interruptions, incidents, and recovery attempts. Do not measure only completion time.
A task type may earn more autonomy after repeated success under stable conditions. It may lose autonomy after a near miss, system change, new data class, or weaker reviewer coverage.
The correct question is not "Can the agent do this?" It is "Can this task be executed with bounded authority and accepted through evidence we trust?"
This guide was developed with AI assistance from the immutable E037 transcript, NIST SSDF, OWASP material, current Cursor first-party guidance and changelog records, and the linked autonomy matrix. Dalton Anderson remains the author. Technical, security, current-source, and founder review are mandatory before publication. Publication is not authorized.
Sources
Follow the evidence.
- daltonanderson.net: how i built a go app in 4 hours with cursor aidaltonanderson.net
- owasp.org: www project top 10 for large language model applicationsowasp.org
- go.dev: getting startedgo.dev
- csrc.nist.gov: finalcsrc.nist.gov
- cursor.com: auto reviewcursor.com
- daltonanderson.ghost.io: how i built a go app in 4 hours with cursor aidaltonanderson.ghost.io
- cursor.com: 1 7cursor.com
- Spotify episodeopen.spotify.com
- cursor.com: teamscursor.com
- youtu.be: n4 J1tDwreMyoutu.be
- owasp.org: www project code review guideowasp.org
- cursor.com: privacycursor.com
- cursor.com: securitycursor.com
- slsa.dev: v1.2slsa.dev
- git-scm.com: v2git-scm.com
- cursor.com: agent best practicescursor.com
- cursor.com: data usecursor.com