MobileVibe MobileVibe Blog
Agents

Running Multiple Codex Agents in Parallel Folders

By · August 5, 2026 · 10 min read

Running Multiple Codex Agents in Parallel Folders

Running Multiple Codex Agents in Parallel Folders

Quick answer

Yes, you can run multiple Codex agents in parallel folders—each tied to its own conversation, folder, and terminal session. This lets you work on separate features, experiments, or refactors simultaneously while monitoring and approving each agent independently from your phone.

Key takeaways

  • One agent per folder/lane: each Codex conversation runs in its own directory (often a git worktree or clone), keeping history and state isolated.
  • Parallel execution: multiple agents work simultaneously on different tasks without blocking each other.
  • Independent approval: you can approve, pause, or resume one agent without affecting the others.
  • Rate limits are per-API-key: if one agent hits a quota, others on the same key may slow or pause; separate keys isolate limits.
  • Mobile monitoring: MobileVibe’s dashboard shows all active conversations, what’s blocked, what’s running, and what needs input—so you can triage from anywhere.
  • Auto-approve where safe: set per-conversation rules to let trusted lanes run hands-off while keeping risky changes manual.

Why Parallel Codex Agents Beat Sequential Coding

When you direct AI coding agents, waiting for one task to finish before starting the next wastes time. Multiple Codex agents running in parallel let you:

  • Ship faster: a refactor, a new feature, and a bug fix can all progress at once.
  • Experiment cheaply: spin up a throwaway worktree, ask an agent to try an approach, and keep your main branch clean.
  • Reduce context-switching: each agent stays focused on one problem; you don’t pollute a single conversation with unrelated tasks.
  • Triage from your phone: see which agents are blocked, which are safe to let run, and which diffs need a real desktop review—all from a mobile-friendly dashboard.

Sequential coding made sense when you typed every line. Parallel agent execution makes sense when you’re orchestrating multiple lanes of work and checking in remotely.


Setting Up Codex in Multiple Folders and Workstreams

The cleanest pattern: one folder per agent conversation. Common setups:

  1. Git worktrees: git worktree add ../feature-x origin/main creates a separate checkout. Start a Codex agent there; it sees only that worktree’s files and history.
  2. Separate clones: clone the same repo into ~/projects/app-main, ~/projects/app-experiment, and ~/projects/app-refactor. Each gets its own agent.
  3. Unrelated projects: run Codex in ~/work/api, ~/work/frontend, and ~/work/docs simultaneously.

MobileVibe calls these “lanes” or “workstreams”: each conversation is tied to a folder, an agent (Codex), and a surface (the Codex CLI or IDE extension). When you open MobileVibe on your phone, you see an inbox of conversations—one per lane—with status, last activity, and any blocks.

Practical setup:

  • Install the Codex CLI (npm install -g @openai/codex-cli or equivalent) or use the Codex IDE extension in VS Code.
  • Navigate to the first folder: cd ~/projects/feature-a.
  • Start a Codex conversation: codex "Add user authentication".
  • Open a second terminal, navigate to the second folder: cd ~/projects/feature-b.
  • Start another Codex conversation: codex "Refactor database layer".
  • Repeat for as many lanes as you need.

Each agent runs in its own process, its own folder, and its own conversation. They don’t share state unless you explicitly copy files or merge branches.


Keeping Conversations Separate: One Agent Per Lane

Codex conversation history is tied to the folder and session. If you start two Codex agents in two folders, they maintain separate histories. This is a feature: you don’t want a refactor agent seeing the context of a feature agent, and vice versa.

Key points:

  • Folder isolation: each Codex session reads and writes files in its own directory. It doesn’t see other folders’ changes unless you merge or copy.
  • Conversation identity: MobileVibe tracks each conversation by folder path, agent type, and surface. If you start Codex in ~/projects/feature-a, that’s one conversation. Starting Codex in ~/projects/feature-b is a separate conversation.
  • No cross-talk: agents don’t share memory or context. If you want one agent to know about another’s work, you merge branches or manually share files.

