session-compact
Agent skill fromcodeaholicguy/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.
How to install session-compact
install session-compact
# install the ai-devkit pack with the skills CLI
npx skills add codeaholicguy/ai-devkit# or add only this skill to Claude Code: copy the folder
skills/session-compact/
# into
~/.claude/skills/session-compact/ (all projects)
.claude/skills/session-compact/ (one project)
1# Session Compact23Use 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.45## When to Use67- Context is getting long and useful state needs to survive compaction.8- Work is being handed to another agent or resumed after becoming stale.9- A complex implementation or debugging session is closing.10- Durable memory candidates or task-progress facts need to be identified after a long run.1112## Workflow13141. Find the session ID when it is not already known:15 ```bash16 npx ai-devkit@latest agent sessions --all17 ```182. Produce Markdown for a human handoff:19 ```bash20 npx ai-devkit@latest agent session compact --id <session-id>21 ```223. Use JSON for automation or structured inspection:23 ```bash24 npx ai-devkit@latest agent session compact --id <session-id> --format json25 ```264. Add `--type <provider>` when the same session ID is ambiguous across providers.275. 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.2829## Jev Availability3031The command requires `TYPESAFE_API_KEY`. If it reports:3233```text34Jev is unavailable because TYPESAFE_API_KEY is not set.35```36…
Excerpt shown under the repository's Apache-2.0 license.
