Create the directory structure
Create the agent directory for your active agent and the The resulting structure:
aep/ subfolder inside it. Use AGENTS.md as the shared instruction file that all agents can read.For a new install, choose the directory that matches your active agent (see Agent compatibility for the full list). The example below uses .agent/ as a generic placeholder — replace it with .claude/, .opencode/, .cursor/, .codex/, or .gemini/ as appropriate.Do not create
.agent/ for new installs if you are using a specific agent. Prefer the agent-aware directory (.claude/aep/, .opencode/aep/, etc.) so packs are co-located with the agent’s own config.Copy the template files
Copy the AEP template files into your agent directory. The templates give you a valid starting point for each pack type.
The starter
| Template source | Destination |
|---|---|
assets/templates/project.aep.json | <agent-dir>/aep/project.aep.json |
assets/templates/user.aep.json | <agent-dir>/aep/user.aep.json |
assets/templates/index.json | <agent-dir>/aep/index.json |
assets/templates/task.generic.aep.json (optional) | <agent-dir>/aep/tasks/<task>.aep.json |
index.json references the project, user, and optional task pack entries so the agent can discover all packs from a single file:Configure agent behavior
Add AEP loading instructions to your agent’s instruction file so every future session starts with packs loaded. Edit Replace
AGENTS.md (and any agent-specific file such as CLAUDE.md or a Cursor rules file) to include the following minimum content:<agent-dir> with the actual directory path (e.g. .claude, .opencode, .cursor).The agent will now:- Read
AGENTS.mdat the start of each session. - Load
<agent-dir>/aep/index.jsonto discover all available packs. - Score and rank packs against the current task using keywords,
applies_to, andstrength. - Apply the top 1–3 packs as alignment rules before executing the task.
- Save new or updated packs after successful tasks.
Complete directory structure
After setup, your repo will contain the following AEP files (example using.agent/):
How the agent knows to use AEP
OnceAGENTS.md is in place and contains AEP loading instructions, the agent reads it automatically at session start. From that point on:
aep apply— the agent loads and scores packs before any substantial task.aep save— after a successful task, the agent saves a new pack and updatesindex.json.aep promote— the agent promotes task-level patterns up to project or user scope.aep inspect— the agent reports which packs are active, their scores, and usage metrics.
Related pages
Agent compatibility
Agent-specific directories and instruction file updates
Matching and scoring
How agents rank AEP packs for every task
Pack overview
Task, project, and user pack types explained
Template reference
Starter templates for all pack types