Practical tip: name your folders clearly (feature-auth, refactor-db, experiment-ui) so you can tell them apart in MobileVibe’s dashboard. The dashboard shows folder path, agent type, and last activity—so you know which lane is which.


Monitoring and Approving Multiple Agents from Your Phone

This is where multiple Codex agents and mobile control shine. You’re away from your desk; three agents are running. One hits a rate limit, one needs approval for a file change, and one is still working. MobileVibe’s dashboard shows:

  • Blocked: “Codex in feature-auth needs approval for src/auth.ts.”
  • Running: “Codex in refactor-db is editing models/user.js.”
  • Paused: “Codex in experiment-ui hit a quota; waiting.”

You tap the blocked conversation, review the diff, and approve or reject. The other two lanes keep running (or waiting) independently. You don’t need to SSH into your machine, open a terminal, or juggle multiple windows.

Approval flow:

  1. MobileVibe sends a push notification: “Codex needs approval in feature-auth.”
  2. You open the app, see the conversation, and review the proposed change.
  3. Tap “Approve” or “Reject.” The agent continues or stops.
  4. The other agents in other folders are unaffected.

Monitoring flow:

  • The dashboard is an inbox: what needs attention, what’s safe to let run, what changed recently.
  • Each conversation shows its status, last message, and any blocks.
  • You can open a conversation to see history, diffs, or terminal output (where supported).

This is the core MobileVibe workflow: remote triage. You’re not coding from your phone; you’re unblocking agents, approving safe changes, and pausing risky ones.


Switching Between Active Codex Sessions Without Losing Context

Codex parallel execution means you don’t “switch” between agents—they all run at once. But you do switch your attention between conversations. MobileVibe makes this easy:

  • Dashboard view: see all active conversations at a glance.
  • Tap to open: select a conversation to see its history, status, and any pending actions.
  • Resume from phone: if an agent is paused or waiting, you can send a follow-up message to continue it.
  • Open in surface: if you need the full IDE or terminal, MobileVibe can open the conversation in its native surface (Codex CLI or IDE extension) on your desktop.

Context is preserved per conversation. Each Codex agent remembers its own history, folder, and task. You’re not losing context when you switch—you’re just looking at a different lane.

Practical example:

  • You’re reviewing the feature-auth conversation on your phone. It’s waiting for approval.
  • You approve it, then switch to the refactor-db conversation to check its progress.
  • Both agents keep their own history. You didn’t interrupt or confuse either one.

Important: Codex IDE extension and Codex CLI are separate surfaces. If you start a conversation in the CLI and want to continue it in the IDE (or vice versa), you may need to copy or fork history. MobileVibe helps by showing which surface a conversation is tied to, but full cross-surface resume is not always seamless. For parallel lanes, it’s usually cleanest to pick one surface per lane and stick with it.


Auto-Approve Patterns for Safe, Hands-Off Parallel Runs

When you run multiple Codex agents, you don’t want to approve every single file change across every lane. Auto-approve lets you set rules per conversation:

  • Trusted lanes: a refactor in a worktree you plan to review later? Auto-approve file edits so the agent can finish while you’re away.
  • Risky lanes: a new feature touching auth or payments? Keep manual approval so you review every change.
  • Read-only lanes: an agent analyzing code or generating a report? Auto-approve reads and writes to a scratch folder.

How to set auto-approve (where supported):

  1. Open the conversation in MobileVibe.
  2. Tap the settings or approval icon.
  3. Choose “Auto-approve file edits” or “Auto-approve terminal commands” (if available for Codex).
  4. The agent proceeds without waiting for you.

Safety tips:

  • Use auto-approve in throwaway worktrees or branches you’ll review before merging.
  • Keep manual approval for production code, secrets, or destructive commands.
  • Check the dashboard periodically: even auto-approved lanes can hit rate limits or errors.

