Watch (3:26)
Overview
Codex Web lets you connect directly to GitHub, create environments, and work in your browser against a repository. It can automatically generate pull requests or produce Git patches (git apply
/ git copy-patch
) you can apply locally.
Example Command
codex --dangerously-bypass-approvals-and-sandbox
⚠️ This flag will automatically apply changes without asking. It’s not generally recommended, but useful for demos and fast iteration.
Key Features
- Connect directly to GitHub
- Work in-browser inside a repo environment
- Generate diffs and PRs automatically
- Export changes as patches (
git apply
/git copy-patch
)
Full transcript (from the video)
Hey guys, this is going to be a quick
video on how Codex works. Uh, Codex web
in particular. So, essentially Codex now
you can now connect it to GitHub and
that's what our main focus is going to
be on.So, right now I'm already connected to
GitHub. You'd have to just connect your
GitHub or
I've already created a repository and
you have to initialize it.
I scroll all the way down and in the
bottom right I would click create
environment.
Essentially now you can code on your web
browser directly into your GitHub
repository and it finds the GitHub pull
request. So we'll do that right now.So right now we're connected and let is
do an example right fooar in Typescript
and Python console blog.So
here you go.
This creates this now uses the
environment and creates the code. It
tests it for you to whatever extent it
feels fit. uh often broken, not really
working. But in this silly example, you
can uh it'll succeed hopefully
and it'll take a little while and to
ensure everything is correct as much as
it can.And you can use this as a client for
your terminal.
and do it on your terminal. But it will
frequently ask you if it should apply or
not, which you can use dangerously.So codex dangerous allow. So you can
use this command which I'll put within
the description.And that'll allow you to
essentially it'll always ask you if um
should you allow this and if you allow
dangerous allow just run commands on
your machine. So probably not most uh
probably not recommended but yeah here
you go. So um after this situation was
done here within the environment it
creates a
pull request or it creates like a
basically a diff right of what your from
your main branch
and then you get three options. You can
create the draft PR. So we'll just show
you that
and there you go. So Codex literally
made you a pull request
where you can then see the difference
from your main branch. But let's say if
this doesn't work, you have two other
options, get apply and get copy patch,
which are essentially the same thing.
But let's use copy patch for now.
And we're going to go ahead and paste
that within here.So essentially what is a patch? A patch
is a different statement where you can
put it into a file and then use get
apply on it like this.