Skill / SKILL.md

Memory Compaction

Archive228/lab-skills

Operating procedure for keeping a long-running agent coherent using the OpenAI Agents SDK memory and compaction primitives: three ways to trigger compaction (automatic, threshold-based, forced checkpoint), exact rules for what working state to preserve through a compaction, and what belongs in cross-run memory versus the reviewed output artifact. Trigger when building or operating an agent whose session spans many turns or evidence batches and risks context overflow, when deciding what to persist across sessions, or when wiring Compaction()/Memory() capabilities into a SandboxAgent.
5 views 10 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Operating procedure for keeping a long-running agent coherent using the OpenAI Agents SDK memory and compaction primitives: three ways to trigger compaction (automatic, threshold-based, forced checkpoint), exact rules for what working state to preserve through a compaction, and what belongs in cross-run memory versus the reviewed output artifact. Trigger when building or operating an agent whose session spans many turns or evidence batches and risks context overflow, when deciding what to persist across sessions, or when wiring Compaction()/Memory() capabilities into a SandboxAgent.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Archive228/lab-skills' skill-source

Use the complete skill-source/skills/memory-compaction directory with your client’s skill installer.

  • skills/memory-compaction

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/memory-compaction

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
1 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
9281599ae0700d35cb5bcec58a1c8fd308fa733e4d0690b7f40348943ef25c26
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills