adityahimaone/hermes-agent-rtk-caveman/context-optimization
Claude Code and agent skill by adityahimaone/hermes-agent-rtk-caveman
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Optimize Hermes context usage — expand RTK coverage, prune sessions, manage memory, set up auto-prune cron. Use when token usage is high or RTK coverage is low.
Install
npx vskill@latest install adityahimaone/hermes-agent-rtk-caveman/context-optimizationSKILL.md
Context Optimization Workflow
Use this skill when Adit wants to reduce token usage, optimize context, or check RTK/agent efficiency.
When to Use
- User asks about token savings, RTK coverage, or context management
- Periodic maintenance (monthly recommended)
- After noticing high session count or bloated database
Steps
1. Check Current State
2. Prune Old Sessions
3. Verify RTK Enforcement
Check that CLAUDE.md contains:
- Golden Rule: always prefix with
rtk - MANDATORY section for execute_code terminal() calls
- Exception list (interactive, no-output, full-output)
If missing, patch CLAUDE.md with execute_code RTK rules.
4. Set Up Auto-Prune Cron (if not exists)
Schedule: 0 3 * * * (daily 3 AM) Deliver: origin
5. Optimize Memory
- Check memory usage (% of 2,200 char limit)
- Consolidate redundant entries
- Update RTK mandate entry if changed
6. Report Summary
Present combined analysis:
- Sessions: before → after pruning
- RTK coverage: commands filtered / total terminal calls
- Memory: usage %
- Auto-prune: active/paused
Key Metrics to Track
| Metric | Target | How to Check | |
|---|---|---|---|
| RTK coverage | 100% of eligible commands | rtk gain — compare count vs hermes insights tool calls | |
| Session count | <100 (prune regularly) | hermes sessions stats | |
| Memory usage | <90% | Memory tool response | |
| Auto-prune | Active | hermes cron list |
Common Issues
- Low RTK coverage: Patch CLAUDE.md with stricter execute_code rules
- Memory at 100%: Consolidate or remove entries using memory tool replace action
- Session bloat: Run prune for cron source first (safest to delete)
- RTK name collision: Check
which rtk— should be Rust Token Kit, not Rust Type Kit
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/development/context-optimization/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adityahimaone/hermes-agent-rtk-caveman/context-optimization)