# Handoff

Resume the most recent agent session for the current working directory, leading with...

- Repository: https://github.com/rohitg00/agentmemory (30072 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add rohitg00/agentmemory --skill handoff -g -a claude-code -y`
Codex: `npx skills add rohitg00/agentmemory --skill handoff -g -a codex -y`
Cursor: `npx skills add rohitg00/agentmemory --skill handoff -g -a cursor -y`
Gemini CLI: `npx skills add rohitg00/agentmemory --skill handoff -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add rohitg00/agentmemory`

## Description

Resume the most recent agent session for the current working directory, leading with any unanswered question. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

The user wants to resume work. Optional cwd override: $ARGUMENTS

## Quick start

```json
memory_sessions { "project": "<current-project-id>", "limit": 20 }
```

Pick the most recent session whose `cwd` matches this project, then:
`memory_recall { "query": "<session top concepts>", "project": "<current-project-id>", "limit": 10 }`.
When an agent is requested, pass the same `agentId` to both calls.

Expected output:

```text
Resuming 7f3a9c2 "Auth refresh rework".
Open question: should logout revoke all device tokens or just the current one?
Next step: decide revoke scope, then update auth/logout.ts.
```

## Why

Match the session by directory boundary, not raw prefix, so a sibling repo never
gets mistaken for this one. Never invent observations for an empty session.

## Workflow

The rest: https://github.com/rohitg00/agentmemory/blob/HEAD/plugin/skills/handoff/SKILL.md
