session-compact
Skill1.6k starsChanged 3 months agoApache-2.0View on GitHub
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.
- Reads credentials
Trending
More talk lately.thin dataabout the whole repository
Who's talking about codeaholicguy/ai-devkit
- A Hacker News story“I collected all valuable AI Skills repositories”Hacker News · Feb 3, 2026 · 2 points
- A Hacker News story“AI-Devkit”Hacker News · Oct 16, 2025 · 1 points
- sudosubin/agents.nix“codex-plugins.github.codeaholicguy.ai-devkit: init at 0-unstable-2026-10-04”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.codeaholicguy.ai-devkit: 0-unstable-2026-09-27 → 0-unstable-2026-10-04”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.codeaholicguy.ai-devkit: 0.61.0-unstable-2026-09-20 → 0-unstable-2026-09-27”GitHub · Oct 3, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Hacker News (11 times).
On GitHub · 9
- Oct 4, 2026codex-plugins.github.codeaholicguy.ai-devkit: init at 0-unstable-2026-10-04 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.codeaholicguy.ai-devkit: 0-unstable-2026-09-27 → 0-unstable-2026-10-04 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.codeaholicguy.ai-devkit: 0.61.0-unstable-2026-09-20 → 0-unstable-2026-09-27 — sudosubin/agents.nix0 reactions
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-orchestration - agent-orchestration — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-management - agent-management — ProSkillsMD/proskills0 reactions · 2 comments
4 more on GitHub
- Sep 26, 2026[Candidate] codeaholicguy/ai-devkit/skills/agent-communication - agent-communication — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.codeaholicguy.ai-devkit: init at 0.61.0-unstable-2026-09-20 — sudosubin/agents.nix0 reactions
- Aug 27, 2026[Resource]: AI DevKit — hesreallyhim/awesome-claude-code0 reactions · 1 comment
- Apr 18, 2026Audit candidate: codeaholicguy/ai-devkit — xiaolai/nlpm0 reactions · 4 comments
On Hacker News · 2
- Feb 3, 2026I collected all valuable AI Skills repositories2 points
- Oct 16, 2025AI-Devkit1 point
In this repository28 other files it gives its agents.
- agent-communicationSkill
- agent-managementSkill
- agent-orchestrationSkill
- ai-devkit-setupSkill
- brainstormSkill
- changelogSkill
- dev-commitSkill
- dev-designSkill
- dev-implementationSkill
- dev-lifecycleSkill
- dev-planningSkill
- dev-prSkill
- dev-requirementsSkill
- dev-reviewSkill
- dev-testingSkill
- dev-worktreeSkill
- document-codeSkill
- memorySkill
- refactorSkill
- remote-from-slackSkill
- remote-from-telegramSkill
- security-reviewSkill
- simplify-implementationSkill
- structured-debugSkill
- taskSkill
- tddSkill
- technical-writerSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use AI DevKit's Jev-backed CLI to create a structured continuation artifact from a historical session.
- Distinctive: line 27
Use JSON for automation or structured inspection:
- Very specific: line 31
Add --type <provider> when the same session ID is ambiguous across providers.
- Distinctive: line 44
Never print, log, store, or pass the API key as a command argument.
- Distinctive: line 49
Treat memory candidates as proposals until they pass the memory skill's quality gate.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Find the session ID when it is not already known:
npx ai-devkit@latest agent sessions --all - Produce Markdown for a human handoff:
npx ai-devkit@latest agent session compact --id <session-id> - Use JSON for automation or structured inspection:
npx ai-devkit@latest agent session compact --id <session-id> --format json - Add
--type <provider>when the same session ID is ambiguous across providers. - 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.
Jev Availability
The command requires TYPESAFE_API_KEY. If it reports:
Jev is unavailable because TYPESAFE_API_KEY is not set.report that result clearly and stop the compaction attempt. Do not silently replace it with hand-written summarization or imply that Jev classified the session. A user may explicitly request a separate manual summary afterward.
Never print, log, store, or pass the API key as a command argument. The CLI reads it from the environment.
Boundaries
- The command is read-only and does not write memories or mutate tasks.
- Treat memory candidates as proposals until they pass the memory skill's quality gate.
- Record task progress separately when the task workflow requires it.
- API, authentication, schema, or network failures with a configured key are errors, not Jev-unavailable results.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

