> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specpilot.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# prompts.md

> A log of every AI interaction, plus the Re-Anchor Prompt that brings your agent back on track.

`.specs/development/prompts.md`. `specpilot validate` requires it.

## What it holds

* The archive policy.
* The Re-Anchor Prompt: your project's critical rules, to paste when your agent loses track.
* The Prompt History table: date, user, prompt summary and context.

## Who reads it

* `/specpilot-reanchor` and `/specpilot-refine`.
* [`specpilot refine`](https://docs.specpilot.dev/reference/cli/refine), which adds an entry.
* The App's Overview, as Recent activity.

## Archive

Past 100 lines, the oldest entries move to `development/prompts-archive.md`, which the first archive creates.

## What validate checks

* An error if the file is missing.
* Warnings when it's nearly empty, has no entry from this year, or is over 100 lines.

Checked against SpecPilot 2.22.0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.