Back to OpenClaw
AIDevelopment · TECH // GUIDE

Why Do AI Coding Agents Always Write Code First? Use Superpowers to Solve Unclear Requirements, Code Rework, and Missed Tests

2026.11.28 · ~11 min read

This guide explains why an AI coding agent may implement a vague request before confirming what it means, and how that can lead to rework or missed tests. It maps Superpowers workflows to practical checkpoints, offers a decision path for unclear tasks, and shows where human review is still essential.

The agent has already changed files, but the request still has unanswered questions.

Fastest fix: Don’t let the agent implement an ambiguous task yet. Require it to clarify the goal, outline a plan, and show test evidence. Superpowers can make those checkpoints part of the workflow; it cannot replace a clear requirement or a working test suite.

This guide is for developers who keep getting unrequested behavior or substantial rework from AI coding agents. It also helps team leads deciding whether Superpowers belongs in their development workflow, and engineers tracing missed tests back to requirements, process, or test coverage.

Why an AI coding agent may code before clarifying

“Add a filter to the results” sounds like a small task. But the agent still has to guess what the filter matches, whether users can select several values, how it interacts with existing filters, and what should happen when no results match.

When an agent receives an instruction that looks actionable, it may produce the most visible response: edit code. That tendency can come from several things working together:

  • The request looks complete from the agent’s perspective. A short sentence can omit decisions that a developer would normally uncover in conversation.
  • The interaction encourages immediate execution. If the agent is asked to “build” or “fix” something, it may interpret implementation as the expected next step.
  • The workflow has no required stop point. Without an explicit instruction to clarify, plan, or wait for approval, there may be nothing that prompts the agent to pause.

That does not mean AI coding agents always write code first. A clear request, carefully designed instructions, or a workflow with mandatory review points can lead to questions or a plan before edits. The useful distinction is not “agent behavior versus human behavior”; it is whether the process makes unresolved decisions visible before implementation starts.

For example, compare two possible responses to “Add a filter to the results.” A direct implementation might add a text field that filters one column. A clarification-first response might ask which field to filter, whether the filter is case-sensitive, and what should happen when it is cleared. Both responses could be technically reasonable. Only the second makes the product assumptions available for review.

How vague requirements turn into rework

An unclear request becomes expensive when the agent fills in missing details without making its assumptions explicit. The resulting code may be tidy and pass existing tests while still solving the wrong problem.

Three omissions are especially likely to affect implementation:

  • An undefined goal: “Make search better” does not say whether the issue is relevance, speed, discoverability, or incomplete results.
  • Missing boundaries: The request may not say which users, screens, data types, or existing behaviors are in scope.
  • No acceptance conditions: Without observable outcomes, neither the agent nor the reviewer can tell when the change is complete.

Consider a deliberately simplified example: a request says, “Let users save an item.” The agent might assume that saving means adding a bookmark visible only to the current user. Later, the requester explains that saved items must sync across devices and appear in a shared team list. That change affects data ownership, permissions, interface behavior, and tests. The first implementation was not necessarily careless; it was based on a material assumption that had never been confirmed.

Before authorizing edits, confirm the facts that could change the design:

  • What user problem should the change solve?
  • Who can use it, and where should it be available?
  • Which existing behavior must remain unchanged?
  • What should happen in empty, invalid, duplicate, or permission-restricted cases?
  • What visible result would count as acceptance?

A useful agent response is not just a list of questions. It should identify which unanswered decisions block implementation and which can safely be treated as minor details. If a decision affects data access, product policy, or compatibility, a human owner should resolve it rather than let the agent silently choose.

Where Superpowers adds workflow checkpoints

Superpowers is a collection of agent skills and workflow guidance. Its project documentation describes a sequence that includes brainstorming, writing plans, test-driven development, executing plans, and verification before completion. Those are workflow aids, not a quality certification: teams still need to check the current project instructions, their own agent setup, and whether the proposed behavior matches the product requirement. See the Superpowers project documentation.

The value is in making pauses and evidence part of the work rather than relying on the agent to infer that a pause would be useful.

Workflow checkpoint What it asks the agent to make explicit Risk it can help expose What still needs human judgment
Brainstorming The problem, constraints, options, and unresolved questions Coding against an unconfirmed interpretation Whether the chosen behavior is right for users
Plan writing A sequence of small, reviewable tasks Broad changes that hide scope expansion Whether the plan fits the architecture and delivery needs
Test-driven development A failing test, an implementation, and a passing result Implementations that lack a behavior check Whether the test covers the important cases
Plan execution The work completed against the agreed plan Unnoticed omissions or deviations Whether a deviation needs approval
Verification Commands run and results observed Reporting completion without checking the change Whether the evidence is sufficient for release

The brainstorming skill describes a discovery process before implementation. The writing-plans skill focuses on turning agreed work into actionable tasks. For implementation, the test-driven development skill describes a test-first cycle. Finally, the verification-before-completion skill makes verification evidence part of the completion step.

These distinctions matter. A plan does not prove that a requirement is correct. A passing test does not prove that the right behavior was tested. A completion report is not evidence unless it names what was actually run and what happened.

A clarification path for unclear requirements

Use a stop-and-confirm path whenever missing information could change the interface, data model, permissions, or expected result. A short task may not need a lengthy discovery process, but it still needs enough shared understanding to avoid coding against a guess.

  • State the outcome, not just the requested action. “Allow a user to narrow results by status” gives more direction than “add a filter.” Include the problem the change should address.
  • Name the constraints. Specify relevant screens, existing behavior, accessibility needs, data boundaries, or compatibility requirements that affect the design.
  • Describe important edge cases. Explain expected behavior for empty values, invalid input, duplicates, missing permissions, or conflicting filters when those cases are relevant.
  • Define observable acceptance conditions. Use outcomes a reviewer can check, such as which results appear after a selection and what happens when the selection is cleared.
  • Ask the agent to restate its understanding. Have it list assumptions and unresolved questions before proposing an implementation plan.
  • Review and approve the plan before edits. If the agent’s interpretation differs from the requested behavior, correct it while the change is still a plan rather than code.

