AI-Assisted Development

May 11, 2026 ยท View on GitHub

AReaL ships with first-class configurations for Codex, OpenCode, and Claude Code. The repository includes shared project instructions, domain expert agents, and reusable implementation skills so the three harnesses stay aligned.

This page treats Codex as the canonical harness for repo-local workflows. OpenCode and Claude Code remain supported compatibility layers.

Codex

Start a Codex session

cd /path/to/AReaL
codex

Codex reads project context from AGENTS.md. In this repository, the Codex harness is organized around:

  • Project instructions: AGENTS.md
  • Repo-local skills: .agents/skills/<name>/SKILL.md
  • Custom agents: .codex/config.toml plus .codex/agents/<name>.toml and .codex/agents/<name>.md

Custom agents are registered in .codex/config.toml and point at per-agent TOML files:

[agents.fsdp-expert]
description = "FSDP2 expert for configuration, parallel strategy, weight sync, and integration guidance."
config_file = "./agents/fsdp-expert.toml"

Each agent TOML then points at its markdown instructions file:

name = "fsdp-expert"
model_instructions_file = "./fsdp-expert.md"

Directly executable Codex workflows

In AReaL, the directly executable Codex workflows are repo-local skills under .agents/skills/. Codex does not use / commands here as its primary workflow surface. Instead, you ask Codex to use the matching skill and carry out the workflow end to end.

SkillPurpose
add-datasetAdd a new dataset loader under areal/dataset/
add-workflowCreate a new RolloutWorkflow implementation
add-rewardImplement a new reward function
add-archon-modelAdd a new model architecture to the Archon engine
add-unit-testsAdd or extend unit tests
debug-distributedTroubleshoot hangs, OOMs, NCCL issues, and launcher misconfig
commit-conventionsPrepare a Conventional Commit message before committing
review-prRun the read-only PR review workflow with risk analysis
create-prRebase, squash, prepare metadata, and create or update a GitHub PR
translate-doc-zhTranslate docs/en/ content into docs/zh/
update-docker-imageUpdate runtime image dependencies and drive the Docker PR flow
upgrade-megatron-coreAudit and upgrade Megatron-Core compatibility
upgrade-vllmAudit and upgrade vLLM compatibility

These skills are the answer to "what is Codex's directly executable workflow in this repository?".

Custom Codex agents

Codex custom agents are specialized consultants registered in .codex/config.toml. Unlike OpenCode's automatic expert routing, Codex agents are an explicit tool surface: ask Codex to consult the relevant agent, or rely on repository instructions that tell it when to do so.

AgentPurpose
plannerPlan multi-file work and architectural changes
simple-code-reviewerPerform quick post-change risk checks
code-verifierRun targeted formatting, lint, and verification commands
fsdp-expertFSDP2 configuration, parallel strategy, and weight sync guidance
archon-expertArchon and MoE integration guidance
megatron-expertMegatron pipeline parallel training guidance
algorithm-expertPPO, GRPO, DAPO, reward shaping, and RL workflow guidance
launcher-expertLocal, Ray, Slurm, and inference launcher guidance

Typical Codex sessions

> Add a new rollout workflow for multimodal evaluation

Codex: [loads add-workflow, inspects areal/workflow/, implements changes]

> Review this PR

Codex: [loads review-pr, analyzes the diff, consults the matching expert agents]

> Create or update the PR

Codex: [loads create-pr, checks branch state, prepares the PR workflow]

OpenCode Compatibility

Install OpenCode and oh-my-opencode

curl -fsSL https://opencode.ai/install | bash

Alternative methods: brew install anomalyco/tap/opencode, npm install -g opencode-ai, or a release binary from GitHub. See the OpenCode docs for current install details.

oh-my-opencode remains optional, but useful if you want richer OpenCode orchestration and tool integrations.

Start OpenCode

cd /path/to/AReaL
opencode

OpenCode reads AGENTS.md and discovers agents, commands, skills, and plugins from .opencode/. It can also read .claude/skills/ where relevant.

OpenCode workflow surface

OpenCode keeps its own command and agent system:

CommandPurpose
/create-prRebase, squash commits, and create PR
/review-prIntelligent code review with risk analysis
/translate-doc-zhTranslate English documentation to Chinese

OpenCode-specific assets live in .opencode/agents/, .opencode/command/, .opencode/skills/, and .opencode/package.json.

Claude Code Compatibility

Claude Code remains supported through CLAUDE.md plus the .claude/ directory for agents, commands, hooks, and rules.

Configuration Files

AReaL/
|-- AGENTS.md                # Project context (loaded automatically)
|-- .agents/
|   +-- skills/              # Codex repo-local skills
|-- .codex/
|   |-- config.toml          # Registers custom Codex subagents
|   +-- agents/              # Codex agent config files and instruction markdown
|-- .opencode/
|   |-- agents/              # OpenCode expert agents
|   |-- command/             # OpenCode slash commands
|   |-- skills/              # OpenCode skills
|   +-- package.json         # OpenCode plugin dependencies
+-- .claude/
    |-- agents/              # Claude Code agents
    |-- commands/            # Claude Code commands
    |-- hooks/               # Claude Code hooks
    +-- rules/               # Claude Code rules

Harness Comparison

AReaL supports all three harnesses, but each one exposes reusable workflows differently:

ConceptCodexOpenCodeClaude Code
Project contextAGENTS.mdAGENTS.mdCLAUDE.md
Repo workflows.agents/skills/.opencode/skills/, .opencode/command/.claude/skills/, .claude/commands/
Custom subagents.codex/config.toml + .codex/agents/.opencode/agents/.claude/agents/
Primary executable workflow formRepo-local skillSlash command or skillSlash command or skill
Agent dispatchExplicit custom agent invocationtask(subagent_type="...", ...)Automatic routing
Expert namesfsdp-expert, archon-expert, ...fsdp-expert, archon-expert, ...fsdp-engine-expert, archon-engine-expert, ...
Commit helpercommit-conventions skillcommit-conventions skillcommit-conventions skill + /gen-commit-msg

Claude Code also ships with additional general-purpose agents:

AgentPurpose
plannerCreates implementation plans before complex multi-file changes
code-verifierRuns pre-commit hooks and tests after code changes
simple-code-reviewerPerforms quick code quality checks before commits

Claude Code configuration lives in:

AReaL/
|-- CLAUDE.md              # Project context and constraints
+-- .claude/
    |-- agents/            # 5 domain experts + 3 general-purpose (8 total)
    |-- skills/            # Guided workflows (shared with OpenCode)
    |-- commands/          # Automated actions (create-pr, gen-commit-msg, review-pr)
    |-- hooks/             # Pre/post action hooks
    +-- rules/             # Code quality standards

Contributing

We welcome contributions to both the codebase and AI development configurations:

  • Code contributions: New features, bug fixes, documentation improvements
  • AI config contributions: New Codex skills, custom agents, or compatibility-layer improvements
  • Codex configs: Edit .codex/, .agents/, and AGENTS.md
  • OpenCode configs: Edit files in .opencode/
  • Claude Code configs: Edit files in .claude/

See CONTRIBUTING.md for guidelines.