Skip to content
Projects

About

Codex CLI 多智能体并行调度配置参考模板——启用原生并行能力,实现主代理自主协调与子代理高效任务分发。Codex CLI Multi-Agent Parallel Scheduling Configuration Reference Template Enabling Native Parallelism for Autonomous Primary Agent Coordination and Efficient Sub-Agent Task Distribution.

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

codex-turbo

English | 简体中文

This repository is a set of personal Codex CLI configuration templates. Adhering to the principle of "Lightweight & Efficient," it aims to deeply leverage native CLI capabilities without introducing complex dependencies, enabling high-performance task orchestration through multi-agent collaboration. This setup is shared as a personal practice and is intended as a starting point to help you build your own ideal AI workflow.

💡 Not sure how to apply it? You can send this repository URL to an AI assistant (such as Claude Code CLI or Codex CLI) and let it help merge or create templates based on your needs.

Current compatible version: Codex CLI v0.134.0

Key Points

  • 💡 Parallel Workflow: multi_agent = true for maximum parallelism and minimal blocking design.
  • 🔧 System-level Contract: Inject agent collaboration standards via developer_instructions in config.toml, which takes priority over AGENTS.md.
  • 🧠 Native Memory: memories = true to automatically extract and consolidate conversation memory, improving context continuity.
  • 🎯 Interaction Style: Optimized to align with the Claude Code style, solving the "terminal reading disaster" (cramped text, path clutter, and squeezed visuals) of native Codex. Through forced line breaks, visual anchors, and concise brevity, chaotic logs are transformed into a structured, vivid, and intuitive dialog experience.

Display Effects

After applying the terminal-dialog-style skill, the console output structure becomes much clearer, supporting hierarchical execution feedback and well-organized layouts:

Terminal Output Effect 1

Terminal Output Effect 2

Core Files and Directories

.
├── README.md                  # Chinese documentation
├── README.en.md               # English documentation (this page)
    └── templates/
        ├── cn/                        # Chinese templates
        │   ├── AGENTS.template.md         # Principles and output style
        │   ├── config.template.toml       # System config template
        │   ├── agents/                    # Sub-agent configs
        │   │   ├── explorer.toml
        │   │   └── worker.toml
        │   └── skills/                    # Skill templates
        │       └── terminal-dialog-style/
        └── en/                        # English templates
            ├── AGENTS.template.md         # Developer principles & output style
            ├── config.template.toml       # System config template
            ├── agents/                    # Sub-agents config
            │   ├── explorer.toml
            │   └── worker.toml
            └── skills/                    # Skills template
                └── terminal-dialog-style/

Related Docs

Quick Start (5 Minutes)

Goal: Switch your Codex CLI to "parallel + templated" workflow.

1. Clone the repository

git clone <your-repo-url>
cd codex-turbo

2. Copy the template configuration

This repository provides the following template files:

File Purpose Target Location
templates/en/config.template.toml Core system configuration (including developer_instructions) ~/.codex/config.toml
templates/en/AGENTS.template.md Development principles and output style guide ~/.codex/AGENTS.md
templates/en/agents/ Sub-agent configuration (explorer, worker) ~/.codex/agents/
templates/en/skills/ Skill templates (such as terminal-dialog-style) ~/.codex/skills/

Complete config.toml with your own provider-specific keys and settings.

⚠️ Configuration Optimization Tip: Starting from v1.7.0, the redundant [agents.explorer] and [agents.worker] sub-agent configuration blocks have been completely deprecated and removed from config.toml (the CLI will automatically scan and load configurations from the agents/ directory). All sub-agent boundaries, selectors, and instructions are solely defined and maintained in their respective TOML files, making the main configuration file incredibly minimal.

First-time use (direct copy):

# Create target directory if needed
mkdir -p ~/.codex

# Copy the core configuration files
cp templates/en/AGENTS.template.md ~/.codex/AGENTS.md
cp templates/en/config.template.toml ~/.codex/config.toml

# Copy agent and skill directories
cp -r templates/en/agents ~/.codex/
cp -r templates/en/skills ~/.codex/

Existing configuration (manual merge): → See Migration Guide

Note: This document is adapted for Codex CLI v0.134.0. Field names may differ across versions or providers, so always confirm against your local CLI.

FAQ

Q1: Does enabling multi_agent always speed things up?

Not necessarily. Parallel execution only provides a clear benefit when tasks can be broken down independently and have no write conflicts.

Q2: What are the benefits of enabling sub-agents?

  • Context isolation — Sub-agents run in their own context, preventing the main agent's context from bloating.
  • Focused responsibility — Each sub-agent handles a single task, producing more precise output.
  • Parallel efficiency — Independent tasks can run concurrently, reducing overall elapsed time.

Q3: Will sub-agents increase my costs?

Yes. Enabling sub-agents may increase costs by 20%–30%, depending on project scale and task complexity.

Q4: How many sub-agents should I run?

The default settings are recommended. Observe quality and cost, then adjust gradually.

Q5: What if the sub-agent model differs from the main agent model?

Specify the model separately via the model field in worker.toml or explorer.toml.

Q6: Is this template suitable for everyone?

No. It is a starting-point template — best tailored progressively to your own or your team's conventions.

Disclaimer

This repository provides configuration methodology and template references, verified against Codex CLI v0.134.0.

Cost Note: Multi-agent mode may increase token usage by around 20% to 30%. Evaluate the cost based on your actual workload.

Risk Note: An LLM can still make wrong decisions and may delete data or modify code incorrectly. Recommended precautions:

  • Configure sandbox permissions and confirmation rules carefully.
  • Test in a controllable environment first.
  • Keep backups for important data.

You are responsible for any consequences caused by using these templates.

Explore related projects

Loading…