Skip to content
Back to skills

Agent Resume

ASecurity

Resume a Claude Code or Codex session later, from outside it. Use to get a status message when a long job finishes, or to wake a session after a delay ("in 3 hours, look at new PRs") even if the session has closed by then.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agentsgoshellbash

Works with

  • claude code

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill agent-resume --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Resume?

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

Security grade badge for Agent Resume
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-agent-resume/badge)](https://www.skillsdirectory.com/skills/majiayu000-agent-resume)

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: agent-resume
description: Resume a Claude Code or Codex session later, from outside it. Use to get a status message when a long job finishes, or to wake a session after a delay ("in 3 hours, look at new PRs") even if the session has closed by then.
---

# Agent resume

`agent-resume` sends a message into a session when a trigger fires. The
trigger runs as a `systemd-run --user` unit, so it outlives your turn and your
process, and logout too if lingering is on (`loginctl enable-linger`), but not
a reboot. `scripts/link-skills.sh` puts it on
PATH; it also lives at `bin/agent-resume` in this skill.

```bash
# Status update when a job finishes: the command runs inside the unit.
agent-resume codex --message "address any errors" -- make test

# Timed resume; the session may be closed by then.
agent-resume claude --time 3h --message "resume and look at new PRs on the repo"

agent-resume list
agent-resume cancel <trigger-id>
```

The completion message is your `--message` plus the exit status, the last 40
log lines, and the log path under `~/.local/state/agent-resume/`. The command
gets your environment and working directory. `--time` takes a systemd time
span (`90min`, `3h`, `2d`). `--dry-run` prints the systemd and delivery
commands without running anything.

## Session IDs

The session ID defaults to your own: Claude Code exports
`CLAUDE_CODE_SESSION_ID` and Codex exports `CODEX_THREAD_ID` to the shell.
Pass another ID as the second argument to message a different session.

The message reaches a live session directly and resumes a closed one with the
permissions it last ran under. When no permissions are recorded, it resumes in
auto-approve mode (`--permission-mode auto` for Claude, `--approve-for-me` for
Codex), which still runs an automatic safety check on actions.

## Claude prerequisite

A bypass-permissions Claude session holds messages from agent-resume for
approval unless `~/.claude/settings.json` has `"crossSessionInbound":
"accept"`. `scripts/link-skills.sh` offers to set it, and `agent-resume`
warns when a Claude trigger is scheduled without it.

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.