INNER CODE UNIT · Python
_update_pane_title
Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:463
def _update_pane_title(self, agent_id: int, agent: Dict) -> None:
"""Update tmux pane title with agent status and context percentage"""
pane_target = self.pane_mapping.get(agent_id)
if not pane_target:
return
# Build title with context warning
context = agent["last_context"]
status = agent["status"]
# Create context indicator with warning colors
if context <= self.context_threshold:
context_str = f"⚠️ {context}%"
elif context <= 30:
context_str = f"⚡{context}%"
else:
context_str = f"{context}%"