Loading video...

Video Failed to Load

Go Home

Codex 0.107.0 is here, and with it: FORKS🍴 This minor update includes the ability to fork your current chat history directly with custom multi agents with just a quick prompt. "Fork this session using n subagent(s)" This unlocks some interesting use-cases where you can launch multiple agents that retain...

42,880 views • 8 months ago •via X (Twitter)

66 Comments

█████'s profile picture
█████8 months ago

desperately need an /undo command.

am.will's profile picture
am.will8 months ago

It's actually really good about undoing things but you got to be really careful that it doesn't run git commands But I totally agree with you

Pablo Poo's profile picture
Pablo Poo8 months ago

Can you tell it what task must do each one and what reasoning level use? Like, one do security review, one for UX review and another one for best practices skills.

am.will's profile picture
am.will8 months ago

You sure can. You need to define custom agent roles in your config file first, and then you can have it call any combo you want. Codex is incredibly dynamic now. Enable multi agents in /experimental

Pablo Poo's profile picture
Pablo Poo8 months ago

Nice. Going to build a skill to build / customize the config files, so that way I can your pre-built agent roles to hire/fire agents on spot. Hope that I don’t ended up firing half the agents 😂

am.will's profile picture
am.will8 months ago

haha nice! i actually built one already

Pablo Poo's profile picture
Pablo Poo8 months ago

Any subagent roles catalog site? Like but for roles.

Mingta Kaivo 明塔 开沃's profile picture
Mingta Kaivo 明塔 开沃8 months ago

forking mid-session is huge. been doing this manually with Claude Code—copy context, spin up parallel agents. native support cuts ~5min of setup per branch

Boyuan (Nemo) Chen's profile picture
Boyuan (Nemo) Chen8 months ago

fork preserving full chat history is the right move. i run a multi-agent system and the 're-explain everything' tax on each new spawn was killing my flow. does fork keep tool call results or just the conversation?

am.will's profile picture
am.will8 months ago

it keeps the whole session

Vosky's profile picture
Vosky8 months ago

Does fork automatically creates worktree?

am.will's profile picture
am.will8 months ago

No but you canjust ask it to

daonono's profile picture
daonono8 months ago

When will the remote control be available?

am.will's profile picture
am.will8 months ago

my guess is less than 4 weeks.

Enrique Moreno's profile picture
Enrique Moreno8 months ago

I have burned 5% of my Pro quote in 1 hour. This is dangerous! :D

am.will's profile picture
am.will8 months ago

just 5%? you're not trying hard enough 😂😂

Enrique Moreno's profile picture
Enrique Moreno8 months ago

Im trying to contain myself! It is Monday still!

am.will's profile picture
am.will8 months ago

LOL nah, let it rain tokens

jeffscottworld's profile picture
jeffscottworld8 months ago

Just give us teams (put the fries in the bag)

am.will's profile picture
am.will8 months ago

😅 you can make teams now (i love fries)

jeffscottworld's profile picture
jeffscottworld8 months ago

Oh for some reason I thought you were on the codex team 🤦‍♂️

am.will's profile picture
am.will8 months ago

