feat: surface kimi status in orchestrator triage (#190)
This commit was merged in pull request #190.
This commit is contained in:
@@ -64,8 +64,12 @@ for p in json.load(sys.stdin):
|
|||||||
|
|
||||||
echo "Claude workers: $(pgrep -f 'claude.*--print.*--dangerously' 2>/dev/null | wc -l | tr -d ' ')" >> "$state_dir/agent_status.txt"
|
echo "Claude workers: $(pgrep -f 'claude.*--print.*--dangerously' 2>/dev/null | wc -l | tr -d ' ')" >> "$state_dir/agent_status.txt"
|
||||||
echo "Claude loop: $(pgrep -f 'claude-loop.sh' 2>/dev/null | wc -l | tr -d ' ') procs" >> "$state_dir/agent_status.txt"
|
echo "Claude loop: $(pgrep -f 'claude-loop.sh' 2>/dev/null | wc -l | tr -d ' ') procs" >> "$state_dir/agent_status.txt"
|
||||||
tail -50 "$LOG_DIR/claude-loop.log" 2>/dev/null | grep -c "SUCCESS" | xargs -I{} echo "Recent successes: {}" >> "$state_dir/agent_status.txt"
|
tail -50 "$LOG_DIR/claude-loop.log" 2>/dev/null | grep -c "SUCCESS" | xargs -I{} echo "Claude recent successes: {}" >> "$state_dir/agent_status.txt"
|
||||||
tail -50 "$LOG_DIR/claude-loop.log" 2>/dev/null | grep -c "FAILED" | xargs -I{} echo "Recent failures: {}" >> "$state_dir/agent_status.txt"
|
tail -50 "$LOG_DIR/claude-loop.log" 2>/dev/null | grep -c "FAILED" | xargs -I{} echo "Claude recent failures: {}" >> "$state_dir/agent_status.txt"
|
||||||
|
echo "Kimi loop: $(pgrep -f 'kimi-loop.sh' 2>/dev/null | wc -l | tr -d ' ') procs" >> "$state_dir/agent_status.txt"
|
||||||
|
tail -50 "$LOG_DIR/kimi-loop.log" 2>/dev/null | grep -c "SUCCESS" | xargs -I{} echo "Kimi recent successes: {}" >> "$state_dir/agent_status.txt"
|
||||||
|
tail -50 "$LOG_DIR/kimi-loop.log" 2>/dev/null | grep -c "FAILED" | xargs -I{} echo "Kimi recent failures: {}" >> "$state_dir/agent_status.txt"
|
||||||
|
tail -1 "$LOG_DIR/kimi-loop.log" 2>/dev/null | xargs -I{} echo "Kimi last event: {}" >> "$state_dir/agent_status.txt"
|
||||||
|
|
||||||
echo "$state_dir"
|
echo "$state_dir"
|
||||||
}
|
}
|
||||||
@@ -164,7 +168,14 @@ HEADER
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "" >> "$prompt_file"
|
echo "" >> "$prompt_file"
|
||||||
echo "Review each PR above. Execute curl commands for your decisions. Be brief." >> "$prompt_file"
|
cat >> "$prompt_file" <<'FOOTER'
|
||||||
|
INSTRUCTIONS: For EACH PR above, do ONE of the following RIGHT NOW using your terminal tool:
|
||||||
|
- Run the merge curl command if the diff looks good
|
||||||
|
- Run the close curl command if it is a duplicate or garbage
|
||||||
|
- Run the comment curl command only if there is a clear bug
|
||||||
|
|
||||||
|
IMPORTANT: Actually run the curl commands. Do not just describe what you would do. Finish means the PR world-state changed.
|
||||||
|
FOOTER
|
||||||
|
|
||||||
local prompt_text
|
local prompt_text
|
||||||
prompt_text=$(cat "$prompt_file")
|
prompt_text=$(cat "$prompt_file")
|
||||||
|
|||||||
Reference in New Issue
Block a user