nanocoai/nanoclaw / .claude/skills/add-codex
add-codex
FlaggedUse Codex (OpenAI's codex app-server) as a full agent provider — planning, tool orchestration, MCP tools, server-side history, session resume — alongside or instead of Claude. ChatGPT subscription or OpenAI API key, vault-only via the selected gateway. Per-group via `ncl groups config update --provider codex`. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
payload/src/provider-contracts/codex.ts
View on GitHubimport { CODEX_PROJECT_DOC_MAX_BYTES } from '../providers/codex-agents-md.js';
import { registerProviderHostContract } from './registry.js';
const HOST_SEAM_VERSION = 1;
registerProviderHostContract('codex', {
modelEndpoints: {
api: 'https://api.openai.com',
subscription: 'https://chatgpt.com',
token: 'https://auth.openai.com/oauth/token',
},
modelDomains: ['openai.com', 'chatgpt.com'],
seamVersion: HOST_SEAM_VERSION,
projectDocument: {
fileName: 'AGENTS.md',
maxBytes: CODEX_PROJECT_DOC_MAX_BYTES,
containerPath: '/workspace/agent/AGENTS.md',
mountClass: 'allowlisted-extra',
// Instruction prose is core-owned canon; Codex declares only the facts
// rendered into it.
instructions: {
nativeOverrideFiles: ['AGENTS.local.md', 'AGENTS.override.md'],
nativeSkills: {
discoveryPath: '/workspace/agent/.agents/skills',
sharedSource: '/app/skills',
selfAuthoredHome: '~/.codex/skills',
persistentRoots: ['~/.codex', '~/.agents'],
ruleBearingInlined: true,
},
},
},
stateVolumes: [
{
id: 'codex-home',
directory: '.codex-shared',
containerPath: '/home/node/.codex',
scope: 'group',
mode: 'rw',
mountClass: 'allowlisted-extra',
},
],
skillBackings: [
{
id: 'codex-skills',
location: { kind: 'group-directory', directory: '.agents', subdirectory: '' },
skillsSubdirectory: 'skills',
conflictDiagnostics: 'silent',
templateCopies: 'copy',
},
],
skillViews: [
{
backingId: 'codex-skills',
containerPath: '/workspace/agent/.agents',
mode: 'ro',
mountClass: 'allowlisted-extra',
},
{
backingId: 'codex-skills',
containerPath: '/home/node/.agents',
mode: 'ro',
mountClass: 'allowlisted-extra',
},
],
files: [
{
id: 'codex-auth-stub',
volumeId: 'codex-home',
relativePath: 'auth.json',
prepare: { operation: 'append-open-close', when: 'every-spawn' },
},
],
// Core validates `--speed` against these names; the runtime payload renders
// only `fast` (as `service_tier = "fast"`), `standard` keeps Codex's default.
inference: { speedTiers: ['standard', 'fast'] },
legacyHostAdapter: 'required',
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |