15.8 C
New York
Wednesday, October 22, 2025

Buy now

I Tried GPT-5 Codex and Here is Why You Must Too!

OpenAI has launched GPT-5 Codex, a variant of OpenAI’s newest AI mannequin GPT-5, specialised in agentic coding. It comes as a singular providing, offering real-time help to programmers with the power to autonomously carry out lengthy duties. GPT-5 Codex will repair pre-existing bugs earlier than deployment, full exceptionally sophisticated refactoring, and combine with something out of your cloud atmosphere and IDE to command line terminals, GitHub, and ChatGPT instantly.

Codex CLI brings these capabilities to your terminal and permits studying, rewriting, and executing code domestically. You possibly can request a particular function, debug, or ask for an evidence with out breaking out of the shell, and preserve full connectivity along with your ChatGPT account. Right here, we’ll consider the efficiency of Codex CLI to see the way it handles actual programming duties, particularly net improvement and knowledge evaluation.

What’s Codex CLI?

The brand new GPT-5-based Codex CLI is an open-source command-line device forked from OpenAI’s unique Codex CLI. It now helps a number of AI suppliers. It permits builders to work together with massive language fashions within the terminal for duties like code technology, refactoring, script clarification, and plenty of extra.

Codex CLI acts as a sensible terminal accomplice for coding. It listens to your requests and writes code. Codex CLI has entry to your shell and file system. In the event you’re on the lookout for detailed walkthroughs, try the guides on codex CLI from OpenAI:

https://openai.com/index/introducing-upgrades-to-codex

Set up

Earlier than continuing with the set up, make sure that the system necessities are glad.

System Necessities for Codex CLI

  • Working System: macOS 12+, Ubuntu 20.04+, Home windows 11 (through WSL2)
  • Node.js Model: 22 or newer (LTS really useful). You possibly can set up Node.js by following the directions on its official web page: https://nodejs.org/
  • npm: Required (comes with Node.js)
  • Git: Non-obligatory however really useful
  • RAM: 4 GB minimal, 8 GB really useful
  • Web: Required
  • Authentication: OpenAI API Key
See also  How AI coding agents could destroy open source software

Set up Steps for Codex CLI

1. Verify Node.js model:

node --version #Be sure that it's model 22 or larger.

2. Set up Codex CLI globally, or utilizing pnpm:

pnpm add -g @openai/codex

3. After logging in along with your GPT-Plus or Professional credentials, you will notice the next display screen.

GPT-5 Codex

4. Add this line to your shell config file (e.g., ~/.bashrc, ~/.zshrc) for persistence.

5. Run Codex CLI:

codex

6. Or go a immediate instantly:

Codex

codex “clarify this codebase to me”

Issues to Hold in Thoughts

  • Node.js and npm (Node Bundle Supervisor) have to be put in and accessible in your system PATH.
  • For Codex CLI, Node.js 22+ is required, whereas Gemini CLI works with Node.js 18+.
  • Each require authentication through API keys or account login for full performance.
  • On Home windows, Codex CLI is greatest run through WSL2 for full compatibility.
  • Bear in mind, if you wish to use your CLI for a sure mission, ensure you have the present working listing set to the folder path the place your mission exists.

Working our CLI Cases

Let’s proceed to check the codex with GPT-5 on 3 duties

  • Constructing a recreation on a neighborhood host
  • Constructing a Every day calorie-tracing software
  • Constructing a Sentimental Evaluation Mannequin Workflow

If all of the set up steps are full and the system necessities are met, we are able to begin with the assessments.

Process 1 – Constructing a recreation on a neighborhood host

Aim: Construct a 2D arcade shooter with enemies and scoring.

Immediate:

“Create a easy 2D area shooter recreation utilizing JavaScript and HTML5 canvas (or Python Pygame if most popular). The sport ought to show a spaceship managed by the participant with keyboard arrow keys for motion and the spacebar for taking pictures. Enemies ought to spawn on the high and transfer downward at random intervals. Implement collision detection so bullets destroy enemies and enhance the rating. Add a fundamental game-over situation if enemies collide with the participant’s ship. Use pixel-art model graphics and guarantee clean animations.”

It’s evident that Codex efficiently produced an nearly absolutely outlined 2D area shooter, being very clear and exact in its output. The implementation included participant controls, enemy spawning, collision detection, and scoring, all organized in a method that was simple to observe. Nearly each time, it ran in below one second with solely minor changes, which was a pleasing shock.

See also  700 Million People Use ChatGPT Weekly: Here’s What They’re Doing With It!

Output:

