Add TechLead agent payload and templates
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# Start TechLead Hermes agent in tmux session
|
||||
set -euo pipefail
|
||||
|
||||
TECHLEAD_LOG=${TECHLEAD_LOG:-/var/log/hermes/techlead_actions.log}
|
||||
COVERAGE_THRESHOLD=${COVERAGE_THRESHOLD:-70}
|
||||
ESCALATION_DELAY_HOURS=${ESCALATION_DELAY_HOURS:-48}
|
||||
TMUX_SESSION=${TMUX_SESSION:-techlead}
|
||||
PROFILE=${HERMES_PROFILE:-default}
|
||||
|
||||
mkdir -p "$(dirname "$TECHLEAD_LOG")"
|
||||
|
||||
# Start tmux session with hermes interactive chat
|
||||
if ! tmux has-session -t "$TMUX_SESSION" 2>/dev/null; then
|
||||
tmux new-session -d -s "$TMUX_SESSION" "hermes --profile $PROFILE chat"
|
||||
sleep 2
|
||||
# Send initial system instruction
|
||||
tmux send-keys -t "$TMUX_SESSION" "You are TechLead-bot. Load persona from /workspace/exports/techlead_payload.yaml and start monitoring issues with label 'epic'." C-m
|
||||
tmux send-keys -t "$TMUX_SESSION" "COVERAGE_THRESHOLD=$COVERAGE_THRESHOLD ESCALATION_DELAY_HOURS=$ESCALATION_DELAY_HOURS TECHLEAD_LOG=$TECHLEAD_LOG" C-m
|
||||
echo "Started tmux session '$TMUX_SESSION' with TechLead agent."
|
||||
else
|
||||
echo "Tmux session '$TMUX_SESSION' already exists. Attach with: tmux attach -t $TMUX_SESSION"
|
||||
fi
|
||||
|
||||
# One-shot alternative (no tmux):
|
||||
# hermes --profile $PROFILE chat -q "You are TechLead-bot. Load persona from /workspace/exports/techlead_payload.yaml and decompose epic: ..."
|
||||
Reference in New Issue
Block a user