Session capture

From AMDResearch/omniprobe · View interactive version

Session capture is an AI agent skill from the GitHub repository AMDResearch/omniprobe. Create a normalized session capture file preserving what happened in a session. Use at the end of a work session, or when the user says "capture session" or "save session". Records session goal, work performed, decisions, blockers, and verification results to .untracked/session-captures/.

How to use this skill

Skill file

session-capture

Purpose

Create a normalized session capture file when raw transcripts are not available or are impractical to store. This preserves the essential facts of what happened in a session so future sessions and reviews can learn from it without needing the full conversation history.

Preconditions

Required Reads

  1. .agents/state/active-workflows.md -- identify which workflow(s) were touched, if any.
  2. If a workflow was active: .agents/workflows/<state>/<workflow-id>/run-log.md -- cross-reference what was logged vs. what needs to be captured.
  3. .agents/pm/pm-index.md -- check whether any session findings warrant a PM update (do not update PM here, just note the need).

Procedure

  1. Determine the capture filename. Format: <YYYY-MM-DD-HHMM>-<agent-identifier>.md. Example: 2026-04-12-1430-claude.md.
  2. Create the file at .untracked/session-captures/<filename>.
  3. Write the following sections in order:

Session Metadata

the target repo path and include the target repo's current git branch and HEAD commit).

Session Goal

Work Performed

Verification

Decisions Made

Blockers and Open Items

PM Update Needed

  1. If a workflow was active, ensure the workflow's handoff.md has also been updated before ending the session. The session capture supplements the handoff -- it does not replace it.
  2. Run-log check. If a workflow was active and run-log.md has no entries from this session, append a summary entry before completing the capture. The run-log should never be empty for a session that did meaningful work.
  3. Check review cadence. After writing the capture file:

a. Find the most recent session review file in .agents/improvement/session-reviews/

(exclude README.md). If there is none, every capture is unreviewed.

b. List the capture files in .untracked/session-captures/ that are newer than that

review, then count the list. Call this N. Do not infer N from review count — a batch

review covers the whole backlog it found, not a fixed number of captures — and do not

arrive at N by adding one to a remembered figure. Both shortcuts have produced a

mis-stated N in a step whose own instruction is to derive it from timestamps.

c. Count the declines. Of those same captures, count how many already carry a review

recommendation footer. Call this D. This is the signal the plain count misses: a

recommendation declined several times over is evidence that it should fire less often

or be harder to skip, not that it should keep firing unchanged.

Counting footers rather than tracking consecutiveness is deliberate. "Three in a row"

breaks the moment a capture is written outside a normal session; "how many unreviewed

captures asked for a review" survives that and answers the same question.

d. Check whether a packet is in flight. If any directory exists under

.agents/workflows/active/, a workflow is mid-execution.

Suppress the standing recommendation while one is, unless the ceiling in (g) applies.

Stopping mid-packet to review process is disruptive and reviews an unfinished story; the

cheapest and most informative moment is the first close after active/ empties. Emit the

deferred form instead:

```


Review due on completion. There are <N> unreviewed session captures, and

<workflow-id> is still in active/. A batch review is most useful once the packet

completes — it can then see the whole execution rather than a fragment. Run

/session-review at the first close after active/ empties.

```

e. If active/ is empty and N >= 5, append the standing recommendation:

```


Review recommended. There are <N> unreviewed session captures. Run /session-review

in batch mode to extract improvement opportunities. It covers all <N>, not just the

most recent five — five is only the threshold at which a review is worth running.

```

f. Escalate on repetition, not on an absolute count. If D >= 3 — three or more

unreviewed captures already asked for a review and it has not happened — append this

instead of (e), naming the decline count. Compute the span from the oldest unreviewed

capture's date to today:

```


Review overdue. <N> session captures have gone unreviewed across <span> days, and

<D> of them already recommended a review. The recommendation has been declined <D>

times; repeating it unchanged is not the remedy. Cross-session patterns — the thing a

batch review exists to find — stay invisible until it runs. Run /session-review in

batch mode before starting new work this session.

```

An absolute threshold is not used here because it does not measure what matters. A

count is a proxy for elapsed time and stops being one during a burst: nine captures in

28 hours reads as "across 2 days", which sounds fine. Neither the count nor the span

carries the signal. The repetition does.

g. The suppression has a ceiling. If the oldest unreviewed capture is more than 14 days

old, (d) no longer suppresses — emit (e) or (f) even while a packet is active, and add:

"Suppression no longer applies: the backlog is older than 14 days." A packet that runs

for weeks must not defer the review for weeks with it.

h. Also include the recommendation in the agent's response to the user, matching whichever

of (d), (e) or (f) fired:

review is due at the first close after it completes."

running /session-review to extract process improvements."

review. Run /session-review in batch mode before new work."

Output

Completion Criteria

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.