OpenAI's Codex helps beginners build a stock profit‑loss calculator app
OpenAI’s Codex, a software‑development AI agent, is used in a step‑by‑step tutorial that lets people with no programming background create a simple stock profit‑loss calculator web app.
Key points
- Codex can generate a complete web app from a Japanese natural‑language prompt
- The example app calculates purchase cost, market value, profit/loss and percentage, showing gains in red and losses in blue
- Users can extend the app with multiple stocks, pie charts, data saving and CSV export via further prompts
The guide asks users to launch Codex via https://chatgpt.com/codex, then feed a natural‑language prompt in Japanese that specifies required inputs, calculations, UI colors, mobile layout, and that the app run entirely in the browser.
Codex generates the HTML, CSS and JavaScript files, runs the app, and the tutorial shows how to verify the results with sample data (e.g., 1,500 yen purchase price, 1,800 yen current price, 100 shares). Users are encouraged to iterate, adding features such as multiple‑stock handling, pie‑chart breakdowns, data saving, and CSV export through additional prompts. The article stresses that clear requirement definition is crucial because ambiguous prompts can produce unintended behavior, and that human verification remains essential.
The piece also suggests using this approach for corporate talent development, letting employees solve everyday business problems with AI‑assisted coding, thereby building DX skills without exposing confidential data.

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- OpenAI builds Athena platform to improve AI agent data accuracy · 2 src
- TrueLayer and Lloyds test AI agent cardless pizza purchase in UK · 2 src
- Anthropic lets Claude users install AI-built artifacts as desktop apps on Mac and Windows · 15 src
- Anthropic expands Claude Duet research preview to India for Pro and Team users · 5 src
- Obsidian adds official AI agent connectors while staying AI‑free · 1 src
Comments
via GitHub Discussions