But you can make teams, its not quite as straightforward as Claude, but I could teach you how to do it. [agents] max_depth = 2 (or more if you're brave) then you can define teams and launch them by calling a "manager" (which would be a lvl1 subagent) which calls a "team" of defined subagents (which would be depth level 2 agents). You can definitely do this.

jeffscottworld's profile picture
jeffscottworld8 months ago

Mmmm but can they talk to each other? 👉👈 this is more like the shit rolls down hill model

am.will's profile picture
am.will8 months ago

yes they can talk to eachother, but they dont really communicate that often no matter what harness you use. even in claude, the parent agent gives the subagent a prompt and the subagent does the work, and returns a summary there's no meaningful 2 way conversation in either case the only time communication might happen in the sense that you're probably thinking is if the subagents hit a blocker.

René Rosengren's profile picture
René Rosengren8 months ago

That's really cool. Any indication of when this will be available in the IDE extension?

am.will's profile picture
am.will8 months ago

It's probably available now. Works in the App You can test it like this

René Rosengren's profile picture
René Rosengren8 months ago

🤩 I definitely have some use cases for this, thank you 😊

am.will's profile picture
am.will8 months ago

rock on man. get after it.

René Rosengren's profile picture
René Rosengren8 months ago

Will do 💪

David Thomas Nilsson's profile picture
David Thomas Nilsson8 months ago

@badlogicgames Codex implemented /tree except it's prompted?

Espen's profile picture
Espen8 months ago

Realtime transcription has been really nice! I've been using it a lot lately.

am.will's profile picture
am.will8 months ago

@Snixtp It's so nice. I have had transcription hotkeys for a while, so its nice not to have to do that anymore

Espen's profile picture
Espen8 months ago

Yup!

Crypto_OG's profile picture
Crypto_OG8 months ago

Can you give me best setup for codex spark

am.will's profile picture
am.will8 months ago

Read this!

0xmaddy | Techie's profile picture
0xmaddy | Techie8 months ago

Session forking for parallel implementation strategies is the killer use case here. A/B testing different architectural approaches with shared context is something I've wanted for months.

artem's profile picture
artem8 months ago

lol I wanted to ask for this feature yesterday and today it is already implemeted

am.will's profile picture
am.will8 months ago

@ulanyde That is fasssssst

Raj Patil's profile picture
Raj Patil8 months ago

this feature is insane 🤯 can't wait to try it out!

darshil's profile picture
darshil8 months ago

context forking should also help the main agent use subagents potentially much more reliably

am.will's profile picture
am.will8 months ago

I honestly dont think they're related but i have found that codex calls them SUPER reliably now. What are you running into exactly?

darshil's profile picture
darshil8 months ago

no issues, i just think this can help with multilayer subagents (eg sub-sub-sub-subagents) to be more aligned

am.will's profile picture
am.will8 months ago

fasho.

Nico Cosmic 🚀's profile picture
Nico Cosmic 🚀8 months ago

Wow my favourite feature from the pi coding harness is now available in codex 🥳

am.will's profile picture
am.will8 months ago

pi is amazing.

hyukki's profile picture
hyukki8 months ago

This is incredible. Great list of use case ideas.

am.will's profile picture
am.will8 months ago

Thanks :) That's my goal with these breakdowns is to really explain what's going on under the hood. Just saying "forks now available" isn't enough to visualize the utility.

Slopware Engineer's profile picture
Slopware Engineer8 months ago

They want me to use codex app but keep releasing all the juicy features in the CLI... Do these translate to codex app? Can I tell codex app the same thing since it's using my CLI under the hood?

am.will's profile picture
am.will8 months ago

@slopwareindy Yeah this works in the app too!

Slopware Engineer's profile picture
Slopware Engineer8 months ago

Oh interesting. When do you think rewind will be coming to codex app? It's so annoying loading the CLI just to do it and then having to restart codex app for it be recognized in the app.

United Records's profile picture
United Records8 months ago

wow

Felipe Coury 🦀's profile picture
Felipe Coury 🦀8 months ago

Should be very positive for Windows users that use Windows Terminal as well. A fix for the diff background issue we had on Windows Terminal is in. On top of that, you can add your custom themes and we'll support their custom diff backgrounds as well!

albs—'s profile picture
albs—8 months ago

can we use subagents with different models yet

am.will's profile picture
am.will8 months ago

Yes you can

LightShift Studio's profile picture
LightShift Studio8 months ago

Hey there!

am.will's profile picture
am.will8 months ago

Hey hey!

Arun's profile picture
Arun8 months ago

I have been forking manually, like a handoff. Not with subagents. I assumed it creates a new worktree and the code doesn’t merge back into the main thread.

am.will's profile picture
am.will8 months ago

It doesn't merge it back into the main thread but that's different than a work tree

evie's profile picture
evie8 months ago

