context-recovery

Restore lost workspace context from CONTEXT-RECOVERY.md and daily memory logs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/pqem/agent-automatizado --skill context-recovery-pqem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-recovery
Source: https://github.com/pqem/agent-automatizado/tree/main/skills/context-recovery
Command: npx skills add https://github.com/pqem/agent-automatizado --skill context-recovery-pqem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When the LLM compacts its memory, it can lose critical project context; this skill provides a deterministic mechanism to recover active project state, last task, next steps, and repository status.

Core Features & Use Cases

  • Automatic restoration of active project context by consulting CONTEXT-RECOVERY.md and daily memory logs.
  • Supports updates to CONTEXT-RECOVERY.md at session milestones to keep context fresh for next runs.
  • Useful during long-running conversations, multi-step workflows, and after memory resets to resume where you left off.

Quick Start

Instruct the agent to perform a recovery pass to rehydrate the workspace from the latest CONTEXT-RECOVERY.md and memory diary.

Frequently Asked Questions about context-recovery

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

FAQPage Schema
How do I restore lost project context after an LLM memory compaction?

To restore lost project context after an LLM memory compaction, you can trigger a recovery pass to rehydrate the workspace. This reads a CONTEXT-RECOVERY.md snapshot and daily memory logs to reconstruct the active project, latest task, and next steps.

What is the best way to resume an agent session after a context reset?

The best way to resume an agent session after a context reset is to use an automated context recovery mechanism. It reads recent memory diary entries and uses a memory_search utility to surface relevant project state before presenting a concise summary.

When do I need to update the CONTEXT-RECOVERY.md snapshot?

You need to update the CONTEXT-RECOVERY.md snapshot at session milestones during long-running conversations or multi-step workflows. This keeps the project state, last task, and next steps fresh for recovery on the next run.

Does context recovery work for multi-project workspace environments?

Yes, context recovery works for multi-project workspace environments. The structured restoration process applies across single-project workspaces, multi-project contexts, and when agent sessions resume after sleep.

How do I rehydrate a workspace from daily memory logs?

To rehydrate a workspace from daily memory logs, instruct the agent to perform a recovery pass. The system reads the logs alongside a structured CONTEXT-RECOVERY.md snapshot to rebuild the active project state and repository status.

Why does my LLM lose critical project state during long-running conversations?

Your LLM loses critical project state during long-running conversations because memory compaction discards older context. A deterministic recovery mechanism solves this by reconstructing the active project, last task, next steps, and repository status from saved snapshots.