adityahimaone/hermes-agent-rtk-caveman/context-optimization

Claude Code and agent skill by adityahimaone/hermes-agent-rtk-caveman

Trust tier 2
  • community
LLM review pending
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-optimization

SKILL.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
bash
rtk gain # RTK token savings
hermes insights # Full usage analytics (last 30 days)
hermes sessions stats # Session store size
2. Prune Old Sessions
bash
# Cron sessions older than 3 days (auto-generated, safe to delete)
hermes sessions prune --older-than 3 --source cron --yes
# Telegram sessions older than 14 days (if needed)
hermes sessions prune --older-than 14 --source telegram --yes
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)
bash
# Create cron: daily at 3 AM WIB
hermes sessions prune --older-than 3 --source cron --yes

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

MetricTargetHow to Check
RTK coverage100% of eligible commandsrtk gain — compare count vs hermes insights tool calls
Session count<100 (prune regularly)hermes sessions stats
Memory usage<90%Memory tool response
Auto-pruneActivehermes 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/adityahimaone/hermes-agent-rtk-caveman/context-optimization/badge)](https://verified-skill.com/skills/adityahimaone/hermes-agent-rtk-caveman/context-optimization)

Something wrong with this skill or its page? Tell us.