recover-context

recover-context is a skill for Claude Code from iofold/ainative-claude-plugins. It costs 38 tokens per session (484 once invoked), scanned A, original, MIT.

A skill for recovering the unfinished work and decisions from an earlier coding-agent session. It uses prior session context and related project documents when available.

In plain words
What is it for?
Resuming previous work, finding pending next steps, and locating related specifications, notes, or code files.
Why use it?
It reduces the need to reconstruct what was being built, what changed, and what remains after returning to an old task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the session-management plugin — 2 skills, 2 commands, 1 agent shipped together

Good fit Resuming previous work, finding pending next steps, and locating related specifications, notes, or code files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/recover-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iofold/ainative-claude-plugins --skill recover-context
Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins

Made for: Claude Code.

Or install session-management, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 1 agent.

Wrote 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.

agentmods badge for recover-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/recover-context/github.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/recover-context)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/recover-context"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/recover-context/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.

agentmods 80×15 button for recover-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/recover-context"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/recover-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00484
Opus 5.5 $0.00015 $0.00194
Sonnet 5.5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00048

Measured 1mo ago against content hash 6490f581c32f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recover-context scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

session-management/skills/recover-context/SKILL.md · 57 lines

What it actually says

recover-context

Use this skill to extract context from a parent session when a session lineage is present (shown in the first user message of this conversation).

Instructions

  1. Identify the most recent parent session from the lineage chain (the last file in the chronological list).

  2. Use sub-agents to explore (to avoid bloating your own context):

    • If you have the Task tool with subagent support, use the session-searcher subagent (subagent_type: session-searcher) to analyze the most recent session
    • If sub-agents are NOT available, use the session-search skill instead
  3. Extract the following from the most recent session:

    • What was the last task being worked on?
    • What was the current state of that task (completed, in-progress, blocked)?
    • Any pending items or next steps mentioned?
    • Key decisions made or approaches chosen
  4. Also check for associated documents:

    • Issue specs or task descriptions referenced in the session
    • Any markdown files created during that session (check WORKLOG/, issues/, etc.)
    • Code files that were being modified
  5. Report back concisely:

    • State your understanding of the task context
    • List any files you found that are relevant
    • Ask the user how they'd like to proceed

Example Sub-agent Prompt

If using the Task tool with session-searcher subagent:

Analyze the session file at [path from lineage] and extract:
1. The last task being worked on (look at the final 20-30 messages)
2. Current state of that task
3. Any referenced markdown files (issue specs, work logs, etc.)
4. Pending next steps or blockers

Return a concise summary.

Constraints

  • Do NOT read large session files directly into your own context
  • ALWAYS delegate to sub-agents or the session-search skill
  • Keep your summary concise - the user knows what they were working on
  • Focus on the LAST task, not the entire session history
Changes

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.

  1. 1mo ago Changed · -43 tokens per session 6490f581c32f
  2. 3mo ago First seen · 57 lines · 81 tokens per session scan A 337761342934

Subscribe to this mod's changes

recover-context is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 484 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

recover-context compared with skills from other repositories

recover-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recover-contextiofold/ainative-claude-pluginsSkill31mo agoMITA38Claude Code
knowledge-ingestopenclaw/openclawSkill395ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k4d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k13d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k5d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex