OpenAI Codex Tutorial #3 - Code Code Review — Transcript
Full transcript
- 0:00All right then, my friends. So, we've
- 0:02seen now how Codex Cloud can run tasks
- 0:04to make code changes and open pull
- 0:06requests. Now, I want to show you how
- 0:08Codex can review its own PR directly on
- 0:10GitHub. So, the first thing we need to
- 0:12do is come to the settings link up here
- 0:14and then head to the code review option.
- 0:17Once you're there, you're going to see a
- 0:18list of all the repos on your GitHub
- 0:20account. And we just need to search for
- 0:22the repo we want to enable code review
- 0:24for. In our case, Codeex has been
- 0:26working on the Yumpair repo. So, we're
- 0:28going to search for that repo in this
- 0:30search bar. Now, one thing I have
- 0:33noticed about the Codeex Cloud UX is
- 0:35that sometimes it's a little bit laggy,
- 0:37a little bit slow, and it can take a
- 0:39long time to try and find a repo. But
- 0:41once it is showing, you should be able
- 0:43to hit the little toggle switch to allow
- 0:45Codeex to review u the work on that
- 0:48repo. But again, the UX and UI is really
- 0:51unresponsive and slow. It might just be
- 0:53at the moment. So, you might need to
- 0:54refresh the page to see that switch
- 0:56turned on. Anyway, now we have Codex
- 0:59review switched on for the project, we
- 1:01can go back to the Codeex dashboard and
- 1:03assign another task to Codeex, but this
- 1:06time once it's completed the task and
- 1:07opened the PR, we'll have Codex review
- 1:09its own code as well. So again, I'm
- 1:12going to make sure that the main branch
- 1:13is selected for the environment that
- 1:15we're working in because that's where I
- 1:17want Codex to branch from. And then I'm
- 1:19going to paste in the following prompt.
- 1:22I want some front-end validation for the
- 1:24add new pair form. Users must add a
- 1:27description at least 10 characters long
- 1:29and have at least one tag added. The
- 1:31other two fields, food A and food B, are
- 1:33also required. Can you add some
- 1:35validation and error feedback to the
- 1:37form based on these conditions when a
- 1:40user submits? So then we'll hit the code
- 1:43button to fire off this task, which we
- 1:45will see after a moment down in the task
- 1:47list. Again, Codeex is going to spin up
- 1:49a new container to work on that task in
- 1:52isolation, and we can keep track of
- 1:54everything it's doing in real time by
- 1:56heading to that task and then to the
- 1:58logs. So, I'm not going to sit here
- 2:00right now and just keep this recording
- 2:01while it's working. I'm going to pause
- 2:03the recording right now. I'm going to
- 2:04start it back up again when it's done.
- 2:07All right, so now it's all done and we
- 2:09can see all the changes it's made. Let's
- 2:12go ahead and open a PR by clicking on
- 2:14this button right here. And again, once
- 2:16it's made that PR, after a few moments,
- 2:18we can click the button again to view it
- 2:20on GitHub. Okay, then. So, here it is.
- 2:23And we can see a summary of the changes
- 2:25made in the PR description. And now we
- 2:27can trigger a code review by adding a
- 2:29comment down here. And that comment
- 2:31should mention codec. So, at codeex
- 2:33followed by the word review. And then we
- 2:37can add that comment. Now once we've
- 2:38done that, Codeex is automatically going
- 2:41to look at this PR and all the code
- 2:43changes suggested within it and provide
- 2:45a little code review right here on
- 2:47GitHub. And you can actually see the
- 2:50little eyes emoji right here, which is
- 2:51codeex basically acknowledging the
- 2:54request. Now, it might take a few
- 2:56moments to complete. So I'm going to
- 2:57pause the recording right here while it
- 2:59does its thing. Then I'm going to start
- 3:01it back up again when it's done.
- 3:03Okay, so it looks like Codex has
- 3:05finished its review. So if we scroll
- 3:07down, we can see it's comment down here.
- 3:09And if we expand this, it says, "Your
- 3:11team has set up Codex to review pull
- 3:12request in the repo. Reviews are
- 3:14triggered when you open a pull request
- 3:15for review. Mark a draft as ready or
- 3:17comment at Codex review, which is what
- 3:19we did right here. If Codex has
- 3:21suggestions, it will comment. Otherwise,
- 3:23it will react with a thumbs up." It also
- 3:26says that Codex can answer questions or
- 3:27update the PR. Try commenting at Codex,
- 3:30fix this CI failure, or Codeex address
- 3:34that feedback. So, let's see what it
- 3:36suggests. And if we scroll down here,
- 3:39you can see that it has one suggestion,
- 3:42and it's to do with the validation error
- 3:44after we clear the tags. So, I'm not
- 3:47going to go through all of this right
- 3:48now, but what you could do if you wanted
- 3:50to is you could say at codeex fix the
- 3:53issue or address that feedback. And in
- 3:55fact, let's try that. We'll say at
- 3:57codeex
- 3:58address this feedback like so. And we'll
- 4:03comment
- 4:06Now when we did that, Codex
- 4:07automatically spun up a new task over
- 4:09here called address feedback in new pair
- 4:12form. And if we click on that, you can
- 4:14see it's now working on that task. And
- 4:17this is the branch that it's using right
- 4:20here. Add frontend validation for add
- 4:22new pair form. And if we go back to
- 4:24GitHub and scroll up, then we can see
- 4:28that it's exactly the same branch. So,
- 4:31it's basically just going to update this
- 4:33PR right here with the work it does on
- 4:36this same branch.
- 4:38So, then after a moment, if we go back
- 4:40over here, when the task completes, we
- 4:42can see the changes. We can see what
- 4:44it's done. And we can also update the
- 4:46branch by clicking on this button right
- 4:47here. So, once we've updated the branch,
- 4:50you can either click this again to open
- 4:51up a new tab to view the PR. But since
- 4:53we already have that open, we can just
- 4:55go over here and refresh. And hopefully
- 4:57in a second we'll see the updates, which
- 5:00we do down here. So you can see these
- 5:02changes that it's now made. And now what
- 5:04I'd like to do is view these changes
- 5:07locally. By the way, you can see that
- 5:08other commit that it made right here. So
- 5:10this was the change it just made. I'm
- 5:12going to view these changes locally in
- 5:14my browser now by grabbing this branch
- 5:17right here. I'm going to pull that down
- 5:18into my local repo and then preview in a
- 5:21browser. All right. Okay, so if we go to
- 5:23this page to see the form, scroll down
- 5:26and try to create a pair without adding
- 5:28any fields. We should see some
- 5:29validation errors. So we see those
- 5:32please enter ingredient A. B description
- 5:34must be at least 10 characters. Add at
- 5:36least one tag. All right, so let's fill
- 5:38this in. I'm going to say milk and then
- 5:40peanut butter. And you can see those
- 5:43errors have gone away in real time as we
- 5:45added these. Description must be at
- 5:47least 10 characters. Just say an awesome
- 5:50nutty drink. And again, the error went
- 5:53away. And then let's add one tag. And
- 5:56that can just be I don't know how to
- 5:57describe this. Awesome. Like so. Try to
- 6:00create the pair. And we get no error
- 6:02feedback because it's all filled in.
- 6:04Okay. So now I might want to merge this
- 6:06as normal, which I can quickly do. And
- 6:09then also we could delete the branch
- 6:11once that's done as well, just to clean
- 6:12up a little bit. And then back on
- 6:14Codeex, we could again archive this task
- 6:17if we're done with it. So then my
- 6:19friends, that's how we use the Codex
- 6:21review tool. First, we enable it on
- 6:22whatever repo we're working on from the
- 6:24settings and then we invoke a review by
- 6:26mentioning Codex followed by the word
- 6:28review. Next up, we're going to break
- 6:30away from the Codex cloud service for a
- 6:32little bit and we're going to look at
- 6:33the Codex CLI.
About this transcript
This page contains the full transcript of OpenAI Codex Tutorial #3 - Code Code Review by Net Ninja, generated from the public captions YouTube serves with the video. The transcript has 1,362 words across 183 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.