Skip to content

AI Agent Configuration ​

AI Agent Configuration Landscape (April 2026) ​

AI coding agents (Claude Code, Codex, Cursor, GitHub Copilot) each require configuration files to understand project context. These files fall into four layers:

Layer 1 — Persistent Instructions ​

Files the agent reads every session to understand project rules and architecture.

ToolPrimary fileScoped files
Claude CodeCLAUDE.mdSubdirectory CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md
CodexAGENTS.mdNested AGENTS.md per directory, AGENTS.override.md
Cursor.cursor/rules/*.mdcPer-file via globs frontmatter
Copilot.github/copilot-instructions.md.github/instructions/*.instructions.md, AGENTS.md

Layer 2 — Scoped Rules ​

Topic-specific or path-gated rules that supplement the primary instruction file.

ToolLocationFormat
Claude Code.claude/rules/*.mdMarkdown, optionally path-gated
CodexNested AGENTS.md hierarchyMarkdown, directory-scoped
Cursor.cursor/rules/*.mdcMDC (Markdown + YAML frontmatter)
Copilot.github/instructions/*.instructions.mdMarkdown + applyTo frontmatter

Layer 3 — Reusable Workflows (Skills / Commands) ​

Packaged multi-step procedures the agent invokes on demand or automatically.

ToolSkills locationCommand locationTrend
Claude Code.claude/skills/<name>/SKILL.md.claude/commands/*.md (legacy)Commands integrated into skills
Codex.agents/skills/<name>/SKILL.md~/.codex/prompts/*.md (deprecated)Custom prompts deprecated, skills preferred
Cursor.cursor/skills/<name>/SKILL.mdSlash commandsCommands migrating to skills
Copilot.github/skills/<name>/SKILL.md.github/prompts/*.prompt.mdPrompt files for explicit invocation

Layer 4 — Agent Execution Settings ​

Runtime configuration controlling model selection, permissions, subagents, and external connections.

ToolSettings fileSubagentsHooks
Claude Code.claude/settings.json.claude/agents/*.mdHooks in settings.json
Codex.codex/config.toml.codex/agents/*.toml.codex/hooks.json
Cursor.cursor/cli.json.cursor/agents/*.md—
CopilotVS Code / GitHub settings.github/agents/*.agent.md—

  1. AGENTS.md is the de facto cross-tool standard — supported by Claude, Codex, Cursor, and Copilot
  2. Claude Code has the richest configuration — skills, agents, commands, memory, hooks, settings
  3. Cursor is evolving from IDE to Agent-first — rules and commands are migrating to skills
  4. Copilot is GitHub-native — deeply integrated with issues, PRs, and the .github/ directory
  5. Skills are converging — all four tools support SKILL.md-based skills with YAML frontmatter
  6. Commands are being deprecated or merged into skills across all platforms

SSOT Rules for AI Agents ​

This repository uses docs-ssot, a documentation Single Source of Truth generator.

All documentation is written as small modular Markdown files under template/docs/. Final documents (README.md, CLAUDE.md, AGENTS.md) are generated build artifacts.

Critical Rules ​

  • Never edit README.md, CLAUDE.md, or AGENTS.md directly — they are overwritten on every build
  • Edit source files under template/docs/ instead
  • Edit templates under template/*.tpl.md to change document structure
  • After editing, run make docs to regenerate output

Build Pipeline ​

template/docs/**/*.md  →  template/*.tpl.md  →  docs-ssot build  →  README.md / CLAUDE.md / AGENTS.md

Include Directive ​

Templates and source files use include directives to compose content:

markdown
<!-- @include: docs/01_project/overview.md -->
<!-- @include: docs/02_product/ -->
<!-- @include: docs/**/*.md level=+1 -->

Includes are resolved recursively. Circular includes cause a build error.