A prompt that mines your chat history to rewrite AGENTS.md and stop repeated questions in long sessions

Aizkmusic · x · 2026-12-05

A practical prompt for very long coding sessions: have the AI go through the entire chat history, find every question you asked, group them, and modify AGENTS.md (plus repo tooling) so you never have to ask again. Data questions become scripts, information gets presented clearly, and repeat questions after compaction are flagged. The goal is closing knowledge-transfer gaps so the AI proactively surfaces the right information instead of waiting to be asked.

Original post →

More from coding & agent

coding & agent channel →