context-manager-v2_skill

This skill automates seamless context management by monitoring usage and auto-switching sessions at 85% with memory transfer for continuity.
  • Python

2.5k

GitHub Stars

6

Bundled Files

6 months ago

Catalog Refreshed

7 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill context-manager-v2

  • _meta.json468 B
  • install.sh1.3 KB
  • package.json1.2 KB
  • README.md3.0 KB
  • RELEASE-NOTES.md4.0 KB
  • SKILL.md9.0 KB

Overview

This skill automates context and session management by monitoring usage and performing seamless session switches when thresholds are reached. It saves memory, creates a new session, and loads the required memory layers automatically so conversations continue without user intervention. The design emphasizes low startup cost and transparent continuity for long or multi-task interactions.

How this skill works

The skill monitors context usage at regular intervals (default every 10 minutes) and triggers an automatic switch when dialog context reaches an 85% threshold. On trigger it extracts and saves key information to a full MEMORY file and a compressed MEMORY-LITE file, updates the daily log, then creates a new session that loads layered memory (core, summary, detailed retrieval) so the assistant resumes naturally. Startup optimizations keep initial memory footprint low and provide a separate startup threshold for early warnings.

When to use it

  • Long-running conversations that risk hitting context limits
  • Multi-task sessions where tasks must continue uninterrupted after switches
  • Systems with limited token/context capacity that need efficient memory transfer
  • Automated agents needing zero-touch session rotation
  • When you want automatic memory persistence and resume without user prompts

Best practices

  • Keep a MEMORY-LITE summary under 10KB with user profile, task state, and key insights
  • Use the default 85% dialog threshold and 30% startup warning unless you need custom tuning
  • Enable the periodic monitor (cron every 10 minutes) and verify logs regularly
  • Store important task checkpoints in the full MEMORY.md to ensure reliable restoration
  • Test critical task flows to confirm no interruption during agentTurn transitions

Example use cases

  • A product manager runs multi-hour planning discussions that must resume seamlessly after context rotation
  • A tutor conducts extended lessons and needs the assistant to continue without re-priming memory
  • An automation pipeline runs iterative tests with the agent switching sessions as token limits approach
  • A customer support bot handles long troubleshooting threads and transfers state automatically between sessions
  • A research session that accumulates many facts over time and needs efficient startup plus full memory continuity

FAQ

No. The system is designed to resume without mentioning the switch so the conversation feels continuous.

Can I change the thresholds?

Yes. Dialog and startup thresholds are configurable in the monitoring script (defaults: 85% dialog, 30% startup).

How fast is the switch?

Typical switch time is effectively instantaneous; memory save completes in seconds and new sessions load layered memory immediately.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational