post-compact

Restore rules, plans, and memory after a context compaction event.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/apexradius/agentic-os --skill post-compact-apexradius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post-compact
Source: https://github.com/apexradius/agentic-os/tree/main/skills/post-compact
Command: npx skills add https://github.com/apexradius/agentic-os --skill post-compact-apexradius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of restoring the working state of an AI agent after a compaction event, ensuring that all necessary context, such as rules, plans, and memory, is recovered.

Core Features & Use Cases

  • Context Recovery: Restores rules, plans, memory, and active files in priority order.
  • User-Invocable: Can be activated by the user after a context reset.
  • Use Case: After a compaction event, the agent can use this Skill to recover its state, allowing it to continue its work without losing critical information.

Quick Start

Activate the post-compact Skill to recover the context after a compaction event.

Frequently Asked Questions about post-compact

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

FAQPage Schema
How do I restore AI agent context after a context compaction event?

To restore AI agent context after compaction, activate a state restoration mechanism to recover active rules, plans, and memory in priority order. This allows the agent to resume operations without losing critical information across resets or failures.

What is context preservation for AI agents and when is it needed?

Context preservation is the process of saving and recovering an AI agent's working state, including rules and memory. It is needed after compaction events, context resets, or failures to ensure the agent can resume operations with all necessary information.

How can I recover rules and plans for an AI agent following a context reset?

Recover rules and plans by invoking a user-activatable state restoration process that prioritizes critical context. This mechanism systematically restores active files and memory, allowing the agent to continue its work seamlessly.

Does context recovery work for AI agents after unexpected failures or resets?

Yes, context recovery works for AI agents after unexpected failures or resets. It applies to scenarios requiring context preservation across resets, prioritizing the restoration of rules, plans, and memory to resume operations.

What is the best way to resume AI agent operations without losing memory after compaction?

The best way to resume operations without losing memory is to use a prioritized context recovery process. This approach restores rules, plans, and memory in priority order, ensuring the agent regains its full working state.

Do I need to manually trigger context recovery after every compaction event?

Yes, state restoration is user-invocable, meaning you can manually trigger context recovery after a compaction event. Activating the recovery process ensures the agent retrieves its necessary rules, plans, and memory.