The very clean design, pixel-art graphics, and responsive animations supplied a cultured really feel, although it was a easy recreation. The USP right here was Codex’s skill to principally translate a natural-language immediate right into a functioning interactive prototype. The sport-over logic, rating monitoring, and even text-displaying messages have been all purposeful as nicely, demonstrating Codex’s skills in each logic and presentation.

Process 2: Constructing a Every day calorie-tracing software

Aim: Construct an interactive dashboard with charts and consumer enter.

Immediate:

“Develop a health tracker dashboard utilizing HTML, CSS, JavaScript, and a charting library (like Chart.js). Permit the consumer to log each day steps, energy burned, and hours slept. Show this knowledge in real-time on dynamic charts (bar chart for steps, line chart for energy, pie chart for sleep distribution). Add a weekly abstract part that calculates averages and highlights the most effective/worst day. Embody a easy native storage mechanism so consumer knowledge persists throughout web page refreshes. Model the dashboard with a clear, trendy UI.”

Output:

GPT-5 Codex supplied probably the most sensible and feature-rich implementation. It built-in Chart.js easily, with responsive bar, line, and pie charts updating in actual time. The weekly abstract part calculated averages precisely, highlighting the most effective and worst days with readability. Moreover, Codex dealt with native storage nicely, guaranteeing persistence throughout classes, and styled the dashboard with a clear, trendy interface.

Process 3: Constructing a Sentimental Evaluation Mannequin Workflow

Aim: Analyze textual content knowledge for insights.

Immediate:

“Carry out sentiment evaluation on a dataset. Implement this in a Jupyter Pocket book. Begin by cleansing the textual content (take away stopwords, punctuation, and apply tokenization). Use a pre-trained sentiment evaluation mannequin (e.g., from Hugging Face Transformers or TextBlob). Examine mannequin predictions with precise scores and calculate accuracy. Visualize the distribution of optimistic, impartial, and detrimental sentiments utilizing charts. Finish with at the least three insights about how buyer scores align (or misalign) with the sentiment evaluation mannequin.”

Output:

GPT-5 Codex delivered a transparent and structured workflow for sentiment evaluation. It applied textual content cleansing, tokenization, and mannequin integration with minimal friction, producing dependable outcomes total. The comparability of predictions with precise scores labored nicely, and the accuracy calculation was simple. Other than a small error in a single print assertion, all the things executed easily, together with saving sentiment distribution charts for insights.

Codex

You will discover the whole code type right here and obtain the dataset from Kaggle.

See also  The rise of prompt ops: Tackling hidden AI costs from bad inputs and context bloat

We not too long ago in contrast Codex with Gemini and Claude Code (learn the complete comparability right here). On the time, we discovered Claude Code to be the most effective throughout all duties. Nevertheless, the brand new GPT-5-based Codex brings vital enhancements with respect to its earlier model. Within the subsequent part, we’ll examine the general efficiency of the brand new GPT-5-Codex in these regards.

General Evaluation

In my earlier weblog, whereas accessing and evaluating Codex CLI, Gemini CLI, and Claude Code, every exhibited differing strengths. Codex was nice at producing quick and iterative code. Gemini was extra helpful with energetic search outcomes and working instructions. Claude produced depth with nice documentation and construction. Every device can simply be used for debugging or intervention. Although they need to be checked by a human previous to deployment.

GPT-5 Codex is a exceptional enchancment of the Codex line. As a lot because it retains the pace and readability of Codex, it now consists of agentic autonomy to deal with bug fixes, refactoring, visualization, and run workflow with no /little intervention. In contrast to Gemini’s use-case framework and Claude’s construction and depth, or pace of navigation, GPT-5 Codex turns into a mixture of each ends: producing good, clear, dependable, and production-ready options digitally at an alarming tempo as coded, making it the most effective device of the three.

Conclusion

GPT-5 Codex with Codex CLI demonstrates how AI can function a dependable accomplice in coding by changing pure language prompts into purposeful, production-ready code. From participating interactive video games to polished dashboards and sentiment evaluation workflows, it produced polished work with solely minimal edits wanted, demonstrating its versatility in improvement functions.

Along with automation, Codex enhances developer productiveness by simply integrating into IDEs, terminals, and cloud environments. The flexibility to help meaningfully in real-time with debugging, refactoring, and automation makes it each a purposeful and related trendy programming device. Whereas a few of its outputs might proceed to want minor revisions, Codex exemplifies the way forward for agentic coding for programmers to raise their working, high-potential merchandise.

Login to proceed studying and revel in expert-curated content material.

Supply hyperlink

Related Articles

Leave a Reply

Please enter your comment!
Please enter your name here

Latest Articles