All writing
AI 2 min read

A small tool for Claude Code

Resume where you stopped

I wanted a handoff note written before the limit hits, and after I have not typed for two hours.

Nabhak "Yhai" S.Product Designer at OOZOU, Bangkok

Hit the limit, lose the thread

I hit the limit and lost my place. More than once.

I use Claude Code most of the day. Sessions get long.

The usage limit hits. The session stops. The notes about what I was doing stop with it.

The other case is quieter. I step away for a meeting, or for the night.

Next morning I open a new session. I ask the same question. Where was I?

The usage limit hits. The session stops.

I did not want to remember to write a handoff note. I wanted it written for me, before the limit hits, and after I have not typed for two hours.

So I made Momo Auto Handoff. A small, local tool for Claude Code.

No AI calls. No network. Nothing leaves the Mac.

What it does

  • Warns before the limit. At 85% of the 5-hour window, or 90% of the 7-day window, it tells the model once. Finish the current step. Commit your own files. Update the handoff note. Tell me the limit is near.
At 85% of the 5-hour window, or 90% of the 7-day window, it tells the model once.
  • Saves a snapshot when the limit hits. A short note: the last messages, the files edited, the git status. The same at the end of every session.
  • Saves a note after a quiet gap. Every 20 minutes it looks for sessions idle for 2 to 48 hours and writes a plain summary. It never writes into the project folder and never runs git.
  • Points the next session to it. A new session is told the note exists. Type /recall and it reads the notes back. What I was doing. What is unfinished. Which files are uncommitted. What to do next.

Install

Three lines. The first run changes nothing. It only shows the plan.

git clone https://github.com/Nabhak/momo-auto-handoff

cd momo-auto-handoff && ./install.sh --dry-run

./install.sh

It backs up your settings first. It needs no sudo. The uninstall script removes only what it added.

What you see

Three moments.

  • The warning. Near the limit, the model wraps up on its own. A commit, a fresh handoff note, and one line to me: the limit is near.
  • The saved note. One plain file per project, kept outside the project folder. Last messages, edited files, git status. Secrets redacted, best effort.
  • The next morning. New session, type /recall.

It tells me where I was, what is unfinished, and what to do next. I carry on.

It tells me where I was, what is unfinished, and what to do next.

Honest limits

  • The idle job is macOS only. It runs on launchd. The hooks work on Linux too.
  • It cannot run /compact, or any Claude Code command, from outside. It only passes a message to the session and writes files.
  • The limit numbers exist only on subscription plans. On an API key, Bedrock or Vertex the guard stays silent. The rest still works.
  • The warning is advice. The model usually follows it. It does not have to.
  • The idle note is mechanical, not written by an AI. Check the state before acting on it.

Get it

Open source, MIT. Built with Claude Code, for Claude Code.

View on GitHub

Want to talk shop?

A question, a different take or a story of your own? Email me. No newsletter, no pop-up.