Skip to content

pre-compact-preserve.sh

来自 cli/templates/level-2/

bash
#!/usr/bin/env bash
cat <<'EOF'
{
  "hookSpecificOutput": {
    "hookEventName": "PreCompact",
    "additionalContext": "MUST preserve during compaction: 1. All modified file paths 2. Current task progress and next steps 3. Test commands and results 4. Architecture decisions 5. Failed attempts and reasons"
  }
}
EOF
exit 0

面向个人开发者的 AI 辅助编程工程化方案