Codex for Backend Engineering · Future with ShivankShivank Agarwal
Hands-on guides

Build a real backend with Codex, one guide at a time

This is the practice track of my Codex course. We build one auction-house app from an empty folder to a production-style system with a database, concurrency control, real-time updates, background workers, a message queue, payments and tracing — and we do it by directing an AI coding agent, then reviewing and testing everything it writes. I assume you are new to backend engineering: every concept, command and prompt is explained where it appears.

Keep a guide open while you work. Every prompt and command has a Copy button, every step tells you what you should see, and ticking “Done” is remembered in this browser.

Start with “1. Introduction” for the one-time setupSigned in to Codex with an OpenAI API key26 guides · 8 parts · one app
1. Introduction
One-time setup. Install the tools, get the course repo, and create the practice folder that every later guide works in. Nothing goes into Codex yet.
Hands-on · 7 steps
2. Codex Overview
A guided tour of the Codex app. You will find each part of the window, set the permission level, choose the model, effort and speed, and open the built-in terminal once. After this guide, when I say “click the model button” or “open the bottom panel”, you will know exactly what I mean.
Hands-on · 9 steps
3. Thinking Levels
A short settings tour. You look at the five effort levels and learn when each one is worth its cost, find the custom-instructions box where my token-saving trick lives, understand why we skip Ultra, and set a spend alert so your API bill can never surprise you.
Hands-on · 4 steps
4. Specifying a Tech Stack
A tour of the project you downloaded in guide 1, on your own two copies: the folder layout, the README's stack and parts, what lives inside one part, the Docker services, and the AGENTS.md file. By the end you know what every technology in this app is for, and why I chose it instead of letting the AI choose.
Hands-on · 5 steps
5. Install Custom Skills
Your first real build. You create a throwaway Codex project, send my first build prompt and watch Codex create a whole React site from nothing. While it works, you install the grilling skills we use for the rest of the course. Then you review what Codex changed, run the site and open it in Chrome.
Hands-on · 9 steps
6. Browser Use & Agents.md
We are still in the throwaway project. In this guide you make Codex open your site in a real Chrome window and click through it on its own, then you generate an AGENTS.md file and trim it down to the rules that matter.
Hands-on · 6 steps
7. Create Auctions & Bids Site
The warm-up is over. In this guide you throw away the practice project, read the rules file that will steer Codex for the rest of the course, add ~/codex-course/workshop as your Codex project, and get Part 1 of the real auction app running at http://localhost:5101. Every later guide starts from here.
Hands-on · 10 steps
8. Plan Mode & Grilling
Part 2 begins. You look at Codex's built-in plan mode once, then let the grill skills interview you in two rounds about auctions, bids and users. At the end you approve the build slices and Codex starts writing the first one.
Hands-on · 9 steps
9. Auctions & Users
Codex is building Slice 1. In this guide you learn how to review what an agent writes while it writes it: the database migration first, then the API and its tests, then the written design record. Then you open Part 2 in Chrome and send your first follow-up change.
Hands-on · 9 steps
10. Bidding & Constraints
Finish Part 2. Check the random-user change, let Codex build Slice 2 (post an auction) and Slice 3 (bids), learn to read and shrink the context window, and prove the bid rules yourself in two browser tabs.
Hands-on · 11 steps
11. Understanding the Concurrency Problem
Find the race condition hiding in Part 2's bid code with your own eyes, then ask Codex to prove it exists with a four-window “Bidding War” Playwright test before anyone touches the fix.
Hands-on · 6 steps
12. Concurrency Playwright Tests
Finish the four-window Bidding War test and watch the race condition happen on your own screen. Along the way, practise steering Codex mid-run: stop it, queue messages, and send it a screenshot instead of a paragraph.
Hands-on · 9 steps
13. Create Plan for Fixing Concurrency
Start Part 3. Have Codex copy Part 2 into the Part 3 folder, let it grill you on the concurrency rules in two rounds, and use a side chat to ask your own questions while the main run keeps working. By the end you have a written plan and two proposed slices, but no code yet.
Hands-on · 8 steps
14. Row Locking in PostgreSQL
Approve the two slices Codex proposed, let it build Slice 1 (one database transaction and one row lock per auction), learn in a side chat how that lock really works, then rerun the bidding war and watch the duplicate bids disappear.
Hands-on · 7 steps
15. Closing the Auction
Build Slice 2 (an injected app clock, and auction pages that switch to “Ended” exactly on time), use two side chats to learn isolation levels and to find your blind spots, then commit Part 3 and run one last, fully protected bidding war.
Hands-on · 8 steps
16. Code Reviews with Codex & Claude
Have Codex review your Part 3 commit with its built-in code review, learn to read the P1/P2 findings and decide what deserves a fix, and (optionally) get a second opinion from a different model, Claude.
Hands-on · 7 steps
17. Socket.io & Redis
Start Part 4: ask Codex to copy Part 3 into Part 4 and grill you on real-time bid updates with WebSockets and a Redis backplane. Optionally send the same request in Plan mode in a second chat, so you can compare the two ways of planning with your own eyes.
Hands-on · 6 steps
18. Implementing the Real-Time Updates
Finish Part 4. Read the architecture diagram Codex drew, question it, approve Slice 1, then watch two browser windows update live without a reload. Run the four-window bidding war and use a screenshot to make Codex fix the cramped layout and the leftover page reloads.
Hands-on · 12 steps
19. Finding a Concurrency Defect
Part 5 is a game. We ask the strong Sol model to plant a subtle concurrency bug in a copy of Part 4 and delete the tests that would catch it. Then we switch to the small 5.6 Luna model in a fresh chat, with no memory of the crime, and see whether it can find the bug.
Hands-on · 7 steps
20. Closing Auction Plan
Start Part 6. This time I tell Codex exactly which architecture I want for closing auctions: a polling close worker → RabbitMQ → a notification worker → a WebSocket popup. We go through two rounds of grilling, get an ADR for the transactional-outbox decision and two proposed slices. Optionally, you run a vague version of the same request in a second chat and compare the two designs.
Hands-on · 8 steps
21. Messaging with RabbitMQ
Build Part 6. Approve both slices: first the auction close worker with its transactional outbox, then RabbitMQ → notification worker → popup modals. Review the code while Codex works, and finish with a bidding war that ends in “Congratulations” for the winner and “Your auction has closed” for the seller.
Hands-on · 8 steps
22. Codex Goals
Put your workshop on GitHub, create the two issues I give you below, and let a Codex /goal pull an issue with the GitHub CLI, work on it in its own worktree and open a pull request. This is how agents work from a ticket queue in a real team.
Hands-on · 11 steps
23. Stripe Checkout
Start Part 7: ask Codex for winner checkout through the mock Stripe service, answer two rounds of grilling questions, confirm the two slices and let Codex build and test Slice 1. By the end, the auction winner can pay.
Hands-on · 10 steps
24. Reviewing the Pull Request
Review the Drizzle pull request your goal opened, catch the test it skipped, pay for a won auction through Mock Stripe with your own hands, and start Part 7's Slice 2. This guide is about trusting an agent's work the right way: verify, then accept.
Hands-on · 10 steps
25. Observability
Start Part 8. You ask Codex to add OpenTelemetry tracing and Jaeger to the auction app using a single short grilling round, finish and save Part 7, and then let Codex build the whole tracing change as one slice.
Hands-on · 7 steps
26. Observability with Jaeger
The last guide. Open Jaeger, read the traces Part 8 produces, find an error span and read its exception, then have Codex run the bidding war and walk you through the winning trace across three services.
Hands-on · 8 steps
27. Wrapping Up
Nothing to type here. Look back at what you built: grill-me planning before every feature, a complete auction app (React, PostgreSQL, row locking, Redis, RabbitMQ, Stripe checkout, Jaeger tracing), bidding-war tests that give you certainty instead of hope, /goal for issue-driven work, and delegating simple jobs to cheaper models. That workflow is the real takeaway — the app is just the proof.
Recap