2.6k
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
3 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-pruner- _meta.json284 B
- SKILL.md595 B
Overview
This skill intelligently manages long conversation histories by summarizing and pruning redundant context so agents stay focused and efficient. It reduces token usage and preserves essential facts, enabling reliable performance in long-running threads. The result is a leaner, searchable history that keeps relevant details without conversational clutter.
How this skill works
The skill scans thread history to detect noise such as acknowledgments, filler phrases, and repeated confirmations. It then distills factual content into concise summaries and removes or compresses redundant passages. Long transcripts are chunked into indexed summaries so agents can retrieve key facts quickly without reloading full logs.
When to use it
- Long multi-turn conversations where context size grows and model responses degrade.
- Agents handling long-running tasks that require preserving facts but not every utterance.
- When token costs are high and you need to reduce consumption without losing important data.
- Before sending history into a new model or switching model sizes.
- When building searchable archives for later retrieval or auditing.
Best practices
- Tune noise-detection rules to your domain to avoid pruning critical phrases.
- Retain original timestamps and speaker metadata to preserve traceability.
- Periodically snapshot full transcripts before aggressive pruning for backup.
- Set chunk sizes and summary granularity based on the agent's retrieval needs.
- Combine pruned summaries with a lightweight index for fast lookups.
Example use cases
- Customer support bots that must remember account facts but not every greeting.
- Project coordination threads where decisions and action items are extracted and stored.
- Research assistants summarizing long interview transcripts into key findings.
- Cost-sensitive deployments that need to limit model context length without losing critical history.
- Compliance or audit pipelines that keep distilled evidence and discard conversational noise.
FAQ
Pruning prioritizes factual extraction; configure detection thresholds and review snapshots to ensure domain-specific details are preserved.
Can I recover the original transcript after pruning?
You should snapshot archives before aggressive pruning. The skill compresses or deletes redundant content, so recovery requires those backups.