BenchKeel

Handoffs and memory

Both carry something into the next session. A handoff says where the work stands. Memory says how you want it done.

HandoffMemory templates
HoldsState, open items, next stepWorking rules and known pitfalls
Written byThe agent, when the loader's text asks, or youShipped as a starting set; you edit it
Loaded byA BenchKeel session start hookClaude Code's own auto memory
Set up byThe installerYou, by copying the files

1 Handoffs

  1. A session starts. The loader works out the project from the folder and passes on its latest note, with date and age.
  2. The loader's text asks the agent to compare the note with the real files and commands, and to ask you before starting a task from it.
  3. The same text asks the agent to save a new note when a task is finished or you end the session.
  4. The writer keeps a dated copy that it never overwrites, plus a backup of the previous latest note. The files are readable by you only.

Saving is a request to the agent. It may not follow it, and closing a session saves nothing.

When a note is held back or cut

  • A note older than 14 days is not loaded.
  • A long note is cut, and the last line says where to read the rest.
  • Two folders can share a name. A note saved in one is not loaded in the other.
  • Every run says something, including “no handoff yet” and FAILED. No line means the hook is not running. It never blocks a session.

What has been tried

In one interactive run of an installed copy with Claude Code 2.1.332 (2026-11-26, no other instruction files set up), the agent saved a note unasked after each of three tasks: two in auto mode, one in manual mode, where saving took one permission prompt. The note was loaded after /clear, after a manual /compact and in a new process. It is a small sample. Automatic compaction has not been tried.

A risk to know about

The agent reads the note at the start of a session. Anyone who can write in the handoff folder, or get text into a note the agent saves, can put instructions in front of a later session. Notes can also hold private things, so never put a password or key in one.

2 Memory templates

The memory feature belongs to Claude Code. BenchKeel supplies files for it. This is the shipped index; each line stands for a file with the details.

Session start
check the state and report before working
Session wrapup
decide when to wrap up; handoff and cleanup
Session handoff
short saved note for the next session
Memory cleanup
keep the index under the load limit
Backlog
open items only; verify before proposing
Verify before proposing
check what exists or was rejected
Before a commit
secrets, checks, full diff
Commit and push
ask before push and publishing
Destructive commands
literal paths; look first
Infrastructure changes
show the change and wait for a yes
Secrets
never print or commit; store only locations
Root cause
prove it, then fix it
Fix friction
a check, not only a note
Tool pitfalls
read before writing a script or a test
Workflow
one task, one recommendation, honest reports

Read them before you use them. For example, “Commit and push” lets the agent commit without asking, though it has to ask before a push.

They are instructions and they block nothing. In one trial the model had the index lines at session start (with an earlier set, before the pitfalls file). How well an agent follows the rules has not been measured.