# Progressive Disclosure

> The Progressive Disclosure in AI agents is a technique of loading detailed instructions only when they are needed.

## What is progressive disclosure for AI agents?

The technique where an agent first sees only short names and descriptions of skills or docs and loads the full content when a task requires it. Many capabilities can be available without filling the context window.

- Topic: Agent Customization
- Type: technique

## Example

Wrong:

```markdown
## API reference
<all 300 endpoints pasted here>
## Error codes
<full table of 150 error codes>
```

Right:

```markdown
## API reference
- Billing endpoints: see `reference/billing.md`
- User endpoints: see `reference/users.md`
- Error codes: read `reference/errors.md` only when handling an error
```

Linking to detail files lets the agent load only the part a task needs instead of filling context with everything.

## Key points

- Large skills split details into separate files that are referenced, not pasted into one file.
- Every skill or doc has a one-line description that says when to load it.

## Interview questions

### Why not just put all instructions in one file?

Everything in that file fills the context every time, which costs tokens and buries the important parts. Loading details on demand keeps context focused.

### How does an agent know when to load a skill?

It reads the short name and description of each skill first and loads the full instructions only when a task matches the description.

### Does progressive disclosure work for MCP tools too?

Yes, the same idea applies: some tools show short tool summaries first and load full schemas or docs only when a tool is needed.

## Related cards

- [Agent Skills](https://wonderium.dev/ai/agent-skills.md)
- [SKILL.md](https://wonderium.dev/ai/skill-md.md)
- [Context Window](https://wonderium.dev/ai/context-window.md)
- [Context Rot](https://wonderium.dev/ai/context-rot.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/progressive-disclosure
- Last updated: 2026-11-25
