AI Agent Hub
Back to skills
Hermes Efficiency Optimization Expert icon

Hermes Efficiency Optimization Expert

AI Agent Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_11064e10/hermes-efficiency.

About this skill

What It Addresses

Agents often edit files without checkpoints, lose track of progress after session resume, and lack a clear budget for token spend. Repeated failures also need a path from logs back into rules. hermes-efficiency turns these controls into executable commands rather than relying on prompt-level self-discipline.

How It Works

The core entry point is dispatch.py, working around a few concrete artifacts:
- Task checkpoints: pending, pending-update, and pending-done maintain PENDING.md so mid-edit context is not lost.
- Token budgeting: optimizer.py handles message classification, token estimation, and dynamic budget checks.
- Snapshots and logs: snapshot_updater.py refreshes snapshots, while memory/ records process data for review.
- Repair and evolution: repair runs built-in rules, and evolve derives new rules from error logs.

A typical flow starts with check-session in a new session, writes PENDING and pre-reads target files before editing, runs pending-done after execution, and records misses with reflect.

Boundaries

It assumes a local layout with scripts/, PENDING.md, and memory/, and depends on a Python environment. The optimization decisions are driven by optimization_engine.py, but it does not replace code review, testing, or deployment validation.

Use Cases

  • Start a new session with check-session to read PENDING.md and confirm the next action.
  • Write PENDING and pre-read targets before multi-file edits, then use pending-done to sync snapshots.
  • Use optimizer.py for classification, token estimation, and budget checks before deciding output length.
  • Write repeated errors to error-log, then run evolve to generate rules and update the analyzer.

Best For

  • Engineering collaborators who need PENDING and snapshots to preserve long-task progress in Agent workflows.
  • Model app developers who want token estimation and budget checks before choosing output length or splitting calls.
  • Agent workflow maintainers who turn repeated failures into rules through repair and evolve.
  • Local Agent script authors who chain pending, repair, and evolve through dispatch commands.