hope they make my idea: while agent doing your task, it will ask you many questions as it can and it will continue to loop and do what you picked from the options

am.will's profile picture
am.will8 months ago

That is more or less what plan mode does now, but it's not building it in real time. Ideally you really want to zoom out and look at the whole plan before you go and start implementing things. That said you could still do exactly what you're asking about right now through the use of skills they don't need to implement anything for you to accomplish this. You can turn on the ask question tool and build a skill to do exactly that

⛴ younès's profile picture
⛴ younès8 months ago

available in Codex app?

am.will's profile picture
am.will8 months ago

Should be, I'll test it later for you. But you could just turn on multi-agents and try it if you want. The litmus test how you can know it's working is just ask it what the first message in the thread says, it should be able to tell you even though it doesn't show the history

Ray's profile picture
Ray8 months ago

can you please make ctrl+v an image from clipboard to the chatbox a thing ? It's the only thing that's stopping me using codex scaffold.

am.will's profile picture
am.will8 months ago

@ReyArtAge Hey Rey, I don't work there, but you can already do this for quite a long time :)

am.will's profile picture
am.will8 months ago

Yeah its really useful!

AKR's profile picture
AKR8 months ago

For this to work, should I have the "Multi - Agents" feature enabled?

Related Videos

I asked Garry Tan how to use meta prompting to get better at AI: "My partners at YC Jared Friedman and Pete Koomen showed me how to do this. You can take almost anything that you do all the time and just drop it into a context window. And then say, “Here’s a bunch of inputs and outputs." And maybe you also add a bunch of notes. And then you tell it, “Write me a prompt that can act as an agent that takes this input and makes this output over here.” You can do this for almost any type of knowledge work. And you can even introspect. "What are things you notice that I did to convert this from the input to the output?”. And then you can just start using the prompt. Initially, it’s going to suck. Because it’s just not that smart yet. But what’s funny is now, I also use it to Iterate my writing. You can be very direct, "I would never say that", "Don’t say it like this", or "Oh, you used the long word there, use the short word". Just speak to it conversationally. And then when you're happy with the output, you can use that new output to make a new prompt. "Based on this conversation, give me a better initial prompt that incorporates all the things we talked about." And you can do this with literally everything. And in theory, there’s so much it applies to that people do day-to-day. You could use it for tweets. You could use it for editing podcasts. You can use it for pretty much everything. I have a folder of prompts that I use all the time. My YouTube prompt is on v27 or something. I'll go through this process with all the different max models. I'll use GPT 5.2 Pro. I’ll use Grok. I'll use Claude. Then, I’ll take all the outputs from all the models and put them into Claude and say "Here’s my prompt, here’s the output from four LLMs, including yourself. Rate each response and tell me what the pros and cons of each approach are." And I usually say "give it to me in numbered form". And then you can agree with one, disagree with two, tell it three is this or that. And then after that, you say given all of this, synthesize it."

The Peel

51,632 views • 8 months ago

New Course: ACP: Agent Communication Protocol Learn to build agents that communicate and collaborate across different frameworks using ACP in this short course built with IBM Research's BeeAI, and taught by Sandi Besen, AI Research Engineer & Ecosystem Lead at IBM, and Nicholas Renotte, Head of AI Developer Advocacy at IBM. Building a multi-agent system with agents built or used by different teams and organizations can become challenging. You may need to write custom integrations each time a team updates their agent design or changes their choice of agentic orchestration framework. The Agent Communication Protocol (ACP) is an open protocol that addresses this challenge by standardizing how agents communicate, using a unified RESTful interface that works across frameworks. In this protocol, you host an agent inside an ACP server, which handles requests from an ACP client and passes them to the appropriate agent. Using a standardized client-server interface allows multiple teams to reuse agents across projects. It also makes it easier to switch between frameworks, replace an agent with a new version, or update a multi-agent system without refactoring the entire system. In this course, you’ll learn to connect agents through ACP. You’ll understand the lifecycle of an ACP Agent and how it compares to other protocols, such as MCP (Model Context Protocol) and A2A (Agent-to-Agent). You’ll build ACP-compliant agents and implement both sequential and hierarchical workflows of multiple agents collaborating using ACP. Through hands-on exercises, you’ll build: - A RAG agent with CrewAI and wrap it inside an ACP server. - An ACP Client to make calls to the ACP server you created. - A sequential workflow that chains an ACP server, created with Smolagents, to the RAG agent. - A hierarchical workflow using a router agent that transforms user queries into tasks, delegated to agents available through ACP servers. - An agent that uses MCP to access tools and ACP to communicate with other agents. You’ll finish up by importing your ACP agents into the BeeAI platform, an open-source registry for discovering and sharing agents. ACP enables collaboration between agents across teams and organizations. By the end of this course, you’ll be able to build ACP agents and workflows that communicate and collaborate regardless of framework. Please sign up here:

