Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/content/docs/guides/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ target: copilot # or vscode, claude, codex, or all
### How It Works

1. **Primitives Discovery**: Scans `.apm/` and `.github/` directories for instructions, prompts, and agents
2. **Dependency Merging**: Incorporates primitives from installed packages in `apm_modules/`
2. **Dependency Merging**: Incorporates primitives from installed packages in `apm_modules/`; each package is scanned for both `.apm/` and `.github/` layouts (e.g. `.apm/instructions/` and `.github/instructions/` are both discovered)
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step says "Incorporates primitives" but this page later notes that apm compile outputs (and therefore effectively merges) instructions only (prompts/agents are handled by apm install). To avoid confusion, consider changing "primitives" here to "instructions" (or "instruction primitives") while keeping the .apm/ vs .github/ layout clarification.

Suggested change
2. **Dependency Merging**: Incorporates primitives from installed packages in `apm_modules/`; each package is scanned for both `.apm/` and `.github/` layouts (e.g. `.apm/instructions/` and `.github/instructions/` are both discovered)
2. **Dependency Merging**: Incorporates instructions from installed packages in `apm_modules/`; each package is scanned for both `.apm/` and `.github/` layouts (e.g. `.apm/instructions/` and `.github/instructions/` are both discovered)

Copilot uses AI. Check for mistakes.
3. **Optimization**: Applies mathematical context optimization (see below)
4. **Format Generation**: Outputs native files for each target agent format

Expand Down
Loading