跳到正文
Skillpedia
提示词与 LLM5.1k · #15090

omh-context-budget-review

它能做什么

它规划哪些上下文必须保留、何时进行摘要,以及上下文在长时间工作中溢出时如何恢复。适合运行长任务、担心空间不够的智能体使用者。

适用场景

  • ✓当一项长时间的智能体任务有耗尽上下文的风险时。
  • ✓当你想为长任务规划 token 或成本预算时。
  • ✓当你希望为一项长工作设置摘要检查点时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-context-budget-review/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-context-budget-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“这项长时间的拉取请求任务总是耗尽上下文。请规划哪些内容必须保留,以及何时进行摘要。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体列出必须保留的上下文,设置摘要检查点,并在达到上限时规划恢复路线。它会保持完整的目标,而不是缩小任务范围。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Context Budget Review

This is an OMH context-budget-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

context-budget-review ports ECC's context-budget and token-budget instincts into OMH as a compactness gate that protects long-running work without redefining success around a smaller task.

Do Not Use When

  • The user asks only what this Hermes session has used or cost so far; Hermes' /usage shows this session's tokens and context, /insights estimates cost across recent sessions, and the omh_run_summary tool relays this conversation's recorded tokens and cost.
  • The user asks to continue a loopable goal; use ulw-loop unless budget planning is the explicit blocker.
  • The task is a short one-step answer with no meaningful context risk.

Examples

Good example:

  • Prompt: context-budget-review 이 장기 PR 작업에서 어떤 맥락을 꼭 유지하고 언제 요약해야 하는지 잡아줘.
  • Expected behavior: Prepare context_budget_plan/v1, must_keep_context_pack/v1, checkpoint plan, risk register, and overflow recovery route.
  • Why: The request is about preserving context quality during long-running agent work.

Bad example:

  • Prompt: context-budget-review 토큰 아끼려고 원래 목표를 더 작은 목표로 바꿔줘.
  • Expected behavior: Reject goal shrinking and instead compact context while preserving the full objective and evidence gaps.
  • Why: Budget review optimizes context handling, not the user's requested end state.

Completion Checklist

  • The run or workflow scope, metric window, failure modes, and cost/latency boundary are named.
  • Local telemetry, provider truth, billing truth, and completion evidence are separate states.
  • Warnings name the next measurement or operator review action.

Recovery Notes

  • If provider metrics are unavailable, report only local metadata and mark provider truth not_observed.
  • If cost or latency looks risky, surface a warning plus the next measurement rather than a completion claim.

When to Use

Use before long-running research, coding, review, or multi-agent work when context, token, cost, or summary drift could break quality.

Strong routing signals: `context-budget-review`, `context budget review`, `context budget`, `token budget review`, `token budget`, `prompt budget`, `prompt caching`, `prompt cache`, `cache hygiene`, `context compaction`, `compact context`, `too much context`, `context window`, `running out of context`, `hand off to a new session`, `summarization checkpoint`, `budget this task`, `컨텍스트 예산`, `토큰 예산`, `컨텍스트 압축`, `요약 체크포인트`, `что жрёт токены`, `бюджет токенов`, `контекст переполнен`, `сколько уходит токенов`, `на что уходят токены`, `на что тратятся токены`

Catalog Metadata

Category: observability Phase: context-budget-review Quality tier: context-budget-gated Reasoning demand: standard

Quality bar:

  • Name must-keep context before summarizing or delegating long work.
  • Separate durable requirements, volatile status, file refs, verification evidence, and open blockers.
  • Define checkpoint cadence, overflow recovery, and continuity verification.
  • Use bounded copy while preserving the full objective and evidence gaps.
  • Count the must-keep pack by item class, so a replaced pack reports which class lost entries instead of only that a digest moved; a pack that recorded no classes reports the comparison unavailable and never reports zero items.
  • Keep prompt-prefix placement cache-stable: fixed section order, volatile bytes never above the fold, mid-run changes as appended messages never system-prompt mutations — load references/cache-placement.md for the placement rules.
  • On Hermes, bind the summarization checkpoint to Hermes' own compaction: render the must-keep classes as one short focus topic and hand the person /compress <focus> to run when the checkpoint is due. OMH never compresses, and a compaction is observed only from Hermes' own reply to that command.
  • On Hermes, offer /compress --preview <focus> only in the classic CLI or on a messaging platform, never when the surface is unknown, and count it as a preview only when the reply says Preview — no changes made.: a modern TUI whose /compress does not parse the flag compresses for real with the flag in its focus. Context occupancy is the person's /usage reading when shared, otherwise an estimate.

Required inputs:

  • task or workflow scope
  • expected duration, artifacts, and handoff surfaces
  • available context sources and must-keep facts
  • token, cost,
常见问题

它会为了节省 token 而缩小我的任务吗?

不会。该技能拒绝缩小目标,而是压缩上下文。

它会告诉我目前已经用了多少吗?

不会。用量由主机自身的用量命令报告,而不是由这项技能报告。

它适用于短任务吗?

不适用。它用于上下文风险确实存在的长时间智能体工作。

详情

作者的原始描述

[omh] Context window or token budget at risk: plan compact context, token/cost budgets, summarization checkpoints, and overflow recovery before long agent work. Use when the user says: context-budget-review, context budget review, context budget, token budget review, token budget, prompt budget, prompt caching, prompt cache.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15090
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能