concepts/customization.md +38 −13
5In Codex, customization comes from a few layers that work together:5In Codex, customization comes from a few layers that work together:
6 6
7- **Project guidance (`AGENTS.md`)** for persistent instructions7- **Project guidance (`AGENTS.md`)** for persistent instructions
8- **[Memories](https://developers.openai.com/codex/memories)** for useful context learned from prior work
8- **Skills** for reusable workflows and domain expertise9- **Skills** for reusable workflows and domain expertise
9- **[MCP](https://developers.openai.com/codex/mcp)** for access to external tools and shared systems10- **[MCP](https://developers.openai.com/codex/mcp)** for access to external tools and shared systems
10- **[Subagents](https://developers.openai.com/codex/concepts/subagents)** for delegating work to specialized subagents11- **[Subagents](https://developers.openai.com/codex/concepts/subagents)** for delegating work to specialized subagents
11 12
1213These are complementary, not competing. `AGENTS.md` shapes behavior, skills package repeatable processes, and [MCP](https://developers.openai.com/codex/mcp) connects Codex to systems outside the local workspace.These are complementary, not competing. `AGENTS.md` shapes behavior, memories
14carry local context forward, skills package repeatable processes, and
15[MCP](https://developers.openai.com/codex/mcp) connects Codex to systems outside the local workspace.
13 16
14## AGENTS Guidance17## AGENTS Guidance
15 18
39Codex can load guidance from multiple locations: a global file in your Codex home directory (for you as a developer) and repo-specific files that teams can check in. Files closer to the working directory take precedence.42Codex can load guidance from multiple locations: a global file in your Codex home directory (for you as a developer) and repo-specific files that teams can check in. Files closer to the working directory take precedence.
40Use the global file to shape how Codex communicates with you (for example, review style, verbosity, and defaults), and keep repo files focused on team and codebase rules.43Use the global file to shape how Codex communicates with you (for example, review style, verbosity, and defaults), and keep repo files focused on team and codebase rules.
41 44
4245- ~/.codex/<FileTree
4346 class="mt-4"
4447 - AGENTS.md Global (for you as a developer) tree={[
4548- repo-root/ {
4649 name: "~/.codex/",
4750 - AGENTS.md repo-specific (for your team) open: true,
51 children: [
52 { name: "AGENTS.md", comment: "Global (for you as a developer)" },
53 ],
54 },
55 {
56 name: "repo-root/",
57 open: true,
58 children: [
59 { name: "AGENTS.md", comment: "repo-specific (for your team)" },
60 ],
61 },
62 ]}
63/>
48 64
49[Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)65[Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)
50 66
62 78
63A skill is typically a `SKILL.md` file plus optional scripts, references, and assets.79A skill is typically a `SKILL.md` file plus optional scripts, references, and assets.
64 80
6581- my-skill/<FileTree
6682 class="mt-4"
6783 - SKILL.md Required: instructions + metadata tree={[
6884 - scripts/ Optional: executable code {
6985 - references/ Optional: documentation name: "my-skill/",
7086 - assets/ Optional: templates, resources open: true,
87 children: [
88 { name: "SKILL.md", comment: "Required: instructions + metadata" },
89 { name: "scripts/", comment: "Optional: executable code" },
90 { name: "references/", comment: "Optional: documentation" },
91 { name: "assets/", comment: "Optional: templates, resources" },
92 ],
93 },
94 ]}
95/>
71 96
72The skill directory can include a `scripts/` folder with CLI scripts that Codex invokes as part of the workflow (for example, seed data or run validations). When the workflow needs external systems (issue trackers, design tools, docs servers), pair the skill with [MCP](https://developers.openai.com/codex/mcp).97The skill directory can include a `scripts/` folder with CLI scripts that Codex invokes as part of the workflow (for example, seed data or run validations). When the workflow needs external systems (issue trackers, design tools, docs servers), pair the skill with [MCP](https://developers.openai.com/codex/mcp).
73 98