# Context Digest Template

> This template defines the format for context digests generated between APEX steps.
> Each step produces a digest (max 50 lines) that replaces reading full output files.

## Digest Format

```markdown
# Digest: step-{NN}

## Changes ({count} files)
- `path/file.ts` - {brief description of what changed}
- `path/other.ts` - {brief description}

## Decisions
- {key architectural or implementation decision}

## Findings
- {issue or pattern identified}

## State Updates
- {variable}: {new_value}

## For Next Step
- {what the next step needs to know}
- {specific files to read if needed}
```

## Rules

- **Max 50 lines** total
- **Paths only** for files (no content)
- **1 line per item** (no multi-line descriptions)
- **Skip empty sections** (if no decisions, omit Decisions)
- **Resume mode exception**: When resuming (`-r`), read full output files instead of digest
