Overview
Use Codex to build a small web app that computes BaZi charts from a birth date and time with tested code, adds model-written readings on top, and offers the interface in more than one language.
Problem or Objective
- Which agents turn a plain-language brief into a working app or prototype?
- Which agents write or run tests against an application?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Codex
- Prerequisites
- An eligible paid ChatGPT plan for Codex Cloud, a GitHub repository, a language model API key for the readings and, if you charge, a payment provider account used in test mode.
How It Works
Write a short spec first: the inputs (birth date, time, place and time zone), the chart rules you follow and a set of reference charts you trust. Start a Codex Cloud task from your repository, or from the default environment if you have none yet, and ask Codex to implement the chart calculation as a plain, deterministic module with unit tests built from those reference charts. Review the diff and the test results before accepting anything. In a second task, ask for a web front end that shows the chart, a separate step that sends the computed chart to a language model for a written reading, and translation files for each language you want to offer. If you plan to charge, have Codex wire in your payment provider's test mode only and read that provider's documentation yourself. When the tests pass, commit or open a pull request, then publish through Sites in Codex if your plan offers it, or through your usual host.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Codex.
- Check the prerequisitesAn eligible paid ChatGPT plan for Codex Cloud, a GitHub repository, a language model API key for the readings and, if you charge, a payment provider account used in test mode.
- Gather your detailsCollect what the prompt asks for: Repository for the app, File of hand-checked charts, Interface languages.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at developers.openai.com before you rely on it.
Practical Starter Prompt: Build a tested chart calculator first
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Create a web app in [Repository for the app] that computes a BaZi chart from birth date, birth time and time zone. Put the calculation in its own module with no network calls, and write unit tests from the reference charts in [File of hand-checked charts]. Add a separate step that sends the computed chart to a language model for a short written reading, and translation files for [Interface languages]. Do not add live payments or deploy anything. Stop when the tests pass and show me the diff and test output to review.Review the diff and test results before you commit, and approve any payment or publishing step yourself.
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 pages say Codex Cloud runs coding tasks in a cloud environment, lets you review changes and test results and then commit or open a pull request, and that Sites, where available, builds and shares a site from a description. They say nothing about BaZi rules, translation quality or payment integrations, so those parts rest on your own references and testing.
Limitations and Considerations
Keep the calendar arithmetic separate from the generated reading and test it against charts you have checked by hand, because a model can describe a chart confidently even when the calculation under it is wrong. Present readings as cultural entertainment rather than advice. Taking payments brings legal and tax duties, more so for cryptocurrency: check the provider's terms and your local rules first, and stay in test mode until then. Codex Cloud needs an eligible paid ChatGPT plan, and building or editing a Site counts toward Codex usage. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)developers.openai.com
Related Videos
About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Codex Cloud | ChatGPT Learn (opens in a new tab)
Project documentation · developers.openai.com · Undated · Source checked 25 Nov 2026, 12:11 UTC
What this source supports
- Codex Cloud runs coding tasks in cloud environments, then lets the user review the changes and commit or open a pull request.
- A first task can run without a repository, for example writing a script and testing it on sample files, then reviewing the script and test results.
- Using Codex with your ChatGPT plan | 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
- Codex is OpenAI's coding agent that helps write, review and ship code; Codex Cloud is for eligible Plus, Pro, Business, Enterprise, Healthcare and Education accounts, not Free or Go.
- If Sites is available in Codex, the user describes what to build, reviews the preview and uses the available sharing controls; building or editing a Site counts toward Codex usage.
