Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Rune-kit/rune --skill context-enginegit clone --depth 1 https://github.com/Rune-kit/runeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rune-kit/rune/context-engine)<a href="https://agentmods.dev/skills/rune-kit/rune/context-engine"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/context-engine/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rune-kit/rune/context-engine"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/context-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.05760 |
| Opus 5.5 | $0.00016 | $0.02304 |
| Sonnet 5.5 | $0.00008 | $0.01152 |
| Haiku 4.5 | $0.00004 | $0.00576 |
Grade C, and why
context-engine scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Confirmations of irreversible actions (`rm -rf`, force-push, drop table, prod deploy) How it starts
The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
cookandteamautomatically 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 state save when context critical
Called By (inbound)
cook(L1): Phase boundaries and when tool count exceeds thresholdsteam(L1): before parallel workstream dispatch, after mergerescue(L1): between refactoring sessions for state persistencecontext-pack(L3): when packaging context for sub-agent handoffsession-bridge(L3): coordinates with context-engine for compaction timingadversary(L2): (oracle-mode) emitcontext.previewbefore bundle build to gate token cost
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 489 lines · 40 tokens per session scan C 38aaa955fd24
context-engine is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 5,760 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.
context-engine compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| context-engineRune-kit/rune | Skill | 96 | 2d ago | MIT | C | 40 | Claude Code |
| session-learningssentimony/skills | Skill | 8 | today | MIT | A | 121 | Claude Code |
| tddsentimony/skills | Skill | 8 | today | MIT | A | 43 | Claude Code |
| vaultr-memoryskoowoo/vaultr-notes | Skill | 89 | 2mo ago | Apache-2.0 | A | 87 | Claude Code, Codex |
| vaultr-compile-noteskoowoo/vaultr-notes | Skill | 89 | 2mo ago | Apache-2.0 | A | 116 | Claude Code, Codex |
| vaultr-index-knowledgeskoowoo/vaultr-notes | Skill | 89 | 2mo ago | Apache-2.0 | A | 107 | Claude Code, Codex |
| vaultr-recapskoowoo/vaultr-notes | Skill | 89 | 2mo ago | Apache-2.0 | A | 192 | Claude Code, Codex |