Development workflows
There are many ways to work with the agent, from a short prompt to a strict process. The larger the task and the higher the cost of a mistake, the more structure pays off.
Short prompt
Section titled “Short prompt”A small, clear change (a typo, a log line, a rename) only needs a description in plain words. It is fast, but the result is hard to reproduce, so do not rely on it for a large task.
Explore, plan, implement
Section titled “Explore, plan, implement”For unfamiliar or large code, the agent first studies it and proposes a plan, you review the plan, and only then do the edits begin. This lowers the risk that the agent solves the wrong problem. See Best practices.
Spec-Driven Development (SDD)
Section titled “Spec-Driven Development (SDD)”For large or high-stakes work, a spec in a file is the source of truth. The conversation from one session does not carry into the next, but the file stays.
A spec covers the intent (why the work is needed), the scope (what is in and what is out), the acceptance criteria (when the work counts as done), the edge cases, and the conventions the project follows.
The workflow:
- Let the agent interview you (the
AskUserQuestiontool) and save the result toSPEC.md. See Interview before code. - Do the task in a new session, so the agent works from the spec instead of fragments of a conversation.
- Hold the agent to the acceptance criteria with
/goalso it does not stop early. - Check the result against the spec, not only the diff: did it solve the right problem, and did it handle the edge cases?
The approach pays off on changes that span many files or services, on recurring tasks, and wherever you need an audit trail. For a small fix or a prototype it is overkill. Start with one task rather than moving the whole project onto the process at once.
You do not have to set up the process by hand: open toolkits define it as agent commands. For example, GitHub Spec Kit takes you from requirements to implementation with /speckit-specify, /speckit-plan, /speckit-tasks, and /speckit-implement, and it supports several agents. For Claude Code it installs skills into .claude/skills/, and Waibee Code reads them as regular skills.
Test-Driven Development (TDD)
Section titled “Test-Driven Development (TDD)”First comes a failing test that pins down the behavior you want, and then the agent makes it pass. The test is the acceptance criterion: “make this test pass without breaking the others.” TDD pairs well with a spec whose acceptance criteria include the tests.
Author and reviewer
Section titled “Author and reviewer”One agent writes the code, and another reviews it in a clean context and sends back comments. Keep the reviewer in a second chat or hand the review to a subagent. Why this works, and how not to drown in comments, is covered in A second pair of eyes.
Autonomous run with a check
Section titled “Autonomous run with a check”If you have a reliable check (tests, a build, a linter), make it the condition with /goal, let the agent work until the check passes, and then review the outcome yourself. In a script or CI, waibee run --goal "definition of done" "task" does the same. See Headless mode. The longer the agent works without you, the more an independent check matters before you call the task done.
Autoresearch
Section titled “Autoresearch”A special case of the autonomous run: the check returns a number instead of pass or fail. The agent then runs the loop on its own: hypothesis, edit, measurement, keep or revert. It suits speed, size, accuracy, and anything else a script can measure. The loop rules and how to protect the metric are in Autoresearch.
What stays with you
Section titled “What stays with you”Every approach above hands the writing of code to the agent, but not the responsibility for the result. Framing the task, choosing the approach, and checking the result stay with you. See The developer’s role.