by lbc9168
Antigravity Skill to orchestrate local OpenAI Codex CLI as a sandboxed coding worker while Gemini/Opus acts as Architect & Reviewer
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/lbc9168/antigravity-codex-workerGuides for using ai agents skills like antigravity-codex-worker.
codex exec) as a sandboxed coding worker while you act as Architect and Code Reviewer.
Activate this skill whenever the user asks to design a plan/spec and delegate coding, refactoring, bug fixing, or secondary codebase research to Codex CLI / GPT CLI (e.g., "让 Codex 写代码", "设计方案派发给 Codex/GPT", "用架构师+Codex 模式", "delegate implementation to Codex").When this skill is active, operate strictly in an Architect + Worker + Reviewer split:
codex exec): Sandboxed Implementation / Research Worker executing inside the workspace.edit_file or write_file. You only author task specification files inside <workspace>/.codex-tasks/ (and initialize Git if the user asks). All production/test code changes must be performed by Codex CLI and verified by you.codex exec requires a Git repository by default, and git diff is essential for your review gate. Before dispatching a task in a workspace:
git rev-parse --is-inside-work-tree (sandboxed) in the workspace.git status --short so you know if there are pre-existing uncommitted changes before Codex starts.run-codex.ps1 / run-codex.sh automatically adds .codex-tasks/ to .git/info/exclude so task files never pollute git status or the project's committed .gitignore.git init-ed with zero commits (git rev-parse --verify HEAD fails), ask or create an initial baseline commit first so git diff works cleanly.git init -b main, git add ., git commit -m "chore: initial baseline" — recommended), or pass -SkipGitCheck / --skip-git-check if they explicitly prefer running without Git../resources/:
<workspace>/.codex-tasks/<task-id>-spec.md (e.g., .codex-tasks/001-auth-middleware-spec.md).git commit, git push, git reset --hard, or git checkout -- so every modification remains visible in the working tree for your inspection.Resolve <skill-dir> as the directory containing this SKILL.md file, then invoke the launcher matching the host OS:
Windows (pwsh): run-codex.ps1
macOS / Linux (bash): run-codex.sh
Execution Rule: Because codex reads authentication from ~/.codex and connects to the OpenAI API over the network, set WaitMsBeforeAsync: 10000 when calling run_command (and if your run_command tool schema exposes a BypassSandbox parameter, set BypassSandbox: true ONLY on this dispatch command while keeping your own inspection/review commands sandboxed).
Async Handling: Coding tasks often take 30–180 seconds. If the command moves to background after 10 seconds, stop calling tools and wait — the system automatically wakes you when the background task finishes. Never poll in a loop.
Command Shape (resolve <skill-dir> and <workspace-abs-path> to concrete literal paths — avoid $(...) or shell variables so user approval prefix-matches cleanly):
# Windows (PowerShell) — Implementation or Bugfix:
pwsh -NoProfile -ExecutionPolicy Bypass -File "<skill-dir>/scripts/run-codex.ps1" -WorkDir "<workspace-abs-path>" -SpecFile "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" -SummaryFile "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" -Sandbox workspace-write
# Windows (PowerShell) — Read-only Research / Audit:
pwsh -NoProfile -ExecutionPolicy Bypass -File "<skill-dir>/scripts/run-codex.ps1" -WorkDir "<workspace-abs-path>" -SpecFile "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" -SummaryFile "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" -Sandbox read-only
# macOS / Linux (Bash):
bash "<skill-dir>/scripts/run-codex.sh" --work-dir "<workspace-abs-path>" --spec-file "<workspace-abs-path>/.codex-tasks/<task-id>-spec.md" --summary-file "<workspace-abs-path>/.codex-tasks/<task-id>-summary.md" --sandbox workspace-write
Optional flags supported by run-codex.ps1 (and --kebab-case equivalents in run-codex.sh):
-Model "<model-slug>" (--model): Overrides Codex's default model for this run. Only set when the user asks for a specific model; omit otherwise to use ~/.codex/config.toml default.-ReasoningEffort "<level>" (--reasoning-effort): Overrides Codex's thinking effort (minimal, low, medium, high, xhigh, max, ultra) via -c model_reasoning_effort=.... Set when the user requests a specific thinking intensity; omit otherwise to use ~/.codex/config.toml default.-ResumeLast (--resume-last): Resumes the most recent Codex session in -WorkDir (use for Stage 5 rework).-SkipGitCheck (--skip-git-check): Allows execution outside a Git repository when explicitly requested.-Image "<file-path>" (--image): Attaches reference screenshot/mockup file(s) to the prompt.Never trust Codex's summary at face value. Perform all three checks yourself (in Standard Sandbox Mode):
<workspace>/.codex-tasks/<task-id>-summary.md to understand Codex's claimed changes, test runs, and caveats.git status --short (check for untracked files or unexpected deletions).git diff (and read new untracked files with read_file) to review every changed line against your Stage 2 spec:
<workspace>/.codex-tasks/<task-id>-rework-1.md.-ResumeLast (--resume-last), pointing -SpecFile to the rework file and -SummaryFile to <task-id>-rework-1-summary.md.git commit.See how antigravity-codex-worker compares with popular alternatives.
Use Gemini / Claude Opus in Google Antigravity as your Chief Architect & Code Reviewer, while delegating sandboxed implementation to your local OpenAI Codex CLI (codex exec) — zero MCP bridges or third-party middleware required.
无需任何第三方桥接插件或 MCP Server:在 Google Antigravity 中用 Gemini / Claude Opus 担任架构师与代码审查员,通过标准化任务契约指挥本地 OpenAI Codex CLI 在沙盒中写代码并完成闭环验收。
Different frontier models excel at different stages of software engineering. antigravity-codex-worker establishes a clean Architect + Worker + Reviewer separation inside Antigravity using only native Agent Skills and codex exec headless mode:
.codex-tasks/<id>-spec.md) using strict scope templates.run-codex.ps1 (Windows) or run-codex.sh (macOS/Linux) pipes the spec via UTF-8 stdin into codex exec --sandbox workspace-write (avoiding shell-quoting truncation or encoding issues) and captures Codex's report via --output-last-message.git status, line-by-line git diff, and runs local test/build suites in its own sandbox rather than trusting the worker's summary blindly.codex exec resume --last.Antigravity (Gemini / Opus) Workspace (.codex-tasks/) OpenAI Codex CLI
─────────────────────────── ───────────────────────── ────────────────
1. Architecture & Spec Design ────> 001-feature-spec.md
2. Invoke run-codex.ps1/.sh ──── UTF-8 stdin pipe ──────────────> codex exec (workspace-write)
├─ Edits files in workspace
001-feature-summary.md <── (-o) ── └─ Writes structured summary
3. Independent Review Gate:
├─ Read summary + inspect `git diff`
├─ Run tests / typecheck / linter
└─ Pass -> Report to user | Fail -> `codex exec resume --last` rework
SKILL.md + native PowerShell / Bash wrappers over official codex exec.--model (-Model) and model_reasoning_effort (-ReasoningEffort: minimal | low | medium | high | xhigh | max | ultra) per task without mutating ~/.codex/config.toml..codex-tasks/ in local .git/info/exclude so task specs never pollute git status or modify your tracked .gitignore.resume --last) with file/line review feedback.codex login or via the OpenAI Codex desktop app)git initialized in your target project (with at least one baseline commit for git diff review)# Windows (PowerShell)
git clone https://github.com/lbc9168/antigravity-codex-worker.git "$HOME\.gemini\config\skills\codex-worker"
# macOS / Linux
git clone https://github.com/lbc9168/antigravity-codex-worker.git ~/.gemini/config/skills/codex-worker
chmod +x ~/.gemini/config/skills/codex-worker/scripts/run-codex.sh
git clone https://github.com/lbc9168/antigravity-codex-worker.git .agents/skills/codex-worker
Start a new conversation in Antigravity and prompt naturally:
codex-worker: design the pagination refactor for src/api/users.ts, confirm the plan with me, delegate coding to Codex, and review the diff + unit tests."codex-worker to fix this bug; dispatch to Codex with low reasoning effort since the fix is straightforward."xhigh reasoning effort."利用 Antigravity 原生 Skill 机制,将 顶层架构设计/验收(Gemini / Claude Opus) 与 底层代码施工(OpenAI Codex CLI) 解耦:
git commit)写入 .codex-tasks/<id>-spec.md,脚本通过 UTF-8 无 BOM 标准输入流喂给 codex exec,彻底规避 Windows/Shell 长文本参数截断与中文乱码问题。--sandbox workspace-write(或只读调研 read-only)沙盒中;任务单自动写入本地 .git/info/exclude,不污染 git status,也不改动项目原本的 .gitignore。git diff 并运行单测/类型检查;若不达标,自动通过 -ResumeLast 续接同一会话打回返工(最多 2 轮)。-Model 与 -ReasoningEffort(low / medium / high / xhigh / max / ultra),不影响 ~/.codex/config.toml 默认配置。# Windows PowerShell
git clone https://github.com/lbc9168/antigravity-codex-worker.git "$HOME\.gemini\config\skills\codex-worker"
# macOS / Linux
git clone https://github.com/lbc9168/antigravity-codex-worker.git ~/.gemini/config/skills/codex-worker
chmod +x ~/.gemini/config/skills/codex-worker/scripts/run-codex.sh
新开一个 Antigravity 对话即可触发:
codex-worker 模式:先帮我设计鉴权中间件的方案,确认后交给 Codex 实现,改完你来审 git diff 并跑测试验收。”low 思考强度去改就行,省点额度。”xhigh。”codex-worker/
├── SKILL.md # Orchestration & 5-stage review protocol
├── scripts/
│ ├── run-codex.ps1 # Windows PowerShell headless launcher
│ └── run-codex.sh # macOS / Linux Bash headless launcher
├── resources/
│ ├── implementation-task.md # Feature & refactoring spec template
│ ├── bugfix-task.md # Root-cause & surgical bugfix template
│ └── research-task.md # Read-only audit & exploration template
└── LICENSE # MIT License
Delegation lifecycle inspired by khanhbkqt/spawn-agent, redesigned natively for Google Antigravity + modern codex exec workflows.
antigravity-codex-worker is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by lbc9168. Antigravity Skill to orchestrate local OpenAI Codex CLI as a sandboxed coding worker while Gemini/Opus acts as Architect & Reviewer. It has 74 GitHub stars.
antigravity-codex-worker's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/lbc9168/antigravity-codex-worker" and add it to your Claude Code skills directory (see the Installation section above). antigravity-codex-worker ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
antigravity-codex-worker is primarily written in PowerShell. It is open-source under lbc9168 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh antigravity-codex-worker against similar tools.
No comments yet. Be the first to share your thoughts!