Session Wrap-Up
Run a candid, compact retrospective of the current session. Base it on the
conversation, commands, tool output, edits, verification, and unresolved work;
do not invent friction to make the report look substantial.
Interrogate The Session
Ask yourself:
- Where did I lose time, take a false start, or repeat work?
- What did I misunderstand or assume too early?
- What did the user's questions or corrections reveal about unclear scope,
location, status, or explanation?
- Which instructions were missing, hard to discover, ambiguous, or in tension?
- Which code, documentation, architecture, or terminology did I have to
rediscover?
- Which tool, dependency, environment, build, or test failure slowed the work?
- What nearly went wrong, even if the final result was correct?
- What remains incomplete, uncertain, or insufficiently verified?
- What worked especially well and is worth preserving or standardising?
- What single change would most improve a similar session next time?
Verify the factual premise behind user questions and corrections against the
available evidence. Treat a correction as strong evidence of an expectation or
communication gap even when its diagnosis is not confirmed.
Before reporting the outcome, perform only the cheap read-only checks needed to
confirm the current state. For repository work, normally inspect working-tree
status and the changed-file summary, then reconcile them with verification
already recorded in the session. Do not rerun expensive tests solely for the
wrap-up. State when relevant evidence is unavailable.
Distinguish observed facts from diagnosis and speculation. Say "No material
friction observed" when that is the honest conclusion.
Classify Findings
Assign each meaningful issue to the narrowest useful category:
- Agent practice: planning, assumptions, sequencing, communication, tool
choice, or verification discipline.
- Repository knowledge:
AGENTS.md, documentation, architecture inventory,
glossary, examples, or code discoverability.
- Reusable workflow: a missing or weak skill, script, task, template, check,
or automation.
- Environment or tooling: dependencies, permissions, local setup, external
services, or product limitations.
- Task definition: unclear scope, acceptance criteria, ownership, or product
boundary.
Keep Chatto, Authling, shared-framework, and repository-wide recommendations
separate. Place a proposed improvement with the product or infrastructure that
owns it.
Recommend Improvements
For each material finding, propose the smallest change likely to prevent the
same class of friction. Include:
- the evidence and impact;
- whether the root cause is known or inferred;
- the concrete improvement and likely owner or location;
- the expected payoff and any trade-off;
- a priority of now, soon, or only if repeated.
Prefer durable fixes over reminders. Examples include tightening a scoped
instruction, adding a focused test, exposing an existing task, improving an
error message, documenting a hidden invariant, or extending a relevant skill.
Do not recommend new process or documentation when a simpler code or tooling
fix would remove the problem.
Keep the wrap-up propose-only. Do not edit files, create issues, send feedback,
or start follow-up work unless the user explicitly asks.
Report Format
Return one concise report with these sections:
Outcome
State the session goal, result, and verification level. Call out incomplete or
unverified work without repeating the entire implementation handoff.
Friction And Near Misses
List only evidence-backed findings. For each, give the category, what happened,
and its practical impact. Separate agent mistakes from repository or tooling
problems. Treat direct user corrections as high-signal evidence of an
expectation or communication gap, not automatic proof of their diagnosis. Do
not infer dissatisfaction from tone alone.
What Worked
Capture practices, instructions, tools, or repository affordances that made the
session more reliable or efficient.
Improvements
Prioritise at most five concrete proposals. Name the likely owner or file when
known, and mark inferred diagnoses clearly.
Recommended Next Step
Choose the single highest-leverage action. If no follow-up is warranted, say
so. End with one short question only when the user's perspective would
materially change the recommendation.
Guardrails
- Be specific and candid without assigning blame or performing false humility.
- Do not exaggerate routine exploration into a systemic problem.
- Do not hide the agent's own errors behind tooling or instruction complaints.
- Do not expose secrets, personal data, or sensitive command output.
- Do not claim that a proposed improvement is validated when it has not been
tried.
1---2name: session-wrap-up3description: Review a completed, paused, or blocked coding-agent session to identify friction, mistakes, near misses, missing context, and opportunities to improve future work. Use when the user asks to wrap up, run a retrospective, explain what issues the agent faced, capture lessons learned, or recommend improvements to repository instructions, documentation, skills, tooling, tests, or workflows. Produce an evidence-based, propose-only report; do not apply follow-up changes unless the user asks.4---56# Session Wrap-Up78Run a candid, compact retrospective of the current session. Base it on the9conversation, commands, tool output, edits, verification, and unresolved work;10do not invent friction to make the report look substantial.1112## Interrogate The Session1314Ask yourself:1516- Where did I lose time, take a false start, or repeat work?17- What did I misunderstand or assume too early?18- What did the user's questions or corrections reveal about unclear scope,19 location, status, or explanation?20- Which instructions were missing, hard to discover, ambiguous, or in tension?21- Which code, documentation, architecture, or terminology did I have to22 rediscover?23- Which tool, dependency, environment, build, or test failure slowed the work?24- What nearly went wrong, even if the final result was correct?25- What remains incomplete, uncertain, or insufficiently verified?26- What worked especially well and is worth preserving or standardising?27- What single change would most improve a similar session next time?2829Verify the factual premise behind user questions and corrections against the30available evidence. Treat a correction as strong evidence of an expectation or31communication gap even when its diagnosis is not confirmed.3233Before reporting the outcome, perform only the cheap read-only checks needed to34confirm the current state. For repository work, normally inspect working-tree35status and the changed-file summary, then reconcile them with verification36already recorded in the session. Do not rerun expensive tests solely for the37wrap-up. State when relevant evidence is unavailable.3839Distinguish observed facts from diagnosis and speculation. Say "No material40friction observed" when that is the honest conclusion.4142## Classify Findings4344Assign each meaningful issue to the narrowest useful category:4546- **Agent practice**: planning, assumptions, sequencing, communication, tool47 choice, or verification discipline.48- **Repository knowledge**: `AGENTS.md`, documentation, architecture inventory,49 glossary, examples, or code discoverability.50- **Reusable workflow**: a missing or weak skill, script, task, template, check,51 or automation.52- **Environment or tooling**: dependencies, permissions, local setup, external53 services, or product limitations.54- **Task definition**: unclear scope, acceptance criteria, ownership, or product55 boundary.5657Keep Chatto, Authling, shared-framework, and repository-wide recommendations58separate. Place a proposed improvement with the product or infrastructure that59owns it.6061## Recommend Improvements6263For each material finding, propose the smallest change likely to prevent the64same class of friction. Include:6566- the evidence and impact;67- whether the root cause is known or inferred;68- the concrete improvement and likely owner or location;69- the expected payoff and any trade-off;70- a priority of **now**, **soon**, or **only if repeated**.7172Prefer durable fixes over reminders. Examples include tightening a scoped73instruction, adding a focused test, exposing an existing task, improving an74error message, documenting a hidden invariant, or extending a relevant skill.75Do not recommend new process or documentation when a simpler code or tooling76fix would remove the problem.7778Keep the wrap-up propose-only. Do not edit files, create issues, send feedback,79or start follow-up work unless the user explicitly asks.8081## Report Format8283Return one concise report with these sections:8485### Outcome8687State the session goal, result, and verification level. Call out incomplete or88unverified work without repeating the entire implementation handoff.8990### Friction And Near Misses9192List only evidence-backed findings. For each, give the category, what happened,93and its practical impact. Separate agent mistakes from repository or tooling94problems. Treat direct user corrections as high-signal evidence of an95expectation or communication gap, not automatic proof of their diagnosis. Do96not infer dissatisfaction from tone alone.9798### What Worked99100Capture practices, instructions, tools, or repository affordances that made the101session more reliable or efficient.102103### Improvements104105Prioritise at most five concrete proposals. Name the likely owner or file when106known, and mark inferred diagnoses clearly.107108### Recommended Next Step109110Choose the single highest-leverage action. If no follow-up is warranted, say111so. End with one short question only when the user's perspective would112materially change the recommendation.113114## Guardrails115116- Be specific and candid without assigning blame or performing false humility.117- Do not exaggerate routine exploration into a systemic problem.118- Do not hide the agent's own errors behind tooling or instruction complaints.119- Do not expose secrets, personal data, or sensitive command output.120- Do not claim that a proposed improvement is validated when it has not been121 tried.