BenchKeel

Small tools for working with Claude Code, kept where you can reinstall them.

You add a rule after something goes wrong, then a hook, then a script. A few months later your setup does a lot, and moving it to another machine means remembering all of it. BenchKeel is a place for those pieces, each with a note on what it does and where it stops.

Not released yet. There is nothing to download.

  1. The pipe guard
  2. Handoff notes
  3. The manifest check
  4. Memory templates
  5. The installer

1 The pipe guard

Here the shell takes the exit status of tail. The tests can fail and the commit still runs.

command
run-tests | tail -3 && git commit -m done

pipe guard deny
pipe guard: the status of `run-tests | tail`
is the status of its last command, so a
failure before it does not stop `git commit`.
Rewrite the command: put `set -o pipefail;`
first and join the steps with `&&`; …
The guard's own message, cut short and re-wrapped.

It is a hook that reads a command before Claude Code runs it, and runs none of it itself. It also watches for pushes and deploys.

It does not look inside scripts or connect separate calls, and a command it cannot read goes through. It is there for mistakes. It is not a security boundary. More about the gaps.

2 Handoff notes

A handoff is a short note that tells the next session where the last one stopped. It is saved per project and loaded when a session starts.

BenchKeel handoff: latest note for project
'my-project', from ~/…/LATEST-my-project.md,
written 2026-11-26 19:38 (0 days ago).
[instructions to the agent left out]
The note:

# my-project
Last session: added the export command; its tests pass.
Open: the error message for an empty file.
Next: ask before starting it.
What the session receives, from a trial run with a made-up note. Path shortened, lines re-wrapped.

The agent is asked to save these notes. Nothing forces it to, so ask for one before closing a session that matters. How they work.

3 The manifest check

You list the folders to watch and mark each file in them as kit, adapt, private or ignored. At session start, the check says which files are unmarked, and which are new, changed or missing since you last accepted the state.

BenchKeel manifest check: OK
(1 watched files, all classified, none new,
changed or missing)

after a new hook file appears:

BenchKeel manifest check: WARNING,
1 finding(s), 2 watched files
  UNCLASSIFIED: .claude/hooks/my-hook.sh
From a run on a throwaway home folder, lines re-wrapped.

It prints a line every time, so no line means it is not running. Whatever can edit your files can edit the check too: use it to notice changes, not to defend against them.

4 Memory templates

A starting set of files for Claude Code's auto memory: working rules, one per file, plus a list of traps in shells, tests and lookups. You copy them in yourself and edit them. See the whole index.

5 The installer

It sets up the first three. The templates are not part of it yet.

  • It shows its plan and asks before writing. No option skips the question.
  • It backs up settings.json before editing it. Your other hooks stay; the file's formatting may change.
  • Uninstall removes what is still exactly as installed. Files you changed, your handoffs and your backups stay.
  • It uses sudo only to add a missing Python or git, on Debian 13, and does not change how sudo works.
  • It does not install Claude Code or log you in.

So far it has been tested on Debian 13 only. What has and has not been tried.