Skip to content
Back to skills

Context Pruning

ASecurity

Dynamic context pruning patterns (OpenCode DCP / Sleev). Meta has native auto-compact; use these rules to manage long sessions.

  • 3 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 2, 2026
ai-agentsgogit

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 1, 2026

npx -y skills add nuroctane/nur-cli --skill context-pruning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Pruning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Pruning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuroctane-context-pruning/badge)](https://www.skillsdirectory.com/skills/nuroctane-context-pruning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-pruning
description: "Dynamic context pruning patterns (OpenCode DCP / Sleev). Meta has native auto-compact; use these rules to manage long sessions."
---

# Context pruning (DCP-inspired)

Upstream: https://github.com/Tarquinen/opencode-dynamic-context-pruning  
Successor focus: https://sleev.ai (`npm i -g sleev`)

OpenCode's DCP plugin is **OpenCode-specific**. Meta implements the same goals natively:

## Meta native behavior

- Auto-compact when context pressure is high (~55% of window, once per turn)
- Manual `/compact` slash command
- Tool results are capped; prefer re-query over replaying huge dumps

## Practices for long sessions

1. After a milestone, summarize and drop raw tool blobs (user can `/compact`)
2. Prefer graphify/plur recall over re-grepping the whole repo
3. Don't re-read files already summarized unless editing
4. Parallel read-only tools only — mutating tools stay sequential
5. If using OpenCode elsewhere: `opencode plugin @tarquinen/opencode-dcp@latest --global`

## Compress modes (conceptual)

- **range** — compress a span of turns into one summary
- **dedupe** — identical tool+args keep latest output only
- **purge errors** — drop large error inputs after N turns

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.