A useful instruction might be: “Before editing, restate the user outcome, identify assumptions that affect behavior, and ask about any decision that could change the implementation. Do not proceed until those decisions are confirmed. Then propose a small plan with a test or acceptance check for each behavior.”

Do not move into implementation when the correct answer depends on a product, security, or policy decision that nobody has made. The agent can explain the options and consequences, but it should not turn uncertainty into an unreviewed product rule.

How to connect implementation with test evidence

Superpowers helps make the relationship between the task, the implementation, and tests easier to inspect. The executing-plans skill describes carrying out planned work; the test-driven development skill provides a test-first workflow. Together, these can support a more reviewable sequence: agree on the behavior, define checks, make a focused change, and report the results.

For each planned task, connect three things:

  • A behavior: What should the user or system do?
  • A check: Which existing test, new test, or manual acceptance check would show that behavior?
  • A result: What command or review step was performed, and what did it report?

For instance, a change to a filter should not be considered verified merely because the page loads. A reviewer may also need evidence that matching items appear, non-matching items do not, clearing the filter restores the expected results, and existing filters still behave as intended. Those are example checks, not a claim that every filter needs the same test suite.

If the relevant tests cannot run, the agent should say so directly and identify what remains unverified. If a test fails, the task is not complete merely because the code change looks plausible. If the test passes but the requirement is still ambiguous, the passing result does not settle the product question.

Testing infrastructure also affects what the workflow can accomplish. A project without runnable tests may need test setup or explicit manual acceptance checks before an agent can provide useful verification. Teams reviewing where agents run and how projects build can also consult this guide to Mac environments for AI coding. The execution environment can support a workflow, but it cannot supply missing acceptance criteria.

FAQ: Common workflow decisions

Why does an agent start implementing before asking what the request means?

The request may look specific enough to act on, while the workflow may not require the agent to pause and confirm assumptions. The result is often a plausible implementation rather than an obviously broken one, which makes review harder. Put the stop point before file edits: ask for unresolved questions and a restatement of expected behavior.

How can Superpowers reduce code rework?

It can put discovery and planning before implementation, making assumptions and scope reviewable earlier. That helps when rework would otherwise come from a misunderstood requirement or an unexamined implementation plan. It cannot decide what the product should do, and it cannot prevent rework caused by later changes in direction, hidden dependencies, or incomplete project context.

What should happen when the requirement is unclear?

Keep the task in clarification if the missing answer could alter behavior, permissions, data handling, or acceptance. Ask the agent to separate blocking decisions from assumptions it can safely document. Get the responsible person to resolve blocking decisions, then approve a plan that connects the agreed behavior to a check.

Does using Superpowers stop tests from being missed?

No. A workflow can prompt for tests and evidence, but its usefulness depends on the test suite, the chosen cases, and whether verification actually runs. Check that the test result corresponds to the changed behavior and review whether important boundary conditions are covered. Treat unavailable or failing checks as unresolved work, not as successful verification.

A decision path and review checklist

Choose a workflow based on how much uncertainty and verification risk the task carries:

  • If the desired behavior and constraints are clear, and relevant checks can run, use a plan and link each implementation task to its tests or acceptance checks.
  • If the goal is clear but important behavior remains undecided, use brainstorming to expose the options, then get confirmation before implementation.
  • If the request depends on a complex business or policy decision, stop for the decision owner; do not ask the agent to select a policy by inference.
  • If tests are missing or cannot run, treat verification as incomplete and agree on a test setup or manual acceptance procedure before calling the task done.
  • If the agent’s setup or current skill instructions do not match the project, check the project’s actual configuration before relying on the documented workflow.

Before marking a change complete, check:

  • [ ] The requested outcome and implementation scope are explicit.
  • [ ] Assumptions that could change behavior have been confirmed or recorded.
  • [ ] The plan covers the agreed requirements without unapproved scope changes.
  • [ ] Relevant tests or acceptance checks map to observable behavior.
  • [ ] The agent reports which checks ran and their actual results.
  • [ ] A reviewer has compared the change with the acceptance conditions.
  • [ ] Any unrun, failing, or unavailable checks remain clearly visible.

Superpowers is most useful when a team already has people who can clarify product decisions and a way to check the resulting behavior. It is less effective as a substitute for either. If the workflow still produces rework, inspect whether the requirement was confirmed, whether the plan reflected it, and whether the tests exercised the behavior that mattered.

For the environment side, the AI agent project overview can help with further research. A local setup may be enough for everyday changes, but it can bring machine-specific setup, limited access to a dedicated test environment, and extra maintenance when several people need a consistent build target. Those are environment trade-offs, not reasons to rent a Mac for workflow problems. When a task specifically needs a temporary macOS development or test environment, renting a Mac through Zutcloud may fit better than adapting a non-Mac machine or maintaining a separate setup; the workflow still needs clear requirements, reviewable plans, and test evidence.

Give Your AI Agent a Clearer Next Step

Turn your next vague request into a clear outcome, constraints, and acceptance criteria before you ask an agent to change code.

Explore more practical guides to choose the right workflow for planning, implementation, and review. Order now

CI/CD

Run iOS CI/CD on a stable M4 node

Dedicated M4 · global regions · monthly plans · OpenClaw-ready

Order now
Mac Cloud Special offer · tap to view