feat: add SUCCESS window to tmux helper with grep on orch and trainer logs (#3039)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s

Add a new tmux window with two stacked panes that tail and grep
SUCCESS from orchestrator.log and trainer.log respectively, making
it easy to monitor key training milestones at a glance.
This commit is contained in:
samsja
2026-07-17 15:02:57 -07:00
committed by GitHub
parent 9208731022
commit 825e6ce98f
+14 -1
View File
@@ -97,7 +97,20 @@ tmux send-keys -t "$SESSION_NAME:Logs.2" \
tmux send-keys -t "$SESSION_NAME:Logs.3" \
"tail -F ${LOG_DIR}/inference.log 2>/dev/null" C-m
# Window 2: Agent (claude code or codex) with log context
# Window 2: SUCCESS - grep SUCCESS on orch and trainer logs (two stacked panes)
tmux new-window -t "$SESSION_NAME" -n "SUCCESS"
tmux split-window -v -t "$SESSION_NAME:SUCCESS.0"
tmux select-layout -t "$SESSION_NAME:SUCCESS" even-vertical
tmux select-pane -t "$SESSION_NAME:SUCCESS.0" -T "Orchestrator"
tmux select-pane -t "$SESSION_NAME:SUCCESS.1" -T "Trainer"
tmux send-keys -t "$SESSION_NAME:SUCCESS.0" "tail -F ${LOG_DIR}/orchestrator.log 2>/dev/null | grep --line-buffered SUCCESS" C-m
tmux send-keys -t "$SESSION_NAME:SUCCESS.1" "tail -F ${LOG_DIR}/trainer.log 2>/dev/null | grep --line-buffered SUCCESS" C-m
# Window 3: Agent (claude code or codex) with log context
tmux new-window -t "$SESSION_NAME" -n "Agent"
AGENT_PROMPT="You are monitoring a prime-rl training run. The output directory is ${OUTPUT_DIR}. Log paths: