INNER CODE UNIT · Python
is_claude_working
Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:326
def is_claude_working(self, content: str) -> bool:
"""Check if Claude Code is actively working"""
indicators = ["✻ Pontificating", "● Bash(", "✻ Running", "✻ Thinking", "esc to interrupt"]
return any(indicator in content for indicator in indicators)
def has_welcome_screen(self, content: str) -> bool:
"""Check if Claude Code is showing the welcome/setup screen"""
welcome_indicators = [
# Setup/onboarding screens only
"Choose the text style",
"Choose your language",
"Let's get started",
"run /theme",
"Dark mode✔",
"Light mode",
"colorblind-friendly",
# Remove "Welcome to Claude Code" as it appears when ready
]