<< Home | Prompting craft
Model learns from and references local documentation
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2026-07-07 |
The move
Explicitly instruct the model to review and update specific documentation files during the task.Steps
- Identify key documentation files for your project.
- Add an instruction to the system prompt to refer to these files.
- Instruct the model to document pitfalls encountered during tasks.
- Ask the model to update the documentation with new insights.
Prompt for your AI
Refer to your documents and document any pitfalls you encounter.
What happened
The user found that models failed to utilize context from local files like AGENTS.md or slint-gotchas.md automatically. By adding an explicit instruction to refer to these files and document pitfalls, the model's performance on complex tasks improved significantly. The user confirmed that the model began handling multi-file edits almost flawlessly after this change.Who confirmed it
Everything fell into place, and the models became much more intelligent.Watch out
Extensive system prompts can be inefficient for local inference.Give it to your agent
Read https://howtheyuse.ai/p/model-learns-from-and-references-local-documentation.md and help me do this.