VOOZH about

URL: https://deepwiki.com/inclusionAI/AReaL/12.7-ai-assisted-development

⇱ AI-Assisted Development | inclusionAI/AReaL | DeepWiki


Loading...
Last indexed: 7 May 2026 (2e12c1)
Menu

AI-Assisted Development

The AReaL repository includes a comprehensive suite of AI-assisted development tools designed to streamline complex tasks such as adding new model architectures, managing distributed training clusters, and performing deep dependency upgrades. These tools are implemented as a collection of Domain Expert Agents, Repo-Local Skills, and Project Instructions compatible with tools like Claude Code, Cursor, and OpenCode.

AI Configuration Architecture

The AI assistance layer is organized into four primary directories, each serving a distinct role in the development lifecycle:

DirectoryPurposePrimary Tooling
.claude/agents/Persona definitions for domain experts (FSDP, Megatron, Scheduling).Claude Code
.agents/skills/Cross-tooling automation (e.g., commit conventions, PR reviews).General LLM Agents
.codex/Project-wide context and rules for code generation.Codex / GitHub Copilot
.opencode/Native commands and skills for the OpenCode platform.OpenCode

Data Flow: Natural Language to Code Entity

The following diagram illustrates how a natural language request from a developer is routed through the expert agents to interact with specific code entities.

Expert Agent Routing and Code Interaction


Sources: .claude/agents/launcher-scheduler-expert.md40-63 .claude/agents/archon-engine-expert.md79-119 .claude/agents/code-verifier.md28-86


Domain Expert Agents

Expert agents are Markdown-based persona definitions that provide deep context for specific subsystems.

Launcher & Scheduler Expert

Specializes in distributed deployments (Slurm, Ray, Local). It understands the relationship between ClusterSpecConfig and the Launcher hierarchy.

ArchonEngine Expert

Focuses on the MoE-optimized ArchonEngine. It guides developers through the process of adding new HuggingFace models to the Archon backend.

Code Verifier

A proactive agent that executes linting, formatting, and testing workflows.


Repo-Local Skills and Commands

Skills are structured workflows that automate multi-step engineering processes.

Commit Conventions and PR Creation

AReaL enforces a strict Conventional Commits format with automatic scope inference based on file paths .agents/skills/commit-conventions/SKILL.md19-32

The /create-pr command automates the entire contribution lifecycle:

  1. Rebase and Squash: Fetches origin/main and squashes local changes into a single clean commit .claude/commands/create-pr.md131-162
  2. Scope Inference: Automatically maps file paths (e.g., areal/workflow/ to workflow) to commit scopes .claude/commands/create-pr.md239-253
  3. PR Generation: Generates an intelligent title and description using gh pr create .claude/commands/create-pr.md254-272

Commit Scope Inference Mapping

File Path PatternScope
areal/workflow/workflow
areal/engine/engine
areal/experimental/archon
areal/infra/infra
.agents/, .claude/agents

Sources: .agents/skills/commit-conventions/SKILL.md53-71 .claude/commands/create-pr.md153-203

Intelligent PR Review (/review-pr)

The PR review skill performs a multi-phase analysis using specialized checklists and subagent consultation .agents/skills/review-pr/SKILL.md28-70

  1. Risk Analysis: Categorizes PRs from LOW to CRITICAL based on touched files (e.g., archon_weight_sync.py triggers CRITICAL) .agents/skills/review-pr/MIGRATION.md40-110
  2. Domain Templates: Selects from 12 L1 domains (Distributed Runtime, Numerics, etc.) to apply targeted checklists .agents/skills/review-pr/references/review-pr-templates.md8-14
  3. Expert Consultation: Automatically invokes subagents like archon-expert or fsdp-expert for deep logic verification .agents/skills/review-pr/SKILL.md57-69

PR Review Workflow


Sources: .agents/skills/review-pr/SKILL.md37-70 .agents/skills/review-pr/references/review-pr-templates.md33-101

Unit Test Generation

The add-unit-tests skill enforces the project's testing conventions, specifically handling distributed mocks.


Configuration Reference

Directory Structure Details

PathDescription
.claude/agents/Markdown files defining system prompts for Claude Code.
.agents/skills/Cross-platform skills like commit-conventions and review-pr.
.opencode/skills/OpenCode-specific implementations of repository skills.
.claude/commands/Custom slash commands for Claude Code (e.g., /create-pr, /gen-commit-msg).

Key Review Signals

The following signals are used by the AI to determine review depth:

Sources: .agents/skills/review-pr/MIGRATION.md57-88 .agents/skills/review-pr/references/review-pr-templates.md1-163 .claude/agents/launcher-scheduler-expert.md134-136