Home / codeaholicguy / ai-devkit · skills/session-compact/SKILL.md · GitHub

session-compact skillA

session-compact is agent-read markdown (skill) from codeaholicguy/ai-devkit: AI DevKit · Compact a historical AI coding session with Jev when context is long, work is handed off or resumed, or durable continuation facts and memory candidates need extraction..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Session Compact

Use AI DevKit's Jev-backed CLI to create a structured continuation artifact from a historical session. Prefer this command over a hand-written compact when it is available.

## When to Use

- Context is getting long and useful state needs to survive compaction.
- Work is being handed to another agent or resumed after becoming stale.
- A complex implementation or debugging session is closing.
- Durable memory candidates or task-progress facts need to be identified after a long run.

## Workflow

1. Find the session ID when it is not already known:
   ```bash
   npx ai-devkit@latest agent sessions --all
   ```
2. Produce Markdown for a human handoff:
   ```bash
   npx ai-devkit@latest agent session compact --id <session-id>
   ```
3. Use JSON for automation or structured inspection:
   ```bash
   npx ai-devkit@latest agent session compact --id <session-id> --format json
   ```
4. Add `--type <provider>` when the same session ID is ambiguous across providers.
5. Review the artifact before using its resume prompt, memory candidates, or validation claims. Compaction preserves selected transcript evidence; it does not independently verify that evidence.
…

Read the whole file at its exact version.

How to install

Latest version
mdr add codeaholicguy/ai-devkit/session-compact@git:20260924.9684956
Exact content
mdr add codeaholicguy/ai-devkit/session-compact@sha256:cd806be296a4fc58

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

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

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260924.9684956 latest2026-09-24 9684956 2,256 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, 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 (2256 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

codeaholicguy/ai-devkit · 1,633 stars · license Apache-2.0 · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5hk5mmafbtz2pgse
GET https://markdownregistry.com/api/v1/resolve?ref=codeaholicguy/ai-devkit/session-compact
GET https://markdownregistry.com/api/v1/blob/cd806be296a4fc58f5b845d0714d6cf88496340cc92708780bede01859b40450

Your agent 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.

More from codeaholicguy/ai-devkit

agent-communication skill
codeaholicguy/ai-devkit · skills/agent-communication/SKILL.md · AI DevKit · Exchange information with active Codex, Claude Code, and other AI agents using ai-devkit agent list…
git:20260606.2314ac9 · audit A · 1,633 stars
agent-management skill
codeaholicguy/ai-devkit · skills/agent-management/SKILL.md · AI DevKit · Manage running AI agents with ai-devkit agent commands. Use when an agent needs to identify itself, list…
git:20260626.997ef2d · audit A · 1,633 stars
agent-orchestration skill
codeaholicguy/ai-devkit · skills/agent-orchestration/SKILL.md · AI DevKit · Supervise multi-agent workflows over repeated passes: poll progress, unblock waiting agents, coordinate…
git:20260726.15b09d2 · audit A · 1,633 stars
ai-devkit-setup skill
codeaholicguy/ai-devkit · skills/ai-devkit-setup/SKILL.md · AI DevKit · Check local AI DevKit readiness and run setup only when status shows onboarding or harness integration gaps.
git:20260904.1cbff49 · audit A · 1,633 stars
brainstorm skill
codeaholicguy/ai-devkit · skills/brainstorm/SKILL.md · AI DevKit · Use when the user asks to brainstorm, ideate, generate ideas, expand options, challenge ideas…
git:20260822.631a81d · audit A · 1,633 stars
changelog skill
codeaholicguy/ai-devkit · skills/changelog/SKILL.md · AI DevKit · Update CHANGELOG.md Unreleased items from git commits since the latest release. Use when users ask to…
git:20260609.ec2ca1e · audit A · 1,633 stars
dev-commit skill
codeaholicguy/ai-devkit · skills/dev-commit/SKILL.md · AI DevKit · Safe git commit workflow for AI coding agents. Use when the user asks to commit, prepare a commit, stage…
git:20260817.7b711bd · audit A · 1,633 stars
dev-design skill
codeaholicguy/ai-devkit · skills/dev-design/SKILL.md · AI DevKit · Design phase guidance for reviewing feature design against requirements. Use when the user wants to…
git:20260826.c1f5930 · audit A · 1,633 stars
dev-implementation skill
codeaholicguy/ai-devkit · skills/dev-implementation/SKILL.md · AI DevKit · Implementation phase guidance for executing feature plans and checking implementation against design. Use…
git:20260826.c1f5930 · audit A · 1,633 stars
dev-lifecycle skill
codeaholicguy/ai-devkit · skills/dev-lifecycle/SKILL.md · AI DevKit · Orchestrator for structured SDLC phase skills. Use when the user wants to run the full lifecycle or choose…
git:20260703.7628b9e · audit A · 1,633 stars
dev-planning skill
codeaholicguy/ai-devkit · skills/dev-planning/SKILL.md · AI DevKit · Planning phase guidance for creating and reconciling feature task plans. Use when the user wants to create…
git:20260703.7628b9e · audit A · 1,633 stars
dev-pr skill
codeaholicguy/ai-devkit · skills/dev-pr/SKILL.md · AI DevKit · Publish a ready feature branch for review. Use when the user wants to sync, push, and open or update a code…
git:20260627.05581dd · audit A · 1,633 stars

Every file in codeaholicguy/ai-devkit

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