Write web programming using Codex and AI agents
This tutorial will teach you how to connect a repository, plan changes, implement them with AI agents, and open pull requests in order to use OpenAI's Codex to ship your first change from a GitHub repository without writing code by hand.
Step-by-step:
Go to ChatGPT, open the left sidebar, and click "Codex" to access the main interface
Click "Manage environment," select your GitHub organization and repository, then configure code execution settings
Choose "Plan" to discuss scope without touching code, or "Execute" to make changes on a branch — prompt example: "Can you give me insights on what this project is about?"
Enter your implementation prompt (e.g., "Turn this static landing page into a website where users can paste their own stories and poetry"), preview changes with "Run this code and show me the site," then click "Create PR" when satisfied
Use branches for safety. Avoid writing code directly to main unless required.