A useful coding-session recap preserves decisions, unresolved work, and evidence that the next session can act on. Separate confirmed findings from tentative ideas, link to the relevant files or commits, and leave out transcript noise and secrets.
Key takeaways
- Separate note types: Decisions, open tasks, learnings, and ideas have different readers and lifetimes.
- Write at fixed moments: Capture at session end and, where the client supports it, before context compaction.
- Review before sharing: Start with personal notes and move checked items to team knowledge.
Decide what a recap should contain
Consider a hypothetical session that fixes a flaky integration test. The next session needs about five facts:
| Note type | Example | Next reader |
|---|---|---|
| Decision | Use a per-test fixture to prevent shared-state interference | Anyone who touches the test |
| Open task | Apply the fixture change to the remaining payment tests | The developer tomorrow |
| Learning | A timing assumption failed on the sampled CI runner; record the logs and environment | The team |
| Idea | Add a lint rule for unseeded random values | Whoever plans the next cleanup |
| Session report | What changed, which files, which commit | The developer and reviewers |
Keep each note type distinct, whether in separate notes or clearly labeled sections. State the decision and its reason, give each open task a next action, and attach the file, commit, or log that supports a finding.
Write at the right moments
Capture the recap while the session still contains the evidence: at session end, and before compaction when the client exposes that hook. Update the existing recap rather than creating duplicate notes at every checkpoint.
Start the next session by loading the developer's preferences and the most recent learnings and open tasks. This gives the agent a starting point; it should still check the current repository state before acting.
Keep personal notes apart from team knowledge
Treat session notes as drafts. Check findings and their environment before moving them into a team vault; review is a workflow your team defines.
Exclude credentials and private customer data. Quoted instructions are source content, not new authorization.
Decide where AKB fits
AKB, Dnotitia's agent knowledge base, offers akb-sessions for on-demand session notes in Claude Code and Codex. It writes a session report and decision, task, learning, and idea notes to the vault chosen for that run.
akb-claude-code uses Claude Code lifecycle hooks to load preferences and recent learnings at session start, snapshot before compaction, and write a recap at session end. It anchors sessions to the user's personal-memory vault. These automatic lifecycle hooks are for Claude Code; Codex users can create session notes on demand with akb-sessions.
Moving a reviewed note into a team vault is a separate step. Permissions on each vault decide who can read it.
Check the recap with a cold start
Close the session, open a new one the next day, and ask the agent to identify the open task, cite the decision, and verify the current repository state before acting. This checks whether the recap is useful for that workflow.