Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.9 KB

File metadata and controls

32 lines (28 loc) · 1.9 KB

Agent Workflow

Automatic Vs Companion Context

  • AGENTS.md is the primary repository instruction file Codex reads automatically.
  • RULES.md, SKILLS.md, and the files under .codex/ and .agents/ are companion assets that clarify structure, reusable workflows, and opt-in local setup.
  • Keep critical repository expectations in AGENTS.md. Do not hide mandatory guidance only in companion files.

Repository Layout For Codex

  • AGENTS.md
    • durable repository expectations
  • apps/web/AGENTS.md, apps/mobile/AGENTS.md, .github/workflows/AGENTS.md
    • subtree-specific overrides for specialized work
  • .agents/skills/
    • repository-scoped skills discoverable by Codex
  • .codex/agents/
    • project-scoped custom agents for subagent workflows
  • .codex/config.example.toml
    • example project-scoped configuration, intended to be copied or adapted rather than assumed
  • codex/rules/*.rules.example
    • example approval-policy rules, not auto-enforced by this repository alone

When To Reach For Each Tooling Layer

  • Use AGENTS.md for stable repo expectations that should apply to almost every task.
  • Use nested AGENTS.md files when a subtree has specialized constraints such as Compose Web UX, Android app wiring, or GitHub workflow behavior.
  • Use repo skills for repeated, focused workflows such as web polish, KMP feature passes, and release hygiene.
  • Use custom agents when a task benefits from clearly scoped delegation such as exploration or release verification.
  • Use MCP when external context or tools materially improve correctness, especially for current docs, product metadata, or remote systems.

Repository-Specific Defaults

  • Check the matching mobile surface before pushing web design changes.
  • Prefer shared derivation logic for date ranges, summaries, cadence, and other product-wide calculations.
  • Keep release workflows and GitHub project state synchronized with implemented work.