codex-astra-luna-orchestrator README

项目的 README,来自 github.com/donvito/codex-astra-luna-orchestrator。合并为一个 markdown 文件:README.md。

Codex Sol/Astra Orchestrator + Luna Subagents

Install a Codex profile with GPT-6 Astra, GPT-6.1 Sol, or GPT-6 Luna as the orchestrator, GPT-6 Luna execution subagents, and an independent reviewer.

The Sol profiles use gpt-6.1-sol for both the orchestrator and reviewer.

Orchestration topology

The diagram shows the Astra (Pro) and Sol orchestrators. Plus uses a Luna root, as shown in the profile table below. Execution roles use GPT-6 Luna; the reviewer uses Astra for Pro/Plus and Sol for Sol profiles.

           GPT-6 Astra / GPT-6.1 Sol
             root / orchestrator
                      |
      +---------------+---------------+
      |               |               |
   explorer          worker         researcher
  GPT-6 Luna       GPT-6 Luna       GPT-6 Luna
      |               |
      +-------+-------+
              |
           tester
         GPT-6 Luna
              |
          reviewer
      GPT-6 Astra / GPT-6.1 Sol
              |
              v
           root agent
      integrate + verify

Setup

  1. Clone this repository and enter it:

    git clone https://github.com/donvito/codex-astra-luna-orchestrator.git
    cd codex-astra-luna-orchestrator
    
  2. Run the installer for your platform:

    macOS/Linux:

    ./setup.sh
    

    Windows PowerShell:

    powershell -ExecutionPolicy Bypass -File .\setup.ps1
    

    PowerShell 7:

    pwsh -File .\setup.ps1
    
  3. When prompted, enter an existing target repository other than this one, choose a profile by number or name (Enter selects Pro), and confirm which components to install. For example:

    Target repository path: ../my-project
    Select Profile [1-6] (default 1): 5
    

The installer copies the selected configuration to .codex/, its skill to .agents/, and project instructions to AGENTS.md. Existing component files are updated only after confirmation; existing AGENTS.md content is preserved. Codex loads project-scoped configuration only for trusted projects.

Installed target project

If you install all three components into ../my-project, the installer adds these paths alongside the project's existing files:

my-project/
├── .codex/
│   ├── config.toml
│   └── agents/
│       ├── explorer.toml
│       ├── researcher.toml
│       ├── reviewer.toml
│       ├── tester.toml
│       └── worker.toml
├── .agents/
│   └── skills/
│       └── astra-orchestrator/
│           └── SKILL.md
└── AGENTS.md

profiles/<profile>/codex/ becomes .codex/, and profiles/<profile>/agents/ becomes .agents/. The root AGENTS.md is copied to the target, or its instructions are appended if that file exists.

How to use the skill

From the target repository, launch Codex CLI. For the example above:

cd ../my-project
codex

For complex work, Codex may select the skill automatically, or you can invoke it explicitly:

$astra-orchestrator
Implement the invoice export endpoint. Use the explorer to map the path,
a worker to implement it, and the tester and reviewer to verify it.

The skill keeps the astra-orchestrator name in every profile so the shared AGENTS.md works; the Sol profiles use Sol according to their configuration.

Profiles

Choice Profile Root Execution roles Reviewer Concurrent subagents
1 (default) pro Astra medium Luna max Astra low 4
2 plus Luna max Luna medium Astra low 4
3 pro-max-2-subagents Astra medium Luna max Astra low 2
4 plus-max-2-subagents Luna max Luna medium Astra low 2
5 GPT6-SolMax-LunaMax Sol max Luna max Sol max 4
6 GPT6-SolMedium-LunaMax Sol medium Luna max Sol medium 4

All models above are GPT-6. Execution roles are explorer, worker, tester, and researcher; named roles pin their models and reasoning levels independently of the default subagent settings. Each ready-to-copy profile lives under profiles/<profile>/.

For manual project setup, copy the selected profile's codex/ and agents/ to the target repository as .codex/ and .agents/, and add this repository's AGENTS.md. For personal/global setup, copy its codex/agents/ into ~/.codex/agents/, its agents/skills/astra-orchestrator/ into ~/.agents/skills/, and merge, rather than replace, its codex/config.toml settings into ~/.codex/config.toml. Do not overwrite other existing Codex settings.

Key directory structure

.
├── profiles/
│   ├── pro/
│   ├── plus/
│   ├── pro-max-2-subagents/
│   ├── plus-max-2-subagents/
│   ├── GPT6-SolMax-LunaMax/
│   └── GPT6-SolMedium-LunaMax/
├── guides/
├── scripts/
│   └── token_usage.py
├── tests/
│   ├── test_profiles.py
│   └── test_token_usage.py
├── AGENTS.md
├── setup.sh
├── setup.ps1
├── README.md
└── LICENSE

Each profile contains codex/config.toml, codex/agents/*.toml, and agents/skills/astra-orchestrator/SKILL.md.

Guides

License

Licensed under the Apache License 2.0.

codex-astra-luna-orchestrator (donvito/codex-astra-luna-orchestrator)

正在搜索数据库…

这是什么?这是一套可配置的 Codex 设置:让 GPT-6 Astra 担任根编排器和独立审查者,而 GPT-5.6 Luna 作为执行子智能体(explorer、worker、tester、researcher)的默认固定模型运行。
这是独立应用,还是 Codex 的配置层?它本身不是应用,而是一个安装器:把 .codex 配置/角色档案 TOML 文件、一个 .agents 技能文件夹和一个 AGENTS.md 文件写入现有的目标仓库,用来配置 OpenAI Codex CLI 的多智能体编排。
怎么把它安装到我的项目里?克隆本仓库,然后在克隆出的文件夹里,于 macOS/Linux 运行 shell 安装程序,或在 Windows 运行 PowerShell 安装程序,并将其指向你现有目标仓库的绝对或相对路径。
使用它需要特定的 Codex 套餐吗?需要。安装器会询问你用的是 Codex Plus 还是 Pro 套餐,并为两者配置不同的模型/推理分配:Pro 让 Astra 以中等推理担任编排器,Luna 以最高推理负责执行;Plus 则反过来,Luna 以最高推理编排、以中等推理执行。
更新或合并这套配置时需要注意什么?更新现有安装时,你必须连同 config.toml 一起刷新四个 Luna 角色文件,否则旧的固定推理力度会覆盖新套餐的默认值;对于全局安装,如果你已经配置了 MCP 服务器或其他提供商,应当手动合并设置,而不是覆盖现有配置。
我可以更改每个智能体角色所用的模型吗?可以。每个角色文件(explorer、worker、tester、researcher、reviewer)都明确固定了自己的模型,你也可以删除模型/推理覆盖设置,让角色回退到 [agents] 的默认配置。
我怎么跟踪这套编排设置消耗了多少 token?仓库附带一个脚本 scripts/tokenusage.py,它读取 Codex 写在 ~/.codex/sessions 下的运行日志,按线程、角色和模型报告用量,还包括你 5 小时和 7 天速率限制窗口的变化。
怎么手动调用这个编排技能?当任务与其描述匹配时,Codex 可以自动选中 astra-orchestrator 技能,你也可以从 Codex CLI 或 IDE 扩展中显式调用它。
想省钱运行和处理大型代码库,分别建议怎么调?想跑得便宜/快:调低 Astra 的推理,把 Luna 降到低/中档,并用 3-4 个并发线程;面对更大的代码库:把 Astra 的推理调向高档,且只在任务真正相互独立时使用 6-8 个并发线程。
作者
donvito
大小
0.1 MB
星标
1.7K
时长
2个月
提交 · 90 天