Skip to content

Building with context For engineers

AI coding session review: find the decisions you repeated

An AI coding session review reads one finished conversation with a coding assistant to see how much of your input went to giving context and which decision you had to explain twice. Use minutes only when enough turns are timed, and count turns otherwise. Carry one verifiable check into the next task, and leave the cause open unless the turns show it.

Short answer: what does an AI coding session review show?

An AI coding session review shows two things from one conversation: the share of your input that went to giving context, and one decision you explained in two separate turns. Read your original messages, label each by purpose, measure them on one basis, then look for a repeat.

The review describes your input in that session only. It does not measure how long the change took, and it does not predict time saved on the next one.

When is reviewing one session worth the time?

Review a session when you remember correcting the agent about a rule you had already stated. Memory of a correction is weak evidence. Reading the actual turns tells you whether the second instruction repeated the first, changed it, or covered a different case.

Pick a finished conversation about one change, not a day of mixed work. Choose one you are allowed to inspect. If the assistant compacted or summarized earlier turns, you can only review what is still visible, so label the coverage partial.

How to preserve decisions through compaction

How to review one coding session in seven steps

Work only from your own original messages. Skip automated events, system messages, duplicate records and messages you merely quoted, and count each human message once, including consecutive ones.

Three purposes are enough. Giving context means supplying project facts, requirements, constraints, examples or past decisions, including first-time context and a changed requirement. Guiding the agent means prescribing an approach, redirecting or correcting the work. Other work covers build requests, routine checks, acknowledgments and unclear turns.

Timing data is often sparse. A workable rule: use recorded input durations, or reply gaps of up to five minutes after a completed response, only when they cover at least five turns and at least half of all turns. Skip any gap that includes waiting, tool runs or a break. Otherwise report turn counts, and never estimate minutes from message length.

  • Label your original messages T1 through TN in order, and note whether coverage is full or partial.
  • Give each turn one primary purpose: giving context, guiding the agent or other work.
  • Choose one measurement basis for the whole session: recorded durations, qualified reply gaps or turn counts.
  • Report the context share on that basis, with its denominator, such as timed turns out of observed turns.
  • Find at most one decision that two distinct turns state in substance, and write down what stayed the same.
  • Name why the decision was missed only if the turns establish the cause.
  • Write one check that the next task can run, with its scope and a pending status.

Worked example: a repeated rule in a CSV export change

Example (fictional): an engineer asks an agent to add a region column to a scheduled client CSV export. Eight original turns are visible. Only three have recorded durations, and no reply gaps qualify, so the review reports turn counts: 3 of 8 observed turns gave context, 2 guided the agent and 3 were other work. Minutes are unknown.

T6 is a correction, so it counts once as guiding the agent. It also restates T2 in substance, which makes T2 and T6 the repeated decision. T7 is not a repeat: it sets a different rule for a different output.

TurnWhat the engineer said (paraphrased)PurposeRepeat?
T1Add a region column to the scheduled client export.Other workNo
T2Scheduled client exports keep their existing column order. Append new columns at the end.Giving contextOriginal decision
T3The scheduled export runs per client. The preview is internal only.Giving contextNo
T4Run the export tests.Other workNo
T5Use the existing column list instead of hard-coding the header.Guiding the agentNo
T6Move region to the end of the scheduled export so the existing order stays the same.Guiding the agentRepeats T2
T7In the internal preview only, show region first.Giving contextNo, separate scope
T8Looks good.Other workNo

What should you carry into the next task?

Carry one check, not a summary of the session. The turns in the example prove the rule was stated twice. They do not show why the agent missed it, so the note leaves the cause open.

Put the check where the next task will read it. A rule for every task in the repository belongs in the project instruction file. A rule scoped to one client or one output belongs in the task brief or handoff, with its scope stated.

Add the check to your planning-to-review handoff

Scope: scheduled client CSV export.
Rule to confirm: keep the order of existing columns and append new ones.
Session evidence: T2 and T6 state the same rule. The T7 preview rule has its own scope.
Cause: not established by the session.
Check to run: compare the scheduled export header with the accepted order for the current client.
Status: verification pending.

Where a manual read is enough

A manual read is enough for a short session where you already know which two turns to compare. Open the conversation in your assistant's history, label the turns and write the check. No tool is needed.

One session cannot tell you whether context rework is a team pattern. Comparing changes across a team needs a separate measurement that includes preparation, waiting and review rework, not one conversation's input breakdown.

Measure context reconstruction across a whole change

Where Shifu fits

Shifu's free Coding Session Review prompt applies the rules above to the conversation you paste it into. You can copy or download it without entering an email. Your assistant saves an HTML report file, or returns an HTML artifact or code block if it cannot save files, and the prompt tells it not to upload or publish the session or report. Your configured model provider's data settings still apply.

Shifu is a context engine for AI coding teams. It is designed to retrieve the decisions, constraints and reasoning relevant to the task at hand, with sources. The prompt does not call Shifu, and a report does not estimate time Shifu would save. The report ends with one optional product link, which carries no session data. We have not published customer results yet.

Session review checklist

Run this on one finished conversation before you change your instructions.

  • Pick one conversation about one change that you are allowed to inspect.
  • Label original human turns and mark coverage full or partial.
  • Classify each turn once by its primary purpose.
  • Use minutes only when at least five turns and half of all turns are timed.
  • Confirm a repeat with two turns that state the same rule, not a changed one.
  • Leave the cause open unless the turns establish it.
  • Write one scoped check where the next task will read it.

Frequently asked questions

What is an AI coding session review?

An AI coding session review reads one finished conversation with a coding assistant. It labels your original messages as giving context, guiding the agent or other work, reports the share of input that went to context, and looks for one decision you stated in two separate turns. It describes that session only, not the time a change took.

How do you measure time spent giving context to a coding agent?

Use recorded input durations, or reply gaps of up to five minutes after a completed assistant response, only when they cover at least five turns and at least half of all turns. Divide the summed time of context turns by the summed time of all timed turns. Otherwise report context turns out of observed turns, and never infer minutes from message length.

How can you tell if you repeated a decision to the agent?

Find two distinct original turns that state the same requirement, decision or constraint in substance, and note what stayed the same. A changed requirement or a new exception for a different output is not a repeat. A correction can repeat an earlier decision while still counting once as guiding the agent in the breakdown.

What should you do after finding a repeated decision?

Write one check the next task can run, with its scope, the two turns as evidence and a pending status. Put a repository-wide rule in the project instruction file and a client-specific or output-specific rule in the task brief or handoff. Leave the cause open unless the session turns establish why the agent missed it.

Sources and further reading

Prepared with AI assistance and reviewed for source fidelity and practical usefulness. Examples marked fictional are illustrations, not customer results.

PUT THE CONTEXT TO WORK

Try it on one feature.

Copy the free Coding Session Review prompt and review one recent coding conversation. Your assistant writes a local HTML report; no email is needed.

Review a session

Keep reading