Overview
Use ChatGPT to turn rough feature notes into a structured specification with acceptance criteria and test cases, then hand the reviewed spec to a coding agent that works in a sandbox.
Problem or Objective
- Which tools help write a spec before an agent writes code?
- Which agents build a non-trivial feature with you?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- ChatGPT · OpenHands · Docker
- Prerequisites
- A ChatGPT account, a coding agent you can run in a sandbox, and a code repository with a working test setup.
How It Works
Collect the feature request, user feedback and any design notes in one document. In ChatGPT, connect the app where those notes live if your plan and workspace allow it, or paste them in, and ask for a specification: the problem, the user-visible behaviour, out-of-scope items, acceptance criteria written as testable statements, edge cases, and the files or modules likely affected. Ask ChatGPT to list open questions instead of guessing, answer them, and have it revise the spec. A product owner and an engineer read and sign off the final version. Then give the spec to a coding agent running in an isolated environment, with instructions to write the tests from the acceptance criteria first, implement the change, and stop with a diff. OpenHands is one way to build this: its Agent Canvas runs coding agents locally or in Docker sandboxes. Review the diff and test results before anything is merged.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up ChatGPT.
- Connect the toolsConnect the tools this workflow relies on: ChatGPT, OpenHands, Docker.
- Check the prerequisitesA ChatGPT account, a coding agent you can run in a sandbox, and a code repository with a working test setup.
- Gather your detailsCollect what the prompt asks for: Product name, Feature notes, Codebase context.
- Run the starter promptPaste the starter prompt below into ChatGPT and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at help.openai.com before you rely on it.
Practical Starter Prompt: Turn these notes into a testable feature spec
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Here are my notes on a feature for [Product name]: [Feature notes]. Write a specification for a coding agent working in [Codebase context]. Include the problem, the user-visible behaviour, what is out of scope, numbered acceptance criteria that can each be tested, edge cases, and likely affected modules. List open questions instead of guessing. After I answer them, revise the spec and end with instructions for the coding agent: write tests from the acceptance criteria first, implement, then stop and present the diff and test results for human review before any merge.Have a product owner and an engineer sign off the spec before handing it over, and review the coding agent's diff and test results before merging anything.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. OpenAI's help center says connected apps let ChatGPT find files and summarise documents from services you already use, and the OpenHands README describes running coding agents locally or in Docker sandboxes. Neither source says that a written specification improves a coding agent's results, and neither describes how a coding agent reads one.
Limitations and Considerations
App availability in ChatGPT depends on the app, your plan, region, workspace, role, model and interface, and ChatGPT may ask for approval before reading information or acting. A specification does not replace code review: read the diff, run the tests yourself and require a human approval before merging or deploying. Run the coding agent with the least access it needs, preferably in a sandbox, and keep secrets out of the spec. Model usage for both steps can cost money. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
Suggested Implementation Component
A repository that could serve as a building block. It is not part of the cited account and is not evidence that the workflow was run.
Sources
- Connected apps in ChatGPT | OpenAI Help Center (opens in a new tab)
Project documentation · help.openai.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Apps connect ChatGPT to services you already use, such as Google Drive or Slack; depending on the app, you can ask ChatGPT to find a file, summarize a document, or look up a message.
- App availability depends on the app, your ChatGPT plan, region, workspace, role, model, and ChatGPT interface you use.
- OpenHands/OpenHands README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- OpenHands Agent Canvas runs locally by default and can connect to agent backends such as Docker containers or VMs; it runs the open source OpenHands agent out of the box and can use third-party coding agents.