session-compaction-and-restore SKILL.md skillA

session-compaction-and-restore from mvschwarz/openrig is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mvschwarz/openrig/session-compaction-and-restore@git:20261110.60a4a63

Pins git:20261110.60a4a63 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mvschwarz/openrig
Path
packages/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md
Versions recorded
9
Latest version
git:20261110.60a4a63, committed Nov 10, 2026
First version recorded
May 10, 2026
Size
10,339 bytes
Repository stars
8,889
License
Apache-2.0

Use when reasoning about what survives compaction/context-loss/restart/seat-refresh, designing a high-fidelity restore packet, or distinguishing native runtime resume vs fork vs artifact-backed mental-model rebuild. Covers the 4 failure modes that prevent honest restore (compacted seat drops hot potato; restore packet preserves details but loses product intent; runtime resume mistaken for handover or fork; rebuilt seat starts with stale instructions).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Session Compaction and Restore

Preserving useful working state across **compaction, context loss,
restart, or seat refresh.** Includes Claude compaction restore, Codex
resume/fork mechanics, transcript-based mental-model rebuilds, and
durable handoff packets.

**Long-lived seats are valuable only if they can survive context
pressure.** If compaction turns a senior seat into a cold-started
agent, users will avoid persistent topologies and fall back to
throwaway agents.

## Use this when

- A seat is approaching compaction or just compacted
- Designing a high-fidelity restore packet for an active workflow
- Distinguishing native runtime resume vs fork vs artifact-backed mental-model rebuild
- Reasoning about what should be preserved vs reconstructable
- Auditing a restore for product-intent preservation (not just detail preservation)

## Don't use this when

- The session is fresh and has no working state to preserve
- The intent is to *create* a new seat from a primed source — that's `session-source-fork` or `agent-starters`
- The packet is a one-off snapshot for human review — restore packets are for re-entering active work

## The 5 distinctions (do not collapse)
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_rjlo4vbjedxovzdm/b1cbf5f5b0d265336388615487aa6ef3c8f48395789c2692b41f8368227ee5f2.json

Then /plugin install session-compaction-and-restore@markdownregistry-rjlo4vbjedxovzdm in Claude Code. It installs git:20261110.60a4a63, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add mvschwarz/openrig/session-compaction-and-restore@sha256:b1cbf5f5b0d26533

The line at the top of this page pins the label git:20261110.60a4a63, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rjlo4vbjedxovzdm.svg)](https://markdownregistry.com/a/art_rjlo4vbjedxovzdm)

5 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in mvschwarz/openrig/session-compaction-and-restore since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of session-compaction-and-restore from somewhere else? Ask it: where did my session-compaction-and-restore come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 9 versions of this file, between May 10, 2026 and Nov 10, 2026, about one every 23 days.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20261110.60a4a63 latest2026-11-10 60a4a63 10,339 BA view · diff
git:20261014.d4f24dd2026-10-14 d4f24dd 10,365 BA view · diff
git:20261008.72087f32026-10-08 72087f3 8,955 BA view · diff
git:20261004.9e24dff2026-10-04 9e24dff 8,597 BA view · diff
git:20261002.b7ec2f82026-10-02 b7ec2f8 8,200 BA view · diff
git:20260907.9006fc52026-09-07 9006fc5 8,452 BA view · diff
git:20260805.cabd2b22026-08-05 cabd2b2 8,154 BA view · diff
git:20260802.4c6d8882026-08-02 4c6d888 8,115 BA view · diff
git:20260510.b98294b2026-05-10 b98294b 6,285 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10339 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mvschwarz/openrig · 8,889 stars · license Apache-2.0 · pushed 2026-11-18 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_rjlo4vbjedxovzdm
GET https://markdownregistry.com/api/v1/resolve?ref=mvschwarz/openrig/session-compaction-and-restore
GET https://markdownregistry.com/api/v1/blob/b1cbf5f5b0d265336388615487aa6ef3c8f48395789c2692b41f8368227ee5f2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mvschwarz/openrig

developing-openrig SKILL.md skill
mvschwarz/openrig · .agents/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 8,889 stars
developing-openrig SKILL.md skill
mvschwarz/openrig · .claude/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 8,889 stars
DESIGN.md@docs DESIGN.md file
mvschwarz/openrig · docs/DESIGN.md
git:20261005.f6358a2 · audit A · 8,889 stars
agent-operated-software SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md · Use when designing, building, operating, or diagnosing an ongoing application whose live backend or control loop…
git:20261109.46ba2f5 · audit A · 8,889 stars
agent-operated-workflows SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md · Use when a bounded real-world procedure has a deterministic happy path but brownfield, variable, or partially knowable…
git:20260907.9006fc5 · audit A · 8,889 stars
applying-a-permission-policy SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md · Use before launching a team during agent-guided setup, or when a user asks to configure OpenRig command permissions…
git:20261006.141513e · audit A · 8,889 stars
claude-compaction-restore SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md · Use when a Claude Code session is about to compact, has just compacted, reached its context limit, resumed after…
git:20261113.0a6d575 · audit A · 8,889 stars
delegating-work SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md · Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology…
git:20261025.54bd485 · audit A · 8,889 stars
forming-an-openrig-mental-model SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md · Use when the system around you does not make sense yet: you just booted into a seat and do not know how the pieces fit…
git:20261022.daa23d3 · audit A · 8,889 stars
loading-addressable-markdown SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md · Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the…
git:20260901.0b86028 · audit A · 8,889 stars
messaging-the-human SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md · Use when project policy calls for a human decision or update, a human delivery is pending or failed, or a reply must…
git:20261115.c60575e · audit A · 8,889 stars
mission-slice-sop SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md · Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC.
git:20261117.29d4a62 · audit A · 8,889 stars

Every file in mvschwarz/openrig

Browse by kind, by grade A, or by owner.