Codex-specific note: auto-approve support depends on the Codex surface and MobileVibe’s integration. The CLI may support command-level approval; the IDE extension may support file-level approval. Check MobileVibe’s docs or the conversation settings to see what’s available.


Handling Rate Limits and Quota Across Multiple Agents

Rate limits are per API key, not per agent. If you run three Codex agents on the same OpenAI API key, they share the same quota. If one agent burns through requests, the others may slow or pause.

Strategies:

  1. Separate API keys: use different keys for different lanes. This isolates limits but costs more.
  2. Prioritize lanes: run high-priority agents first; pause low-priority ones if you hit a limit.
  3. Monitor usage: MobileVibe shows when an agent hits a quota or rate limit. You can pause it, switch to another lane, or wait for the limit to reset.
  4. Stagger starts: don’t start all agents at once. Start one, let it make progress, then start the next.

What happens when one agent hits a limit:

  • The agent pauses or returns an error.
  • MobileVibe shows the conversation as “Paused” or “Blocked” with a reason (e.g., “Rate limit exceeded”).
  • Other agents on the same key may also slow or pause, depending on the provider’s policy.
  • You can resume the paused agent later, or switch to a different lane.

Practical tip: if you’re running codex parallel execution across many lanes, consider a paid OpenAI plan with higher limits, or use separate keys for critical vs. experimental lanes.


FAQ

Can I run the same Codex agent in multiple folders at the same time?

Yes. Each folder gets its own Codex conversation and process. “The same agent” means Codex (the AI model), but each instance is independent—separate history, separate files, separate terminal. You’re not running one agent in two places; you’re running two agents (both Codex) in two folders.

How do I keep conversation history separate across parallel Codex lanes?

Codex history is tied to the folder and session. Start each agent in a different folder, and they maintain separate histories automatically. MobileVibe tracks each conversation by folder path, so you see them as distinct lanes in the dashboard. Don’t start multiple agents in the same folder—they’ll conflict.

What happens if one Codex agent hits a rate limit while others are running?

The agent that hit the limit pauses or errors. If all agents share the same API key, the others may also slow or pause, depending on OpenAI’s rate-limit policy. MobileVibe shows the paused conversation with a reason. You can wait for the limit to reset, switch to another lane, or use a separate API key for that agent.

Can I approve or pause one agent without affecting the others?

Yes. Each conversation is independent. Approving, pausing, or resuming one agent doesn’t touch the others. MobileVibe’s dashboard lets you manage each lane separately—approve a diff in feature-auth, pause experiment-ui, and let refactor-db keep running.

How do I resume a paused Codex conversation from my phone?

Open the conversation in MobileVibe, review its last state, and send a follow-up message (e.g., “Continue” or a new instruction). The agent picks up where it left off. If the conversation is tied to the Codex CLI, MobileVibe can send the message to the terminal session on your desktop. If it’s tied to the IDE extension, you may need to open the IDE to resume (or use MobileVibe’s “Open in surface” feature if available).

Should I use separate API keys for each parallel Codex agent?

Optional but useful. Separate keys isolate rate limits and quota—if one agent burns through requests, the others aren’t affected. The trade-off: more keys to manage and potentially higher cost. For most users, one key is fine; just monitor usage and pause low-priority lanes if you hit a limit. For high-throughput parallel work, separate keys give you more control.


Running multiple Codex agents in parallel folders is how you ship faster, experiment cheaper, and triage remotely. Each lane is a separate conversation, folder, and task—isolated, independent, and mobile-controllable. MobileVibe’s dashboard shows what’s blocked, what’s running, and what needs your attention, so you can approve, pause, or resume agents from your phone without losing context or interrupting other lanes.

Ready to orchestrate multiple agents from anywhere? Try MobileVibe free and turn your phone into a command center for parallel Codex workstreams. Start tasks, monitor progress, and ship work—even when you’re away from your desk.

Related

Ship real work from your phone

Start tasks, monitor AI agents, and stay in control from anywhere.

Start for Free →