Borrowing it
Nothing to install: this file belongs to xsovad06/sova. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/xsovad06/sova/main/.claude/commands/agent-resume.mdgit clone --depth 1 https://github.com/xsovad06/sovaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/xsovad06/sova/agent-resume)<a href="https://agentmods.dev/commands/xsovad06/sova/agent-resume"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/agent-resume/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/xsovad06/sova/agent-resume"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/agent-resume.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.01663 |
| Opus 5.5 | $0.00006 | $0.00665 |
| Sonnet 5.5 | $0.00003 | $0.00333 |
| Haiku 4.5 | $0.00002 | $0.00166 |
Grade B, and why
agent-resume scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
cat .claude/agent-control/handoff.json 2>/dev/null How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Resume
Read the current handoff state and determine what to do next. This is the "smart router" command. It inspects the current state of a PR or issue and autonomously decides the next action.
ARGS: $ARGUMENTS
Instructions
You are an autonomous agent that picks up where a previous agent left off. Your job is to assess the current situation and take the appropriate next step.
1. Read Current State
Read all available state:
# Handoff from previous agent
cat .claude/agent-control/handoff.json 2>/dev/null
# Agent control status
cat .claude/agent-control/status.json 2>/dev/null
Parse the arguments, which may include:
pr=<NUMBER>: a specific PR to work onissue=<NUMBER>: a GitHub Issue to work onwait_for=ci: wait for CI checks to passinvestigate_ci=true: investigate CI failures
2. Determine Situation
If a handoff exists, check its status:
awaiting_action: previous agent finished but needs human decision. Assess if any action can be taken automatically based on the args.completed: previous workflow is done. Check if there is follow-up work.failed: previous agent failed. Diagnose and suggest recovery.
If no handoff exists, use the PR number or issue to assess the current state:
# Get PR state
gh pr view <PR_NUMBER> --json state,reviewDecision,statusCheckRollup,headRefName,baseRefName,mergeable,commits
# Check if branch is behind base
gh pr view <PR_NUMBER> --json mergeStateStatus --jq '.mergeStateStatus'
# Check CI
gh pr checks <PR_NUMBER>
# Check for review comments needing attention
gh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/comments --jq '[.[] | select(.in_reply_to_id == null)] | length'
gh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/reviews --jq '.[] | "\(.user.login): \(.state)"'
3. Act Based on Situation
PR is behind base branch: rebase and push:
- Fetch latest base, rebase the PR branch, push with --force-with-lease
- If there are merge conflicts, attempt to resolve them (read each conflicted file, understand both sides of each conflict marker, resolve,
git add,git rebase --continue, up to 3 rebase steps) - If resolution fails, run
git rebase --abortand write a failed handoff listing conflicting files - Write handoff with merge options
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed 145fe679d4ce
- 1mo ago Changed 35935721481c
- 2mo ago First seen · 160 lines · 16 tokens per session scan B ae62be257cf1
agent-resume is a command published in the GitHub repository xsovad06/sova (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 16 tokens to every session and 1,663 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
feedback
Intelligent feedback capture with automatic complexity detection and adaptive investigation.
release-flow
Portable gated release flow — deterministic gate + vendor-agnostic independent reviewer, runnable from any harness.
install-deprecated
First-time global setup - install plugins, configure environment, explain workflow.
aitask-gate-docs-updated
Procedure-backed verifier for the docsupdated gate — inspects a task's change, updates the project's documentation per the configured doc-update spec (confirming with the user), and records the gate result. Run by the attended agent (task-workflow / aitask-resume), not the headless engine.
aitask-learn-skill
Learn a new skill from sources — a local file, a URL, a repo file/dir, or a tmux pane (capturing the workflow an agent just ran) — and generate a complete static SKILL.md.
greptile-review
Execute the full Greptile review cycle on a PR, looping until score meets threshold or circuit breaker triggers.