lk-handoff-guard
by connectwithub · ★ 1 · updated 9 days ago
Never lose a session to the context limit: it watches context fill, writes a handoff into .claude/brain/ in time, then clears and resumes from it.
Install
/plugin marketplace add connectwithub/loopkeeper/plugin install lk-handoff-guard@loopkeeperThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startclassic.SessionStartprompt.submitturn.startturn.stepturn.completetool.callsession.compactcommand.runui.render- API calls
$.clock.after$.clock.now$.command.register$.command.run$.env.get$.fs.exists$.fs.read$.fs.write$.model.complete$.model.fork$.process.run$.prompt.submit$.session.cwd$.session.id$.session.messages$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.set$.ui.ask$.ui.close$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPane- Can see
classic hooksevery promptevery tool callcompaction- Reach
- level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads the transcriptreads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/connectwithub/loopkeeper
- Path in repo
plugins/lk-handoff-guard- Source commit
99c46cbthe exact code the scan read- Author
- @connectwithub
- License
- A license file GitHub could not identify — read it in the repository before reusing code.
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from connectwithub/loopkeeper
lk-agent-map
connectwithub/loopkeeper
See and cap your subagents: cards with cost, tokens, context and progress, spawn caps with an override you approve, tree and team views, idle alerts and a Stop button.
lk-attention
connectwithub/loopkeeper
Look away while Claude works: a GNOME notification, a sound, a toast and a band when it needs you or finishes something long, plus an /lk-attention inbox.
lk-pr-watch
connectwithub/loopkeeper
Know when CI breaks without leaving the session: PR and check state above the prompt, a /lk-prs pane, toasts on changes and a note to Claude when a check fails.
lk-secret-guard
connectwithub/loopkeeper
A seatbelt for secrets: stops credential-shaped strings and your private deny-list of words before Claude writes them into files or shell commands.
lk-token-budget
connectwithub/loopkeeper
Stop runaway token spend: budgets per session and per subagent with warn, deny-agents or stop actions, plus a prompt-cache countdown, cold-cache pings and keep-warm.
lk-where-am-i
connectwithub/loopkeeper
Know where the session is at a glance: repo, branch, worktree, uncommitted and unpushed work, usage windows and the prompt cache in one line above the prompt.
loopkeeper
connectwithub/loopkeeper
Keep Claude Code on a plan: stages, approval gates and a plan-scoped file budget enforced by hooks, plus model routing, review loops and a decision log.