Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By m4cd4r4v0.7.1MITIn 1 marketplace
When a Claude Code chat gets long, Cornerman saves a handover, clears the chat and carries on by itself, up to the number of clears you set. Tables, lists, links and paths from the cleared chat stay one click away.
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; writes files; reads files; reads environment variables (CLAUDE_CODE_ENTRYPOINT, CLAUDE_CONFIG_DIR, CLEAR_RESUME_HEADLESS, CLEAR_RESUME_HOME, CORNERMAN_HEADLESS, CORNERMAN_HOME, HOME, USERPROFILE); runs commands; sends prompts on its own.
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Relay: clear and continue by itselfrelay
After Claude saves a handover, cornerman runs /clear and submits the prompt that continues from it, with no keypress. A number of clears per Claude Code window (3 is the default), unlimited, or off. Anything else is off. This is the default for every window: type /relay off, on, unlimited or a number to change it for one window, and the status line shows the clears left (unless Status line is off). Needs Claude Code 2.1.275 or later; an older build ignores it and the rest of cornerman works as before.
stringdefault 3
Nudge at (tokens)nudge_at
Context size, in tokens, that triggers the nudge. Set it above the size a new session starts at, and below the size where Claude Code compacts on its own. A CORNERMAN_NUDGE_AT line in settings.json wins over this.
number50000–1000000default 250000
Nudge to save a handoverauto_nudge
When the chat's context passes the size in Nudge at, Claude is asked once per session to save a handover. With Relay off, you type /clear yourself. A CORNERMAN_AUTO line in settings.json wins over this.
booleandefault true
Status linestatus_line
Show the relay's clears left, and Clearing... or Continuing... while it acts, in the status line above the prompt. Off hides those; the relay works as before, /relay still reports it, and Idle handover's toast still shows.
booleandefault true
Idle handover: act before the prompt cache expiresidle_handover
When you have been away until the prompt cache is about to expire and the context is large, resuming cold pays for a full rewrite of it. Measured on Sonnet 5.5 with a 390k-token session and the 60 minute cache (10 Oct 2026, n=3 each): US$1.56 cold, US$0.15 to US$0.17 with a handover written while warm, and only if you come back. off, toast (a status message that stays until your next turn), auto (asks Claude for the handover, clears, and waits for you; it does not continue the work) or smart (like auto, but Claude may answer 'Nothing to hand over.' when the work is finished, and then nothing is saved or cleared). auto and smart need cache_ttl_minutes of 10 or more, else they act as toast; they act as toast too while a tool call runs. Anything else is off. Needs Claude Code 2.1.275 or later.
stringdefault smart
Idle handover: smallest context (tokens)idle_min_tokens
Below this size a cold rewrite is cheap, so idle handover does nothing.
number10000–1000000default 100000
Prompt cache lifetime (minutes)cache_ttl_minutes
How long your prompt cache lasts after a reply. Only the 60 minute subscription cache was measured. 5 minutes is the documented default with an API key and was not measured. Idle handover acts about 5 minutes before this (half of it, if shorter).
number1–1440default 60
Clear the chat. Keep the goal, the next step and the decisions.
When a Claude Code chat gets long, Cornerman saves a handover, clears the chat and carries on by itself, up to the number of clears you set (3 per window by default). A handover is a short note about the work: the goal, the next action, where things stand, the decisions made and what already failed.
Coming back to a 390k-token session after the prompt cache expired cost US$1.56; a handover written while the cache was warm, plus a fresh session reading it, cost US$0.15 to US$0.17 (Sonnet 5.5, n=3 each, 10 Oct 2026). The handover is a plain text file you can read and edit. On a 30-item build, the relay and Claude Code's auto-compaction each finished 5 of 6 runs at about the same tokens.
Install it and work as usual. When a chat passes 250k tokens (the default; change it with Nudge at in /plugin configure, or for one window from the VS Code footer):
/clear.By hand, with the relay off: /cornerman:handover, /clear, go.
Settings, all on by default for a new install. Set any of them to off to stop it:
auto_nudge): when the chat's context passes Nudge at (250k tokens by default), Claude is asked to save a handover, and asked again at a turn end (up to 3 asks in all) if it neither saved one nor replied "Nothing to hand over." or "Handover not yet: ...".relay): after Claude saves a handover, the plugin runs /clear and submits the prompt that continues from it, up to the number of clears you allow (3 per window by default). It stops when the budget is used or when two continued sessions in a row make no new commit. Needs Claude Code 2.1.275 or later.idle_handover: off, toast, smart (the default) or auto; with cache_ttl_minutes, default 60, and idle_min_tokens, default 100000): when you have been away until about 5 minutes before the prompt cache would expire and the context is at least idle_min_tokens, show a status message (toast) or ask Claude for a handover and clear, leaving the new session waiting for you (auto), or the same where Claude may answer "Nothing to hand over." when the work is finished and then nothing is saved or cleared (smart); auto and smart need cache_ttl_minutes of 10 or more, else they act as toast. Once per session, in interactive sessions, with the relay on or off. Measured on Sonnet 5.5, 390k tokens, 60 minute cache, 10 Oct 2026 (the 5 minute API-key default was not measured): resuming cold cost US$1.56 (n=3), a handover written while the cache was warm US$0.15 to US$0.17 in all (n=3), and the saving exists only if you come back. Details: HOW-IT-WORKS.SessionStart (startup, clear and compact) loads a waiting handover. PostToolUse and Stop check the context size for the nudge and the relay. Each hook runs node on a script in this plugin, and exits quietly if Node 18 or later is missing.git in your repo to read the branch, status and recent commits. It never switches your branch or touches your index or files, and outside web mode (below) it never commits or pushes.~/.cornerman. Each loaded handover is also copied to ~/.cornerman/loaded/ for 30 days. An empty ~/.cornerman/.welcomed file records that the first-session notice was shown. Keep secrets out of them.CORNERMAN_WEB=1, for Claude Code on the web) pushes each handover to its own cornerman/<branch> branch on your repo's origin, and runs one git fetch origin at session start. Handovers found in git are listed as untrusted and never loaded on their own.hooks/relay.ts)A mod is a function-hooks module that runs inside Claude Code. This one runs the relay. It also runs the optional idle handover (below), and nothing else.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub m4cd4r4/cornerman --plugin cornermanPlugins from other owners that cover similar ground