Our coding helpers, inside Antigravity
Lesson 02 · 60 minutes
First, set up and try our helpers. Then, return to Mario.
Part 1: Codex & Claude. Part 2: our Mario game.
Teacher noteThis is a separate Lesson 2 presentation. Leave Lesson 1 as taught. Before class, prepare permitted access, working sign-in, and a copy of the first Mario project on each computer. Screenshots are from Antigravity IDE 2.6.0 on the teacher’s Mac; labels and model availability may differ. Both learners complete the same task.
Today, you take the controls
- Install and open Codex, then send a first message.
- Choose Claude in Antigravity and try a conversation.
- After both tools work, return to Mario and add Restart.
Begin with tool setup and a simple conversation unrelated to the game. Do not open or explain Mario files until both students have practiced with the two helpers. Installation is a guided exercise. If access stalls, use the prepared computer and preserve the building time.
One workspace, two ways to get help
| What you see | What it does |
|---|---|
| Antigravity | Holds our project files and assistant panels. |
| Codex extension | OpenAI’s coding helper in its own panel. |
| Claude in the model menu | A model used by Antigravity’s own Agent panel. |
| Browser | Runs the game so we can test it. |
This is one way to use AI. Other editors, apps, websites, and terminal tools are also possible.
Teacher noteDistinguish an editor, an extension, and a selected model. For this class, Claude means the native Agent model menu the teacher uses. It does not require installing Claude Code.
Codex · 1. Open Extensions
- Choose View → Extensions.
- Find the search box at the top.
Mac shortcut: Shift+Command+X. Windows/Linux: Ctrl+Shift+X. Use the menu if shortcuts differ. The teacher’s sidebar already lists installed extensions.
Codex · 2. Find the official extension
Search for Codex. Check the publisher: OpenAI (openai).
Exact extension ID: openai.chatgpt. The screenshot uses @id:openai.chatgpt to narrow the results.
Do not install similarly named third-party extensions. This version of Antigravity uses Open VSX; availability may differ from VS Code. If the exact official extension is absent, use the teacher appendix rather than trying random search results.
Codex · 3. Check, then install
- Open “Codex – OpenAI’s coding agent.”
- Check publisher openai and ID openai.chatgpt.
- On a new setup, click Install. Reload if requested.
Already installed? Disable / Uninstall means installation is complete. This screenshot shows that state.
Teacher noteThis is a real installed-state screenshot, not a staged Install screen. Point to the extension header where installation controls appear. The teacher installed this copy from VSIX. A teacher-only fallback is provided after the lesson. Official listing: https://marketplace.visualstudio.com/items?itemName=openai.chatgpt
Codex · 4. Open its panel
- Choose View → Command Palette…
- Type Codex: Open Codex Sidebar.
- Select the matching command.
Mac Command Palette shortcut: Shift+Command+P. Windows/Linux: Ctrl+Shift+P. The command works even when the icon is hidden or the sidebar has moved. Confirm the panel is labeled Codex.
Codex · 5. Sign in if asked
- In the Codex panel, choose Sign in with ChatGPT.
- Complete sign-in in the browser using the approved classroom access.
- Return to Antigravity. Confirm you can type a message.
The teacher’s screenshot setup is already signed in. There is no sign-in screen to reproduce here.
Official sign-in instructions ↗
Teacher noteHave sign-in and account eligibility arranged before class. Do not ask students to create accounts or use API keys during this activity. Never project passwords or account details. If login remains blocked, switch to the prepared demonstration machine and continue the same learning task.
Codex · 6. Send your first message
What can you help me create? Give me three simple examples.
- Type or paste the request in the Codex message box.
- Send it and wait for the answer.
- Ask one follow-up: “Explain the first idea in simpler words.”
Success: you can send a message, read a reply, and continue the conversation.
Teacher noteThis is tool practice only. No Mario project or file edits yet. Tell students that the reply is an AI-generated suggestion, not a completed project. Both students send the same short request and one follow-up. If the panel requires a workspace, open a prepared empty ai-practice folder. Keep it separate from the game.
Claude · 1. Open the model menu
- Open Antigravity’s own Agent chat panel.
- Click the model name below the message box.
- Choose an available Claude model.
Show the native Agent panel live before pointing to the model menu. Codex and the native Agent are different panels; switching a model does not switch the Codex extension. In this teacher setup, Claude Sonnet and Claude Opus choices appear. Names, access, and quotas can change. Use the available approved Claude choice.
Claude · 2. Send a message and follow up
What can you help me create? Give me three simple examples.
- Check that Claude is selected below the message box.
- Send the same short request and wait for a reply.
- Ask: “Explain the first idea in simpler words.”
Claude is selected inside Antigravity. No separate Claude Code installation is needed for this route.
Teacher noteKeep this independent of Mario. Ask students to point to the active model and identify which conversation they are using. The two helpers may suggest different ideas; the goal is to use each interface, not rank models. After both students can send and follow up, move to the next slide and reopen the Mario project.
Now return to your Mario game
- Choose File → Open Folder…
- Open the folder containing your first Mario game.
- Find index.html and any pictures or other game files.
Tool practice is complete. Make the transition explicit: now we will use a helper on our existing Mario game. Use the same folder as Lesson 1, not a new empty project. The screenshot shows a single-file recovery game; a generated project may contain more files. Show the folder name and the saved game in the browser. Students point to their own file.
One helper changes the files at a time
For Restart, choose Codex OR the native Claude chat.
The helpers can see the same project files. Their chat histories are separate.
Teacher noteBoth students may choose the same helper. Do not have two assistants editing concurrently. When switching, wait for the earlier task to finish, tell the next helper which file and change to inspect, and verify the current result. Explain that the next chat does not automatically know what was said in the other one.
Keep a way back
- Save the current game files.
- Copy the whole project folder as mario-before-restart.
- Continue editing the original project folder.
my-mario/ index.html pictures/ mario-before-restart/ index.html pictures/
If your game uses several files, the backup needs all of them.
Teacher noteUse Finder or File Explorer to copy the whole folder. Explain which is the active project and which is the backup. Do not introduce Git this lesson. Open the backup once to confirm it works. The folder diagram is an instructional example, not a screenshot.
What should Restart do?
Move. Jump. Press Restart.
Back at the start.
On the ground.
No old movement.
This recovery example extends the simple first-lesson game with one button. Click the game to use its keys. Ask both students to predict a restart in midair, then demonstrate. Their own game may already have coins or other features; list which starting values it must restore.
Ask for one useful change
Add a Restart button to my Mario game.
Send only the first short prompt. Reveal a follow-up only after trying the result. If Restart already exists, ask it to fix one observed restart problem rather than adding a second button.
Build Restart in your own game
- Choose one helper and send the short request.
- Wait for it to finish. Save the changed files.
- Open or refresh the game in the browser.
- Try Restart, then ask for one fix if needed.
Allow roughly 3 minutes for the request and result, 6 for play and a focused fix, and 5 for both students to reach a working checkpoint. Inspect the files changed before accepting a large rewrite. Keep the existing character, movement, and jump. If blocked, use starters/mario-restart.html and explain the added behavior.
Prove that it works
- Move right → Restart. The hero returns to the starting position.
- Jump → Restart in midair. The hero lands at the start without old falling motion.
- Restart several times. Movement speed stays normal.
- Try left, right, and jump again. Save and reopen the game.
Have each student perform all four checks, including the behavior that already worked. If their game has a score, lives, or coins, include those starting values too. Record action, expected result, and actual result for one failed test before asking for a fix.
Show your working second version
Show your helper, your game file, and a working Restart.
What did Restart need to reset?
Save a copy of the complete working folder as mario-lesson-02. Keep the before-Restart copy too.
Teacher noteAsk each student to name their active assistant, locate the file, demonstrate restart, and explain one reset value. Save the complete project including assets. Next lesson should start from this tested version, with the next feature chosen after classroom feedback.
Teacher appendix · If Codex is missing
- Check the official extension listing and publisher.
- Prepare the matching official VSIX package before class.
- Command Palette → Extensions: Install from VSIX…
- Select the trusted package. Reload if requested.
Official Codex listing ↗ · Match the OS and processor when a platform package is offered.
Teacher noteThis installed Antigravity build uses Open VSX and the working Codex copy came from VSIX. Registry support may vary. Do not install unknown lookalikes or download repackaged extensions. Resolve missing packages before students arrive. If the official package is incompatible, use a supported Codex interface for the demo; do not spend the practical period debugging installation.
Teacher appendix · Claude Code is separate
Claude Code is an optional Anthropic coding tool with its own extension.
Official publisher: Anthropic. Extension ID: Anthropic.claude-code. It is not needed to select Claude in Antigravity’s model menu.
Use only if students ask why a separate Claude Code panel exists. This class follows the user’s native Claude model-menu workflow. Do not add another required installation or login. Source: https://code.claude.com/docs/en/vs-code
Teacher appendix · An optional third panel
Claude Code has its own conversation and file context.
The screenshot shows a draft with index.html as context and Manual mode. Terminal commands such as claude or codex require the corresponding CLI to be installed separately.
Do not confuse the Claude Code extension’s bundled internal CLI with a system-wide terminal installation. Keep this outside the one-hour student lesson.
Teacher appendix · Quick recovery
| No official Codex result | Use the prepared official package or the instructor demonstration. |
| Codex icon is hidden | Run Codex: Open Codex Sidebar. |
| Login is still pending | Return from the browser; use the prepared machine if blocked. |
| Claude is unavailable | Demonstrate the selector; continue Restart with the working helper. |
| Game looks unchanged | Check the folder, save files, and refresh the correct browser tab. |
Protect the workshop time. Installation success is not the sole measure of learning: students should still identify the workflow and improve/test the same Mario project.
Sources & screenshot notes
- Codex IDE extension
- Codex authentication
- Official Codex extension
- Antigravity Agent panel
- Antigravity model selector
- Optional Claude Code extension
Screenshots captured from the teacher’s actual Antigravity IDE 2.6.0 setup. Cropped and compressed for readability; interface labels were not redrawn. Installed buttons, model names, and availability may differ on another computer.
Course hub · Teacher guide · Worksheet
Teacher noteScreenshots deliberately show the installed/signed-in teacher state. Tool-practice requests are classroom exercises. The optional Claude Code composer screenshot is an unsent draft. No original student photo is published. Sources and appendix add no required lesson time.