Skip to content
Back to skills

Pickup

ASecurity

Loads the most recent putdown handoff file for the current project and primes the session with full prior context. Use when the user says "pickup", asks "where were we" after opening a fresh chat, or wants to resume work from a prior session that ended with $putdown. Do NOT use for reopening a previous Codex conversation (that is `codex resume`) or for resuming media, downloads, paused processes, or VMs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgobashgit

Works with

  • claude code
  • terminal
  • cli
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add cabaynes/charles-agent-skills --skill pickup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pickup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pickup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cabaynes-pickup-charles-agent-skills/badge)](https://www.skillsdirectory.com/skills/cabaynes-pickup-charles-agent-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pickup
description: Loads the most recent putdown handoff file for the current project and primes the session with full prior context. Use when the user says "pickup", asks "where were we" after opening a fresh chat, or wants to resume work from a prior session that ended with $putdown. Do NOT use for reopening a previous Codex conversation (that is `codex resume`) or for resuming media, downloads, paused processes, or VMs.
---

> **Codex version.** Invoke with `$pickup`, optionally followed by a putdown timestamp
> (`$pickup 2026-09-12-0901`). Paths below use `$CODEX_DIR`, meaning `${CODEX_HOME:-$HOME/.codex}`.
> Putdowns in a repo's `.putdowns/` folder are shared with the Claude Code version of this skill,
> so a handoff written in either tool can be picked up in the other.

# $pickup — Pick up from a prior putdown

The user just started a fresh session and wants to continue from where the previous session ended. There is a putdown file (a handoff note) waiting for you.

> A stray `.checkpoints/` folder, if you see one, is the pre-2026-06-13 name for `.putdowns/` — read it the same way.

## Step 0 — Sync check (CLI↔web handoff)

If the CWD is a git repo with a remote, run `git fetch origin` then `git rev-list --count HEAD..@{u}` before anything else. If origin is **ahead**, work happened on another machine or tool (another Codex or Claude session pushed it): tell the user and offer to `git pull` before resuming — the newest putdown may be inside the pulled `.putdowns/` folder. If fetch fails (offline, no remote), or the branch has no upstream (`rev-list` errors with "no upstream configured"), say so in one line and continue with local putdowns only.

## Step 1 — Find the candidate putdown(s)

The current project's slug is the basename of the CWD. Putdowns live in two places: the local `$CODEX_DIR/putdowns/<project-slug>/` dir and the repo's own `.putdowns/` folder (synced via git, and shared with Claude sessions working in the same repo).

List all putdowns for this project from both locations, newest first, and grab the current time so you can label them accurately later:
```
CODEX_DIR="${CODEX_HOME:-$HOME/.codex}"
find "$CODEX_DIR/putdowns/$(basename "$PWD")" "$PWD/.putdowns" -maxdepth 1 -name '20*.md' 2>/dev/null | awk -F/ '{print $NF "\t" $0}' | sort -r | cut -f2-; date
```

Why this shape and not `ls -t <dir>/*.md <dir>/*.md`: in zsh a glob with no match aborts the **whole** command, so a repo without a `.putdowns/` folder (every public repo) would hide the local putdowns too. `-name '20*.md'` skips `.putdowns/MEMORY-INBOX.md`, which is not a putdown. Sorting by filename, not modification time, keeps the order right after a `git pull` or checkout rewrites mtimes.

**If the user passed a timestamp argument** (e.g. `$pickup 2026-09-12-0901`), load the file with that name directly — skip the count branching and the picker below. If no file matches, say so and fall through to the normal flow.

If the same `<YYYY-MM-DD-HHMM>.md` filename appears in both locations, treat it as ONE putdown and prefer the in-repo copy — it may carry edits pushed from the other surface.

Hold onto the `date` output — you'll subtract from it in Step 1a to produce relative-time labels. The system reminder gives you today's *date* but not the current *clock time*, so without `date` you'll guess and get it wrong (e.g. labeling a 5-minute-old putdown as "2h ago").

Branch on the count:

- **0 files** — no putdown matched. Check `$CODEX_DIR/putdowns/` to list all available project subfolders, in case the user is in a different CWD than when they made the putdown (e.g. they ran `$putdown` from `<workspace-root>/my-app` but ran `$pickup` from `<workspace-root>/my-app/src`). Tell the user no putdown was found for this project, list what *is* available, and ask which to load (or to start fresh).
- **1 file** — load it directly. Skip Step 1a and proceed to Step 2 with that file.
- **2+ files** — go to Step 1a to let the user pick. (The user sometimes runs parallel VS Code conversations rooted in the same project folder, so the most recent file is not always the one they want.)

## Step 1a — Present the picker (only when 2+ putdowns exist)

For each of the **4 most recent** candidate files, extract:

- **Timestamp** from the filename (`2026-04-27-0933.md` → `2026-04-27 09:33`) plus a relative-time hint like `"5m ago"`, `"2h ago"`, or `"yesterday"`. Compute the delta against the `date` output you captured in Step 1 — don't eyeball it. A file from earlier today is hours ago only if the clock time actually differs by hours.
- **Session goal** — the text after `**Session goal (this conversation)**:` in the file header. Truncate to ~60 chars.
- **First sentence of `## Where we are right now`** — used for the option's description. Truncate to ~140 chars.

A quick way to grab the metadata cheaply is `head -n 25 "$PUTDOWN_FILE"` and then parse the relevant lines.

Ask **"Which putdown do you want to load?"** as a numbered list in chat, newest first, then stop and wait for the answer. (If a structured user-input tool is available in this session and accepts four choices, you may use it instead; the numbered list always works.) For each entry:

- **Line 1:** `<n>. <relative-time> — <session-goal truncated>` (e.g. `1. 2h ago — Pipeline seed flag bug`). Mark the **first** entry `(recommended)` — it's the newest.
- **Line 2, indented:** first sentence of "Where we are right now". If that section can't be parsed, use `(no summary available)`.

If a candidate file is missing both the `Session goal` line and the `Where we are right now` section (corrupt or hand-edited), still include it in the picker but use the bare filename timestamp as the label and `"(no summary available)"` as the description — don't fail the whole picker over one malformed file.

If there are **5 or more** putdowns, show only the 4 newest in the picker, and print one line above the list like: `"Showing the 4 most recent of N putdowns — or reply with an older timestamp."` The user can then paste an older timestamp (e.g. `2026-03-12-0901`) if they really want one.

Once the user picks, use the chosen file as the putdown for the rest of the flow and continue to Step 2.

## Step 2 — Read the putdown and recent state

In parallel:
- Read the putdown file in full
- `pwd` to confirm CWD
- `git status` and `git log --oneline -5` to see if anything changed since the putdown was written
- Read the project `AGENTS.md` if one exists
- Read the project notes index `$CODEX_DIR/notes/projects/<slug>/INDEX.md` if it exists (written by `$takenotes`; `<slug>` is the CWD with every `/` turned into `-`). Nothing loads it automatically unless the global `AGENTS.md` says to, so read it here.
- Read the project's **`OPEN-THREADS.md`** if one exists — at the repo root for a private repo, or at
  `$CODEX_DIR/putdowns/<project-slug>/OPEN-THREADS.md` for a public one (the `$openthreads`
  skill owns the file and its placement rule). Count the open `- [ ]` items per `##` section — the
  `## Closed` section at the bottom is not counted — note any `due YYYY-MM-DD` already past, and the
  oldest `added` date. Also check Closed for any `- [x]` line whose `closed YYYY-MM-DD` is **later
  than the putdown's date** (the `YYYY-MM-DD` in its filename): those were closed after the handoff,
  on another surface or by hand. Same-day closes can't be told apart from the putdown's own
  reconcile, so they don't count.

If git state has drifted significantly from what the putdown described (e.g. new commits, files modified outside what was listed), flag this to the user — the world may have moved since the putdown.

**Check the putdown's `## Environment state` against reality too** — git is not the only thing that
drifts. For each line that sets a precondition, test it where you can:

- **"Restart needed: yes"**, or a manual-steps line saying restart / relaunch / fresh session — the
  skills, MCP servers, or config that changed load reliably only in a freshly launched Codex. If you
  can't confirm Codex was relaunched after the putdown's timestamp, flag it: quit and relaunch Codex,
  then `$pickup`.
- **Dev servers or background processes listed as running** — check they still are (`lsof -i :<port>`,
  `pgrep -fl <name>`); a reboot or closed terminal kills them.
- **Other manual steps** (log in, plug in a drive, run a `!` command) — check the ones a command can
  confirm; list the rest as "not checked" rather than assuming they're done.

**Check the AGENTS.md files fit their budget** — Codex assembles every AGENTS.md from the repo root
down to the working directory into each session:

```bash
wc -m -l AGENTS.md 2>/dev/null; awk 'length>500{print "line "NR": "length" chars"}' AGENTS.md 2>/dev/null
```

Over **12,000 characters or 200 lines**, or any line over 500 characters → one ⚠️ line in the brief
with the numbers (e.g. `⚠️ AGENTS.md 38,963 / 12,000 chars — worth a trim pass`). Don't trim during
a pickup; it's a flag, not a task. Under budget → say nothing.

## Step 3 — Brief the user

Reply with a tight summary so the user can confirm you've loaded the right context. Structure:

```
Resumed from: <putdown file path> (<how long ago it was written>)
<If a picker was shown: append " — chosen from N available putdowns in this project">

**Where we left off:** <one sentence>

**Resume here:** <every item from "## What's in progress (resume here)" — file:line (or commit/doc/command), its state, and the next action, kept as specific as the putdown wrote it — omit this line if the section is missing or "none">

**Must address:** <every item from "## Must address next session", verbatim — omit this line if the section is missing or "none">

**Next up:** <the first 1-3 next steps from the putdown>

**Blockers waiting on you:** <list, or "none">

**Open threads:** <N open — Due now X · Decisions Y · Work Z · Outside W; "M overdue" if any; oldest from <date>>
<the "Due now" items verbatim, then the top 2–3 others — omit the whole block if there is no OPEN-THREADS.md>
<Only if a Closed line is dated after this putdown's day: "Closed since that putdown: <N> — <first outcome, truncated>". Otherwise say nothing about Closed.>

<If git state has drifted, or an Environment-state precondition failed (no restart since the putdown, a server not running): a "⚠️ Note:" line for each, saying what to do.>
```

Never summarize or drop "Must address" items — they exist because the user wanted proof the next
session saw them. Older putdowns won't have the section; that's fine.

The open-threads block is why that file exists: it is how parked work resurfaces every fresh session
without the user re-reading a fortnight of putdowns. Overdue items are shown, never silently skipped;
an old item is reported, not nagged about. Pickup only *reads* the file — adding, closing, and
reconciling are `$openthreads`'s job.

Then **stop and wait for the user to confirm or redirect.** Do NOT auto-execute the next steps. The user may want to adjust direction, skip a step, or hand off to another agent. Once they confirm, proceed.

## Step 4 — Once confirmed, execute

Pick up the work. Track the "Must address" items (first) — with the plan tool (`update_plan`) if this session has it, otherwise as a Markdown checklist in chat —, then the "What's in progress (resume here)" items — a mid-task putdown means the user wants to carry on from exactly that spot, so continue the unfinished work rather than restarting it — then the "Immediate next steps" list from the putdown; don't mark the session's work done while a "Must address" item is still open unless the user dropped it. Honor the "What NOT to redo" section — do not re-attempt approaches the previous session ruled out. If the user picks an open thread instead of the putdown's next step, that's a normal redirect — work it, and `$openthreads done` it when finished.

## Notes on judgment

- **One putdown at a time.** Do not auto-merge multiple putdowns. When 2+ exist, present the Step 1a picker and load only the user's choice.
- **Trust the putdown, but verify file references.** If it says "edit foo.py:142", confirm that file/line still exists before acting on it (rename/refactor may have happened).
- **If the putdown is stale** (say, more than a few days old) and significant changes have happened on disk, ask the user whether to use it or start fresh.
- **Don't recreate the previous session's chat.** You're picking up the work, not roleplaying the prior conversation. Be forward-looking.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.