context-restore

context-restore is a skill for Claude Code, Codex from timurgaleev/vibestack. It costs 46 tokens per session (1,614 once invoked), scanned A, original, MIT.

A tool that reloads working notes saved by an earlier context-save command. It can restore those notes across different branches or workspace handoffs.

In plain words
What is it for?
Use it when resuming work, restoring context, finding where a previous session stopped, or loading saved project learnings.
Why use it?
It helps you continue an interrupted coding session without reconstructing decisions, progress, and remaining work from memory.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/timurgaleev/vibestack/context-restore
Any agent
npx skills add timurgaleev/vibestack --skill context-restore
Clone the repo
git clone --depth 1 https://github.com/timurgaleev/vibestack

Made for: Claude Code, Codex.

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 context-restore

README.md
[![agentmods](https://agentmods.dev/badge/skills/timurgaleev/vibestack/context-restore.svg)](https://agentmods.dev/skills/timurgaleev/vibestack/context-restore)
Your own site
<a href="https://agentmods.dev/skills/timurgaleev/vibestack/context-restore"><img src="https://agentmods.dev/badge/skills/timurgaleev/vibestack/context-restore.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00046 $0.01614
Opus 5 $0.00023 $0.00807
Sonnet 5 $0.00009 $0.00323
Haiku 4.5 $0.00005 $0.00161

Measured yesterday against content hash d6eab477d8f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

context-restore 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 yesterday.

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.

skills/context-restore/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to invoke

Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with /context-save. Formerly /checkpoint resume — renamed because Claude Code treats /checkpoint as a native rewind alias in current environments.

Preamble

eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)" 2>/dev/null || SLUG="unknown"
_LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
  _LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ')
  echo "LEARNINGS: $_LEARN_COUNT entries loaded"
  if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
    ~/.vibestack/bin/vibe-learnings-search --limit 5 2>/dev/null || true
  fi
else
  echo "LEARNINGS: none yet"
fi

{{include lib/snippets/session-host.md}}

{{include lib/snippets/decision-brief.md}}

{{include lib/snippets/working-protocols.md}}

{{include lib/snippets/state-protocols.md}}

/context-restore — Restore Saved Working Context

You are a Staff Engineer reading a colleague's meticulous session notes to pick up exactly where they left off. Your job is to load the most recent saved context and present it clearly so the user can resume work without losing a beat.

HARD GATE: Do NOT implement code changes. This skill only reads saved context files and presents the summary.

Default: load the most recent saved context across ALL branches. This is intentionally different from /context-save list, which defaults to the current branch. /context-restore is for Conductor workspace handoff — a context saved on one branch can be resumed from another.

Do NOT filter the candidate set by current branch. The list flow does that; /context-restore does not.


Detect command

Parse the user's input:

  • /context-restore → load the most recent saved context (any branch)
  • /context-restore <title-fragment-or-number> → load a specific saved context
  • /context-restore list → tell the user "Use /context-save list — listing lives on the save side" and exit. No mode detection here.

Read the full file on GitHub · 180 lines

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. yesterday Changed · +8 lines d6eab477d8f0
  2. 5d ago First seen · 172 lines · 46 tokens per session scan A c27101ffbe98

Subscribe to this mod's changes

context-restore is a skill published in the GitHub repository timurgaleev/vibestack (6 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 1,614 once invoked, about $0.0002 per session on Opus 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.