Module 3 of 6
Agentic AI Development
Run the ChatGPT and Claude Code feedback loop: sprint prompts, LOW GAS, completion report reviews, testing, debugging and commits.
0% · 0 of 16 lessons
This module is the core of the method. You will run a repeatable loop: ChatGPT writes a consolidated prompt, Claude Code implements it, you test the result, and ChatGPT reviews the completion report and writes the next prompt.
ChatGPT and Claude Code feedback loop
ChatGPT
You — product owner
Claude Code
ChatGPT as product manager, architect and coordinator
In the development phase, ChatGPT keeps the big picture. Use the same conversation that produced your plan, so it remembers the requirements. Its jobs:
- Convert the plan into a small number of sprint prompts.
- Review each completion report against the plan.
- Identify material gaps, risks and claims that need verification.
- Write corrective prompts when something is missing or broken.
- Help interpret error messages, logs and screenshots.
ChatGPT cannot see your code unless you paste it. It judges progress from completion reports and your observations, which is why your testing matters.
Claude Code as engineering agent
Claude Code works directly in your project folder. Given a prompt, it can:
- Read existing files and project instructions (
CLAUDE.md,README.md). - Create and edit files.
- Install dependencies and run commands, tests and builds.
- Read errors and fix them.
- Commit and push to GitHub.
- Summarize what it did in a completion report.
It works within the permissions you grant. It asks for approval for many actions by default.
Human decision-making and accountability
Two AI tools do not remove the need for a decision-maker. You remain accountable for:
- Scope: approving what gets built and saying no to unnecessary additions.
- Truth: confirming the application actually behaves as the report claims.
- Safety: approving commands that change your system, data or credentials.
- Release: deciding when code is ready for real users.
Generating consolidated sprint prompts
Once the plan is approved, ask ChatGPT to produce the sprint prompts. The key instruction is to minimize the number of prompts and consolidate related work. Each prompt carries overhead: Claude Code must read the project, plan, implement, test and report. Ten tiny prompts cost far more time and tokens than three well-scoped ones.
Explicitly tell ChatGPT to:
- Organize work into a small number of logical sprints.
- Consolidate related activities into each sprint.
- Avoid repetitive readiness checks, audits and verification-only prompts.
- Include LOW GAS instructions in every Claude Code prompt.
- End every prompt with a request for a concise completion report.
Sprint Planning and Claude Code Prompt Generation
- Purpose
- Convert an approved plan into a small number of consolidated, implementation-ready Claude Code sprint prompts.
- When to use
- After you have reviewed and approved the application plan, in the same ChatGPT conversation.
[NUMBER OF SPRINTS, e.g. 2 to 4][REPOSITORY NAME]Using the approved application plan above, generate implementation-ready prompts for Claude Code, an AI coding agent that works directly in my local project directory. ## Requirements for the sprint plan - Organize all work into [NUMBER OF SPRINTS, e.g. 2 to 4] logical development sprints. Minimize the number of prompts. - Consolidate related activities into the same sprint. Do not create separate prompts for small tasks. - Avoid repetitive readiness checks, audits, verification-only prompts and intermediate reports. - Sprint 1 must produce a working, runnable foundation that can be committed and pushed. - Each sprint must leave the application in a working, testable state. ## Requirements for EVERY Claude Code prompt 1. Begin with this exact "Operating instructions" section: "Use LOW GAS throughout this task. Minimize token consumption, unnecessary analysis, repetitive audits, readiness checks and intermediate reports. Consolidate related implementation activities. Do not create additional planning phases or request approval for routine implementation decisions. Run essential tests, type checking and production builds. Do not compromise security or functionality to reduce model usage." 2. State the sprint goal and the full scope in specific, testable terms. 3. Specify the technology stack and any constraints from the plan. 4. List acceptance criteria for the sprint. 5. Require relevant automated tests, type checking and a production build. 6. Require that secrets are never committed and that environment variables are documented in a .env.example file without real values. 7. Require committing and pushing validated changes to the private GitHub repository [REPOSITORY NAME] on the main branch, without force-pushing. 8. End with a request for a concise completion report covering: features implemented, files changed, test, typecheck and build results, how to run the app locally, commit hash, known defects or limitations, manual actions required and remaining work. 9. Include "Do not proceed to the next sprint until instructed." Output each sprint prompt in its own code block so I can copy it directly into Claude Code. Before the prompts, give a one-line summary of each sprint.
LOW GAS development principles
LOW GAS is a short, memorable instruction used throughout this guide that asks an AI agent to work efficiently. "Gas" refers to the effort and tokens an agent consumes. A LOW GAS instruction typically says:
Use LOW GAS throughout this task.
Minimize token consumption, unnecessary analysis, repetitive audits, readiness checks and
intermediate reports. Consolidate related implementation activities. Do not create
additional planning phases or request approval for routine implementation decisions.
Run essential tests, type checking and production builds. Do not compromise security or
functionality to reduce model usage.Why it helps:
- Agents tend to over-explain, re-verify and produce long intermediate summaries.
- Consolidated work reduces repeated project scanning.
- Shorter reports are faster for you and ChatGPT to review.
- Usage-limited subscriptions last longer.
Copying prompts into Claude Code
- Open your project folder in VS Code.
- Open Claude Code (extension panel or
claudein the integrated terminal). - Copy the entire sprint prompt from ChatGPT using its copy button, so formatting is preserved.
- Paste it into Claude Code and send.
- Watch the progress. Approve actions you understand; deny and ask questions about ones you do not.
- Wait for the completion report. Long sprints can take a while.
Implementation prompt template
ChatGPT generates most implementation prompts, but this template shows what a complete one contains. Use it to check generated prompts or to write your own.
Claude Code Implementation
- Purpose
- A general-purpose template for a consolidated implementation sprint when you write the prompt yourself.
- When to use
- When you need a sprint prompt and are not generating it in ChatGPT, or to check that a generated prompt is complete.
[SPRINT NUMBER][SPRINT GOAL][FEATURES IN SCOPE][TECHNOLOGY STACK][ACCEPTANCE CRITERIA][REPOSITORY NAME]# Sprint [SPRINT NUMBER] — [SPRINT GOAL] ## Operating instructions Use LOW GAS throughout this task. Minimize token consumption, unnecessary analysis, repetitive audits, readiness checks and intermediate reports. Consolidate related implementation activities. Do not create additional planning phases or request approval for routine implementation decisions. Run essential tests, type checking and production builds. Do not compromise security or functionality to reduce model usage. ## Context Read CLAUDE.md and README.md for project context before starting. ## Technology stack [TECHNOLOGY STACK] ## Scope Implement the following completely: [FEATURES IN SCOPE] ## Requirements - Follow existing project structure and conventions. - Validate all user input on the server. - Never hard-code or commit secrets. Add any new environment variables to .env.example with placeholder values and document them in README.md. - Add or update automated tests for the core logic you change. - Keep CLAUDE.md and README.md accurate if architecture or commands change. ## Acceptance criteria [ACCEPTANCE CRITERIA] ## Validation Run the test suite, type checking and the production build. Fix failures before finishing. ## Completion Commit validated changes with a descriptive message and push to the main branch of [REPOSITORY NAME]. Do not force-push. Provide a concise completion report: 1. Features implemented 2. Files created or changed 3. Test, typecheck and build results 4. How to run the application locally 5. Commit hash 6. Known defects or limitations 7. Manual actions required 8. Remaining work Do not proceed to the next sprint until instructed.
Reviewing implementation completion reports
A completion report should tell you what was built, what was tested and what remains. Before pasting it into ChatGPT:
- Run the application locally and try each feature listed.
- Note anything that is broken, missing or confusing. Take screenshots.
- Check the commit appears on GitHub.
Then paste the report and your observations into ChatGPT using this prompt:
Completion Report Review
- Purpose
- Have ChatGPT check a Claude Code completion report against the plan and produce the next or corrective prompt.
- When to use
- Every time Claude Code finishes a sprint or fix. Paste the full completion report.
[SPRINT NUMBER][PASTE COMPLETION REPORT][MY OWN TEST OBSERVATIONS]Claude Code has completed Sprint [SPRINT NUMBER]. Review its completion report below against the approved plan and the Sprint [SPRINT NUMBER] prompt in this conversation. ## Completion report [PASTE COMPLETION REPORT] ## My own local testing observations [MY OWN TEST OBSERVATIONS] ## Please provide 1. A short verdict: complete, complete with minor gaps, or incomplete. 2. Material gaps between the requirements and the report. Ignore cosmetic issues unless they affect usability. 3. Risks or claims in the report that I should verify manually, and exactly how to verify them. 4. Any security concerns, especially around secrets, authentication and input validation. 5. The next prompt for Claude Code: - If material gaps exist, one consolidated corrective prompt that fixes all of them. - Otherwise, the next sprint prompt. The prompt must start with the LOW GAS operating instructions, require tests, type checking and a production build, require committing and pushing without force-pushing, and end with a request for a concise completion report. Put the prompt in a single code block.
Sample completion report (illustrative)
The following is an illustrative example, not output from a real project:
Sprint 1 completion report
1. Features: project scaffold, task list, create/edit/delete task, Postgres schema, seed script
2. Files: app/page.tsx, app/tasks/*, lib/db.ts, prisma/schema.prisma, tests/tasks.test.ts
3. Results: 14 tests passed, typecheck passed, production build passed
4. Run locally: cp .env.example .env, set DATABASE_URL, npm install, npm run dev
5. Commit: 3f9c2a1 on main
6. Known limitations: no authentication yet (Sprint 2)
7. Manual actions: create a local PostgreSQL database
8. Remaining: authentication, validation, deploymentIterative development
Repeat the loop until the application meets every acceptance criterion:
- ChatGPT produces a sprint or corrective prompt.
- Claude Code implements, tests, commits and reports.
- You test and observe.
- ChatGPT reviews and produces the next prompt.
Consolidate corrections: if you find five issues, send one corrective prompt that fixes all five, not five separate prompts.
Local testing
Local testing means running the application on your own computer before deploying. Typical commands for a Node.js project:
npm install # install dependencies (first time and after changes)
npm run dev # start the development serverOpen the URL shown (often http://localhost:3000). Then test like a real user:
0 of 6 complete
Press Ctrl+C in the terminal to stop the server.
Automated tests
Automated tests are code that checks other code. They catch regressions — things that used to work but broke after a change. Ask Claude Code for tests in every sprint, focused on:
- Core business logic and calculations.
- Data access and authorization rules.
- Input validation.
- Critical user workflows (end-to-end tests where practical).
Common commands (your project may differ — see its README):
npm test # run automated tests
npx tsc --noEmit # TypeScript type checking
npm run build # production buildDebugging using logs and screenshots
When something fails, gather evidence before asking for a fix:
- Terminal output: copy the full error, including the lines above it.
- Browser console: open developer tools (Cmd+Option+I in most browsers) and copy red errors.
- Network tab: check failing requests and their status codes.
- Screenshots: capture what you see. Claude Code and ChatGPT can interpret images.
Then use the bug-fix prompt. Precise steps to reproduce and exact errors lead to root-cause fixes instead of guesses.
Bug Fixing
- Purpose
- Give Claude Code a precise, evidence-based defect report so it fixes the root cause instead of guessing.
- When to use
- When you find a defect during local testing or in production logs.
[SHORT DEFECT TITLE][STEPS TO REPRODUCE][EXPECTED RESULT][ACTUAL RESULT][ERROR MESSAGES OR LOG EXCERPTS][ENVIRONMENT: local or production, browser, device]# Defect fix — [SHORT DEFECT TITLE] ## Operating instructions Use LOW GAS throughout this task. Minimize token consumption, unnecessary analysis, repetitive audits, readiness checks and intermediate reports. Consolidate related implementation activities. Do not create additional planning phases or request approval for routine implementation decisions. Run essential tests, type checking and production builds. Do not compromise security or functionality to reduce model usage. ## Steps to reproduce [STEPS TO REPRODUCE] ## Expected result [EXPECTED RESULT] ## Actual result [ACTUAL RESULT] ## Error messages or log excerpts ``` [ERROR MESSAGES OR LOG EXCERPTS] ``` ## Environment [ENVIRONMENT: local or production, browser, device] ## Instructions 1. Identify the root cause. Do not mask the symptom (for example, do not silence errors or remove validation). 2. Implement the smallest correct fix. 3. Add a regression test that fails before the fix and passes after it, where practical. 4. Check for the same defect pattern elsewhere in the codebase and fix it if present. 5. Run tests, type checking and the production build. 6. Commit and push to main without force-pushing. ## Completion report Root cause, fix summary, files changed, test results, commit hash and anything I must verify manually.
Git commits and pushes
Your sprint prompts ask Claude Code to commit and push validated work. You should still understand the commands:
git status # what changed
git diff # see the changes
git add . # stage all changes
git commit -m "Add task editing"
git push # upload to GitHub
git log --oneline -5 # recent commitsGood practices:
- Commit after each validated sprint or fix, with a descriptive message.
- Push frequently so GitHub holds an up-to-date backup.
- Never force-push to
main. It can permanently overwrite history. - Review
git statusbefore committing to make sure no.envfile is included.
Maintaining project context with CLAUDE.md and README.md
Claude Code starts each session without memory of previous conversations. Two files give it persistent context:
- CLAUDE.md — instructions for the agent: architecture, commands, conventions and standing rules (such as LOW GAS, never force-push, never commit secrets). Claude Code reads it automatically.
- README.md — documentation for humans: what the project is, how to install, run, test and deploy it.
Create CLAUDE.md after Sprint 1 and update it when the architecture changes. Claude Code also offers an /init command that drafts one from your codebase.
Create Persistent CLAUDE.md Instructions
- Purpose
- Create or refresh CLAUDE.md so every future Claude Code session starts with accurate project context and rules.
- When to use
- After Sprint 1, and again whenever the architecture, commands or conventions change significantly.
[PROJECT-SPECIFIC RULES][DEPLOYMENT TARGET: Railway]# Create persistent project instructions ## Operating instructions Use LOW GAS throughout this task. Minimize token consumption, unnecessary analysis, repetitive audits, readiness checks and intermediate reports. Consolidate related implementation activities. Do not create additional planning phases or request approval for routine implementation decisions. Run essential tests, type checking and production builds. Do not compromise security or functionality to reduce model usage. ## Task Create or update CLAUDE.md in the repository root so future Claude Code sessions have accurate, concise project context. Base it on the actual code, not assumptions. Include: 1. Project purpose in two or three sentences. 2. Technology stack and key dependencies. 3. Directory structure and where main concerns live. 4. Commands: install, develop, test, typecheck, lint, build and start. 5. Coding conventions observed in the codebase. 6. Environment variables (names and purpose only, never values) and that .env files must never be committed. 7. Deployment target: [DEPLOYMENT TARGET: Railway], including build and start commands and migration steps. 8. Standing rules: - Use LOW GAS: minimize unnecessary analysis, repetitive audits and intermediate reports. - Run tests, type checking and the production build before committing. - Never force-push. Never commit secrets. - Ask before destructive operations such as deleting data, dropping tables or rewriting git history. - Keep README.md and CLAUDE.md accurate when architecture changes. 9. Project-specific rules: [PROJECT-SPECIFIC RULES] Keep CLAUDE.md under roughly 150 lines. Commit and push without force-pushing, then report the commit hash.
Appropriate agent permissions
Claude Code can run commands on your computer, so permissions matter.
- Keep approval prompts on while learning. Read what a command does before approving it.
- Allow routine, low-risk actions you trust (for example, running tests) to reduce interruptions once you are comfortable.
- Never grant blanket permission to skip all checks on a machine with sensitive data, credentials or production access.
- Be careful with destructive commands: deleting files, dropping databases,
git reset --hard, force-pushes. - Do not give the agent production credentials it does not need. Local development should use a local or development database.
- Work in a dedicated project directory, not your home folder.
Module 3 checklist
0 of 8 complete