一键导入
context-monitor
Context window usage monitoring and auto-compact recovery. Use when context is filling up or after auto-compact occurs. Optional for strong models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Context window usage monitoring and auto-compact recovery. Use when context is filling up or after auto-compact occurs. Optional for strong models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Compute budget management with phase-based termination criteria. Use when checking budget, determining project phase, or making stop decisions.
ChangeLog.md format spec for VibeCodeHPC. Use when writing or validating ChangeLog entries with compile/job/test/sota fields.
Compiler warning triage for HPC parallelization. Use when deciding whether to proceed with job execution after compile warnings.
CLI and dependency installation guidance. Use when setting up VibeCodeHPC on a new environment — local PC, supercomputer, container, etc.
Hardware spec collection and theoretical peak performance calculation for HPC environments. Prerequisite: skills/ssh-management for remote access.
Evolutionary flat-directory exploration strategy for HPC optimization. Use when designing directory hierarchies or planning multi-generation parallelization strategies.
基于 SOC 职业分类
| name | context-monitor |
| description | Context window usage monitoring and auto-compact recovery. Use when context is filling up or after auto-compact occurs. Optional for strong models. |
| Level | Action |
|---|---|
| < 70% | Normal operation |
| 70-85% | Persist current state to files, update task list |
| 85-95% | Save intermediate results, minimize new file reads |
| ~95% | Auto-compact triggers — context will be compressed |
Note: The thresholds above are behavioral guidelines for agents. The
context_monitor.pyscript useswarning_threshold(70%) andauto_compact_threshold(95%) for visualization and alerting. The 85% intermediate action is the agent's own responsibility.
python3 ${CLAUDE_SKILL_DIR}/scripts/context_monitor.py --help
python3 ${CLAUDE_SKILL_DIR}/scripts/context_monitor.py claude --find-latest --status
python3 ${CLAUDE_SKILL_DIR}/scripts/context_monitor.py codex --find-latest --status --json
python3 ${CLAUDE_SKILL_DIR}/scripts/context_monitor.py gemini /path/to/telemetry.jsonl --visualize -o ./viz
python3 ${CLAUDE_SKILL_DIR}/scripts/context_monitor.py claude /path/to/session.jsonl --visualize --context-limit 200000
Supported parsers: claude, codex, gemini, opencode
PG_visible_dir.md to limit unnecessary file reads