| name | nt-chat-session-reflection |
| description | Use when the user asks for a full retrospective or analysis of an AI-assisted work session, chat history, agent run, long task, profiling data, slow progress, repeated failures, weak tool/subagent use, context loss, planning gaps, quality risks, or process improvements. Produces one comprehensive evidence-based session review with bottlenecks, causes, better workflow, and concrete changes for future runs. |
NT Chat Session Reflection
Produce a full retrospective of an AI work session. The goal is to understand
what happened, where time or context was wasted, why quality suffered, and what
should change in the harness, workflow, tools, or agent behavior.
This is not a normal status report. Be direct, evidence-based, and practical.
Evidence Order
Use durable evidence before memory or chat recollection:
- Complete Codex profiling:
node ai_studio/core_harness/profiling/status.mjs --complete --verbose.
This reads the canonical rollout by CODEX_THREAD_ID, including sessions
that cross midnight; do not use the disposable hook profile for a full
Codex retrospective.
- For a non-Codex harness, use the lightweight hook profile:
node ai_studio/core_harness/profiling/status.mjs --verbose.
- Task state when relevant:
node ai_studio/taskboard/cli.mjs context --json
- Changed durable artifacts:
git status --short
- Relevant task logs, validation output, reports, screenshots, or generated
artifacts.
- Conversation context last.
Avoid broad reads. Open a specific task only when the context row is not enough.
Review Shape
Write the review in this order:
- Scope and evidence inspected.
- Evidence quality: profile file, record count, unresolved/recovered failures,
wall-clock coverage, largest gaps, slowest work, repeated commands.
- What was actually accomplished.
- Where time/context was wasted.
- Major bottlenecks and problems. For each major problem, use:
symptom, cause, faster path.
- Tool/subagent use audit.
- Context management audit.
- Planning and validation audit.
- Product/result quality audit.
- Better workflow for the next similar session.
- Top 10 concrete improvements, ordered by leverage.
When useful, split problems into product, pipeline, and agent behavior.
Durable Changes
Do not edit files by default. If the user asks to preserve lessons, update the
owning ai_studio/ module README or the focused reusable knowledge page,
depending on whether the lesson is workflow/tooling or game-development
knowledge. If the reflection creates project work, create or update Taskboard
tasks instead of burying work only in the retrospective.
Non-Negotiables
- Do not invent concrete examples.
- Mark weak evidence, broken profiling coverage, stale artifacts, and unknown
intervals clearly.
- Do not infer time spent from memory when profiler coverage is broken; mark it
partial, likely, or unknown.
- Distinguish product, pipeline, and agent behavior problems.
- Do not mark the project goal complete from a retrospective.
- Keep raw telemetry and generated reflection artifacts in
tmp/session_profiles
unless the lead asks to preserve them.