context-restore

Restores previously saved working context to resume interrupted sessions across branches and workspaces.

1|Updated Jul 23, 2026
One-click install
npx skills add https://github.com/sanjanb/my-agent-harness --skill context-restore-sanjanb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-restore
Source: https://github.com/sanjanb/my-agent-harness/tree/main/skills/context-restore
Command: npx skills add https://github.com/sanjanb/my-agent-harness --skill context-restore-sanjanb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Losing track of where you left off in a coding session wastes time reconstructing mental state, especially when switching branches, machines, or Conductor workspaces. This Skill reloads the most recent saved session state so work can continue without manual recap. ## Core Features & Use Cases - Session State Restoration: Loads the most recent context snapshot saved by the companion /context-save command, across all branches by default. - Cross-Workspace Handoff: Picks up work even after Conductor workspace transfers, so context survives environment changes. - Environment-Aware Preamble: Detects session kind (interactive, headless, spawned), branch, plan mode, and telemetry settings before restoring, adjusting behavior for each host. - Use Case: After a weekend away from a feature branch, ask the agent to resume where you left off and it reloads your saved state, current branch, and pending decisions automatically. ## Quick Start Ask the agent to resume where you left off so it restores your most recently saved working context.

Frequently Asked Questions about context-restore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resume where I left off in a coding session?

Invoke the context-restore skill with a phrase like "resume where I left off" or "restore context". It loads the most recent state saved by /context-save, across all branches by default, so you can continue without re-explaining the task.

How to restore context after switching git branches?

Run context-restore after switching branches; it searches saved session state across all branches by default rather than only the current one. The preamble echoes your current branch so the restored context is grounded correctly.

Does context-restore work with Conductor workspaces?

Yes, it is designed to survive Conductor workspace handoffs. When a Conductor session is detected, the skill renders decisions as prose instead of calling AskUserQuestion, since that tool is unreliable in Conductor hosts.

What is the difference between context-save and context-restore?

context-save writes the current working state to disk, while context-restore loads the most recent saved snapshot. They are designed as a pair: save before ending a session, restore when picking work back up.

Why does context-restore behave differently in headless sessions?

In headless or spawned sessions there is no human to answer prompts, so the skill skips interactive questions, upgrade prompts, and telemetry asks. It auto-chooses recommended options and reports results as prose instead of blocking.