executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
strategic-compactSuggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
Independent GitHub snapshot · Automated classification · Original documentation governs
在工作流程的策略點建議手動 /compact,而非依賴任意的自動壓縮。
自動壓縮在任意點觸發:
邏輯邊界的策略性壓縮:
suggest-compact.js 腳本在 PreToolUse(Edit/Write)執行並:
新增到你的 ~/.codex/settings.json:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit",
"hooks": [{ "type": "command", "command": "node ~/.codex/scripts/hooks/suggest-compact.js" }]
},
{
"matcher": "Write",
"hooks": [{ "type": "command", "command": "node ~/.codex/scripts/hooks/suggest-compact.js" }]
}
]
}
}
環境變數:
COMPACT_THRESHOLD - 第一次建議前的工具呼叫次數(預設:50)