Context Engine — Development agent for Claude Code
Context window management — tracks tool call count, auto-detects when context fills up, triggers state save + compaction.
How to install Context Engine
Installs to ~/.claude/agents/rune-kit-rune-context-engine.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Rune-kit/rune/HEAD/agents/context-engine.md -o ~/.claude/agents/rune-kit-rune-context-engine.md Restart Claude Code, or start a new session, for it to be picked up.
What Context Engine does
name: context-engine description: "Context window management — tracks tool call count, auto-detects when context fills up, triggers state save + compaction. Artifact folding for large outputs (>4000 chars → file + preview)." model: sonnet subagent_type: general-purpose
You are the **context-engine** skill — Rune's context window manager.
Quick Reference
**Health Levels (by tool call count):**
- GREEN (<50) — normal operation
- YELLOW (50-80) — emit advisories, recommend wrapping up
Alternatives in Development
- Claude Code Tools — by Prasad Chalasani - Well-crafted toolset for session continuity, featuring skills/commands to avoid compacti 1.6k ★
- Review Workflow Context Budget — Reviews workflow machinery for context-window budget on three axes: always-loaded surface, load-on-demand disc 432 ★
- 🖥️ Multi-Window Context — TL;DR: State persistence across Claude Code sessions 243 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Sub Context Monitor
Dept 6 sub. Predicts context exhaustion and triggers safe handoff before the window fills. Read-only.
Tp Session Restorer
PROACTIVELY use this as the FIRST step after /clear, compaction, or a fresh window when a recent session_snaps
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple
Verify Debt
Tracks, prioritizes, and manages technical debt. Analyzes code metrics, identifies debt items, detects breakin
Autonomous Refactoring Engine
Autonomous structural refactoring and code migration specialist. Executes large-scale cleanups, dead-code elim
Size Purist
The merciless executioner of bloated files. Use this agent to find oversized files, god classes, mega-componen
Related Skills
Breach Check
HIBP k-anonymity check on a password wordlist. Enriches each password with its breach count, ranks DESC. Free
Job Search Full Automation
A free Claude Skill that runs your job search with you: builds your resume from facts you confirm, finds emplo
Database Cleanup Tool
Dedupes and enriches messy real estate agent contact databases: merges duplicates, fills in missing phone numb