context-engine

Solid

Context window management. Auto-triggered when context is filling up. Triggers smart compaction and preserves critical information across compaction boundaries. Called by L1 orchestrators at context thresholds.

AI & Automation 81 stars 23 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# context-engine ## Purpose Context window management for long sessions. Detects when context is approaching limits, triggers smart compaction preserving critical decisions and progress, and coordinates with session-bridge to save state before compaction. Prevents the common failure mode of losing important context mid-workflow. ### Behavioral Contexts Context-engine also manages **behavioral mode injection** via `contexts/` directory. Three modes are available: | Mode | File | When to Use | |------|------|-------------| | `dev` | `contexts/dev.md` | Active coding — bias toward action, code-first | | `research` | `contexts/research.md` | Investigation — read widely, evidence-based | | `review` | `contexts/review.md` | Code review — systematic, severity-labeled | **Mode activation**: Orchestrators (cook, team, rescue) can set the active mode by writing to `.rune/active-context.md`. The session-start hook injects the active context file into the session. Mode switches mid-session are supported — the orchestrator updates the file and references the new behavioral rules. **Default**: If no `.rune/active-context.md` exists, no behavioral mode is injected (standard Claude behavior). ## Triggers - Called by `cook` and `team` automatically at context boundaries - Auto-trigger: when tool call count exceeds threshold or context utilization is high - Auto-trigger: before compaction events ## Calls (outbound) # Exception: L3→L3 coordination - `session-bridge` (L3): coordinate ...

Details

Author
Rune-kit
Repository
Rune-kit/rune
Created
5 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category