Synthesize a prose context primer from past sessions on this repo.
Steps
- Fetch the primer. Call the
get_context_primerMCP tool (passcwdif a path was given). - Synthesize, don't dump. From the JSON, write: prior decisions, what was tried/abandoned, and the current open thread.
- Anchor the open thread on the most-recent session's
closing—closing.useris the last thing you actually typed andclosing.assistantis the assistant's last substantive reply (outcomes like "PR is up: …" survive);branchis the branch you left off on. - Drill into a session worth expanding. If one primer session needs more than its opening/closing (an ambiguous open thread, a decision you need the details of), get its full arc from
get_session_digest: resolve the session'sfilePathviasearch_sessions(a distinctive phrase from itsintentplus the repo asproject), then digest that path. Expand a specific exchange withget_session_messages(offset: exchanges[].index)— don't page from 0. - Keep it tight — a short brief the user can act on, not a transcript.
Guidelines
- Prefer the most recent + most-edited files as the likely active surface.
- If the primer is empty, say so plainly; don't invent history.