- Home
- Skills
- Workflow Automation
- Context Handoff & Resume
Context Handoff & Resume
End long AI coding sessions with a structured handoff and resume in a fresh chat for a fraction of the tokens.
Free
Works with the AI Agents you already use
Context Handoff & Resume
Example session with this skill installed
We finished moving the login form to React Hook Form, but the logout button still uses the old class component. Let's wrap up for today and continue in a new chat tomorrow.
- Read your context and instructions
- Compiled the context handoff
Ran new_handoff.py --slug login-form-migration, filled both files, --scan passed (no secrets), all 4 probe questions answered from the files.
.handoff/2026-11-14_1830_login-form-migration/summary.md (excerpt)
TL;DR
Migrating auth UI from class components to hooks. Login form now uses React Hook Form + zod; tests green. Logout button still a class component (LogoutButton.jsx). Next: convert it and delete the legacy withAuth HOC.
Files
| File | Action | Why |
|---|---|---|
| src/auth/LoginForm.tsx | modified | RHF + zod schema, removed local state |
| src/auth/loginSchema.ts | created | shared validation |
| src/auth/LogoutButton.jsx | read | still class-based, not touched |
Decisions
| Decision | Alternatives | Reason |
|---|---|---|
| React Hook Form | Formik | already in package.json, smaller bundle |
Key context
- Tried
useFormStatefor server errors: breaks the existing toast flow, reverted.
Open questions / blockers
- Keep
withAuthuntil the admin panel migrates? Owner: you.
next_steps.md: 1) run npm test -- auth (1 min) 2) convert LogoutButton to a hook component (20 min) 3) remove withAuth usages in src/auth (15 min)
Final message, copy into a new chat:
Continue from a previous session.
- Summary: .handoff/2026-11-14_1830_login-form-migration/summary.md
- Next steps: .handoff/2026-11-14_1830_login-form-migration/next_steps.md
Context: migrating auth UI to hooks; login form done, logout button pending.
First actions once I confirm:
1. Run npm test -- auth
2. Convert LogoutButton to a hook component
3. Remove withAuth usages in src/auth
Read both files, verify they match the repo, then wait for my go-ahead.
Connects securely to your tools. The creator never sees your data.
About this skill
Long agent sessions get slow and expensive: every turn re-sends the whole history, and once the prompt cache expires you pay for it again at full price. Context Handoff turns a session into two small files and a ~80-word cold-start prompt.
How it works
CREATE - say "wrap up" and your agent:
- Scaffolds
.handoff/<YYYY-MM-DD_HHMM>_<slug>/withsummary.mdandnext_steps.md - Fills
summary.md: TL;DR (max 10 lines), outcomes, files touched (path, action, why), decisions with alternatives and reasons, key context and dead ends, open questions - Fills
next_steps.md: max 5 ordered, time-estimated actions, plus Deferred and Out of scope blocks - Redacts secrets and runs a heuristic secret scan
- Self-checks with 4 probe questions answered from the files only
- Prints a self-sufficient cold-start prompt for the next chat
RESUME - in the new chat, "resume from <path>" loads the handoff, checks it against the repo and git (drift reported in one line) and waits for your go-ahead instead of charging ahead.
Works in any repo and any SKILL.md-compatible agent.
What you get
SKILL.mdwith CREATE and RESUME workflowsscripts/new_handoff.py: scaffold (--slug,--dir,--root,--no-git),--list,--latest,--scanfor secret-looking strings- Templates for
summary.mdandnext_steps.md - Good-handoff checklist and a bad-vs-good worked example
Permissions / network
- No network access, no external hosts, no secrets needed
- Writes only inside
.handoff/(configurable via--dirorHANDOFF_DIR) - Optional read-only local git commands (branch, last 3 commits, status); disable with
--no-git
Handoff quality depends on what the agent still has in context after auto-compaction. The secret scan is heuristic (common key formats and key=value pairs). Built for chat sessions, not for in-loop context compression of running agents.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
Requires
Permissions
File Scopes
Terminal only runs the bundled Python script and optional read-only git commands (rev-parse, log -3, status). Writes only inside .handoff/. The optional HANDOFF_DIR variable can change that folder. No network.