원클릭으로
shark-autotune
Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run shark.ps1/shark.sh loop enforcer with OS-level timeout per turn
Clean up shark state files (.shark-done, SHARK_LOG.md, pending.json, timings.jsonl)
Check status of shark-exec background jobs, .shark-done, and SHARK_LOG.md
| name | shark-autotune |
| description | Analyse shark timing history and recommend optimal SHARK_LOOP_TIMEOUT and SHARK_MAX_LOOPS settings |
Analyse recorded shark timing data and recommend optimal settings.
Read $SKILL_DIR/../state/timings.jsonl — each line is a JSON object:
{"ts":1710000000,"loop":1,"elapsed_s":12.3,"timeout_s":25,"result":"ok|timeout|done","task_hash":"abc123"}
If the file doesn't exist or is empty, report "No timing data yet. Run tasks with /shark first to collect data."
Compute and report:
Show recommendations:
Current: SHARK_LOOP_TIMEOUT=25 SHARK_MAX_LOOPS=50
Recommended: SHARK_LOOP_TIMEOUT=N SHARK_MAX_LOOPS=M
Rationale:
- p95 turn time is Xs, so timeout of Ns covers 95% with buffer
- p95 completion is N loops, so max_loops of M gives safe margin
- Timeout rate is X% — [>15%: consider splitting tasks | healthy]
- Wasted headroom: Xs total
If timeout rate > 30%: "Consider breaking tasks into smaller steps."
If median turn time < 5s: "Most turns complete fast. Consider lowering timeout."