Introduction: The PEO Pattern
Planner / Executor / Observer for structured thinking
Learn to separate strategic thinking, command execution, and continuous monitoring into dedicated tmux panes. Each pane has a specialized Claude prompt that focuses its role.
Strategic thinking, asks clarifying questions, proposes investigation steps
Refines commands, explains risks, verifies results before execution
Watches logs, summarizes business impact, highlights anomalies
Lesson 4.1: PEO Pattern for Operations
Three-pane layout for structured problem-solving
Setup PEO Layout
Use the ops-peo-layout.sh script to create a 3-pane tmux session with dedicated areas for planning, execution, and observation.
#!/usr/bin/env bash # ops-peo-layout.sh – Planner / Executor / Observer layout for Ops # Usage: ops-peo-layout.sh [SESSION_NAME] SESSION_NAME="${1:-ops-peo}" tmux has-session -t "$SESSION_NAME" 2>/dev/null if [ $? -eq 0 ]; then tmux attach -t "$SESSION_NAME" exit 0 fi tmux new-session -d -s "$SESSION_NAME" -n ops # Pane 1: Planner (Claude prompt for planning) tmux split-window -h -t "$SESSION_NAME:ops" # Pane 2: Executor tmux split-window -v -t "$SESSION_NAME:ops".2 # Pane 3: Observer tmux select-pane -t "$SESSION_NAME:ops".1 tmux attach -t "$SESSION_NAME"
Planner Prompt Preview
Executor Prompt Preview
Observer Prompt Preview
Lesson 4.1 Resources
Lesson 4.2: Failed Business Report Scenario
Apply PEO to a real incident
Scenario: Missing CEO Report
Problem: CEO's weekly revenue report didn't arrive on time
Report Triage Steps
- Confirm: Which report, which date/time, which recipient?
- Check if report exists in any folder/dashboard
- Check scheduler: Is the job enabled? Did it run? Any errors?
- Check data sources: CRM, ERP, payment gateway healthy?
- Use Claude to explain log snippets and propose commands
- Draft brief status update to stakeholders
How PEO Helps:
- Planner: Clarifies which report, proposes investigation steps
- Executor: Checks scheduler, data sources, triggers manual run
- Observer: Watches log file for success/failure signals
Result: Found CRM API timeout, report generated, stakeholders notified. Resolution time: 35 minutes
Lesson 4.2 Resources
Lesson 4.3: Security Alert Scenario
Defensive incident response with PEO
Scenario: Brute Force Attack
Alert: 15 failed login attempts from foreign IP in 10 minutes
Security Triage Steps
- Confirm scope: Which system? Which user(s)? When did it start?
- Gather logs: Authentication, VPN/firewall, EDR/AV alerts
- Use Claude for plain-language explanation and defensive actions
- Containment: Lock account, force password reset, block IP if needed
- Document: Fill incident note, record all commands and changes
How PEO Helps:
- Planner: Assesses risk level, proposes defensive actions in order
- Executor: Collects logs safely, blocks IP, resets passwords
- Observer: Monitors for ongoing attempts, confirms attack stopped
Result: Attack contained, no breach confirmed, 48h enhanced monitoring activated. Containment time: 30 minutes