codeflash-agent/plugin/languages/python/v2/scripts
Kevin Turcios 42b855899f Reduce hook latency by consolidating subprocess calls
Collapse multiple jq/grep/sed invocations into single passes:
- post-compact-state-inject: 7 jq calls → 1 (-51%)
- session-start: 6 sed/grep → 1 sed pipeline (-37%)
- user-prompt-context-inject: 2 jq → 1 (-33%)
- pre-compact-state-save: 3 tail|grep → 1 awk (-42%)
- post-tool-benchmark-capture: 3 jq → 1 (-23%)
- stop-optimization-gate: 3 tail|grep → 1 awk
- pre-compact: fix macOS-incompatible sed newline escaping
2026-04-21 05:01:53 -05:00
..
post-compact-state-inject.sh Reduce hook latency by consolidating subprocess calls 2026-04-21 05:01:53 -05:00
post-tool-benchmark-capture.sh Reduce hook latency by consolidating subprocess calls 2026-04-21 05:01:53 -05:00
pre-compact-state-save.sh Reduce hook latency by consolidating subprocess calls 2026-04-21 05:01:53 -05:00
stop-optimization-gate.sh Reduce hook latency by consolidating subprocess calls 2026-04-21 05:01:53 -05:00
user-prompt-context-inject.sh Reduce hook latency by consolidating subprocess calls 2026-04-21 05:01:53 -05:00