Andrew Ng

105,894 views • 1 year ago

Most AI coding setups right now look something like this: one agent in a terminal, another in a browser tab, a chat window somewhere else, and you in the middle copy-pasting diffs like a very tired air traffic controller. JetBrains just launched something aimed right at that mess. It's called JetBrains Air, and it lives inside their IDEs. The short version: Air lets you direct multiple coding agents, run their tasks in parallel, and review their work without ever leaving your IDE. Here's what stood out to me: 👇 1. You pick the agents. Air isn't tied to a single agent or provider. You can use the ones you already like. That matters more than it sounds, because the "best" coding agent changes every few months, and nobody wants to rebuild their whole workflow each time. 2. Parallel work without losing track. You can run several agent sessions at once, even across different projects. Air shows you where your attention is needed, so you're not hopping between tabs to find out which agent is stuck. 3. You stay in control. You can follow what each agent is doing, give it input, inspect the changes, and review the output before accepting anything. Nothing lands in your codebase just because an agent felt confident. 4. The agents get IDE smarts too. This is the part I find most interesting. JetBrains IDEs already have great code navigation, refactoring, testing, and debugging. With Air, both you and your agents work with that context. So the agents aren't guessing blind inside a chat box, and when something needs a human, the real tools are right there. The bigger idea here is that agents become part of your development workflow instead of a separate chat you keep switching to. There's also a nice bonus. For a limited time, JetBrains is offering Junie Lite for free (fair use applies). It's their own coding agent paired with a highly efficient model. It isn't pitched as a frontier-level agent. Think of it as a solid, free baseline for trying out Air and running everyday tasks. Air works in any JetBrains IDE and is in early access right now. If you write code with agents, give it a try: #ad

Mushfiq Sajib

40,728 views • 1 month ago

Subagents are the biggest cause of AI failures In most harnesses: 1. Main agent writes a summary of what it knows 2. Subagent starts from that summary only, and makes assumptions 3. Subagent works and sends back a new summary of what it did Same flaw as compaction: all summaries are lossy. This is how your assistant makes emails you never wanted, or purchases what you told it just to get the price of So I tried something new: checkpoint agents The initial agent has complete context of what needs to be done. And that input is already cached Fork the session where it is. Send the fork ahead to do the task and it will do exactly what the main agent would have done; their context is identical What is even better is when the fork finishes, the cache of the main agent is kept warm by the subagent (they share the same prefix) I measured it on a 137k-token session with Opus 5.5: → Main agent does it on its own: 67 s, $0.38, context +8-17k → Checkpoint: 117 s, $0.68, context +2k → Classic subagent: 123 s, $0.57, context +4-5k But here is what I found: avoiding large input is even more important than keeping cache. And most subagent tasks were done better either in series with retrieval, or split up to be parallel over fresh sessions from the start I do not think there is a place for subagent delegation at all. There should either be a super-agent that orchestrates and does no work, or a long running agent that can retrieve from previous sessions, not a worker that completes tasks partially and delegates the rest to other workers Don't design harnesses based on our assumptions of human behavior

Alexander Yue

217,671 views • 4 days ago