hermaeuswaelon/fl33t/hermes-compression-fix

Claude Code and agent skill by hermaeuswaelon/fl33t

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Fix and troubleshoot compression mechanism in Hermes Agent conversations.

Install

npx vskill@latest install hermaeuswaelon/fl33t/hermes-compression-fix

SKILL.md

The same SKILL.md was published earlier as hermaeuswaelon/fl33t/hermes-compression-fix.

Hermes Compression Fix

When to Use

When compression in Hermes Agent conversations is not working as designed — multi-tier thresholds firing incorrectly, context not compressing, or default compression behavior needs adjustment.

Key Files

FilePurpose
/opt/hermes-agent/agent/context_compressor.pyCore compression logic: thresholds, triggers, ratios
/opt/hermes-agent/agent/system_prompt.pySystem prompt assembly, calls context_compressor
/opt/hermes-agent/agent/prompt_builder.pyPrompt assembly, passes context info to compressor
~/.hermes/profiles/*/config.yamlPer-profile config, may override compression

Fix Pattern

  1. Check current thresholds in context_compressor.py:
  • _TIER1_THRESHOLD_TOKENS, _TIER1_5_THRESHOLD_TOKENS, _TIER2_THRESHOLD_TOKENS
  • Verify they match desired behavior (single threshold vs multi-tier)
  1. Check compression triggers: should_compress() logic + ratio targets
  1. Verify defaults: hermes config CLI for conversation-level settings
  1. Test: Force a compression event, check compressor output

Default Single-64K Threshold (simplified)

_TIER1_THRESHOLD_TOKENS = 64000
_TIER1_5_THRESHOLD_TOKENS = 999999 # disabled
_TIER2_THRESHOLD_TOKENS = 999999 # disabled
_TIER1_COMPRESSED_RATIO = 0.382 # compress to 38.2%

Pitfalls

  • Update both _TIER*_THRESHOLD_TOKENS and COMPRESSION_TIERS dict when changing thresholds
  • Changes to context_compressor.py take effect on next session start
  • context_window_size in config.yaml may override model native context length

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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/hermaeuswaelon/fl33t/hermes-compression-fix/badge)](https://verified-skill.com/skills/hermaeuswaelon/fl33t/hermes-compression-fix)

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