计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
token-conservation【效率与协作】Enforces token quota management at session start with conservation and compression checks. Use at the start of every session or before large context loads.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: token-conservation description: Enforces token quota management at session start with conservation and compression checks. Use at the start of every session or before large context loads. alwaysApply: false progressive_loading: true dependencies: hub: [] modules: [] modules:
token-conservation:quota-checktoken-conservation:context-plantoken-conservation:delegation-checktoken-conservation:compression-reviewtoken-conservation:loggingquota-check)/status or notebook).
Note the 5-hour rolling cap and weekly cap highlighted in the Claude community notice.context-plan)Set a discovery read budget BEFORE reading any files. Count each Read call
and each content-mode Grep as one read. Glob and files-with-matches Grep are free.
Read order (most valuable first): spec/requirements, files to modify, imports/interfaces, then stop and start writing.
When budget is spent: ask the user if more context is needed. Do NOT self-authorize additional reads. Only explicit user approval overrides the budget.
Prefer Read with offset/limit params or Grep tool over loading whole files.
A Read targeting <50 lines counts as 0.5 reads. Avoid cat/sed/awk via Bash:
Claude Code 2.1.21+ steers toward native file tools (Read, Edit, Write, Grep, Glob).
PDFs (Claude Code 2.1.30+): Use Read with pages: "1-5" for targeted PDF reading
instead of loading entire documents. Large PDFs (>10 pages) return a lightweight
reference when @-mentioned, so use the pages parameter to read specific sections.
Hard limits: 100 pages max, 20MB max per PDF. Exceeding these previously locked
sessions permanently (fixed in 2.1.31).
Convert prose instructions into bullet lists before prompting so only essential info hits the model.
Before a web search or fetch, decide whether the claim needs a
source at all. modules/source-selection.md sorts claims into those
worth citing (versions, performance, security, APIs, pricing) and
those that are not, with the token cost of each approach.
delegation-check)qwen-delegation skill if needed).compression-review)prompt caching ideas: reference prior outputs instead of restating them
when the model has already processed the information (cite snippet IDs)./new/compact before continuinglogging)Document the conservation tactics that were applied and note the remaining
token budget. If the budget is low, explicitly warn the user and propose secondary
plans. Record any recommendations made regarding the use of /new or /compact,
or justify why neither was necessary, to inform future context-handling decisions.
/new or /compact whenever you determine it would save
tokens (otherwise state that no reset/compaction is needed yet).quota-check, context-plan, delegation-check,
compression-review, loggingRead call, with
the task type (spec/bug/refactor/exploration) and max-reads
limit recorded/new or /compact
recommendation, or a justification for why neither is neededmodules/source-selection.md