INNER CODE UNIT · Python

AgentMonitor

Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:211

class AgentMonitor:
    """Monitors Claude Code agents for health and performance"""

    def __init__(
        self,
        session: str,
        num_agents: int,
        pane_mapping: Dict[int, str],
        context_threshold: int = 20,
        idle_timeout: int = 60,
        max_errors: int = 3,
        project_path: Optional[Path] = None,
    ):
        self.session = session
        self.num_agents = num_agents
        self.pane_mapping = pane_mapping
        self.agents: Dict[int, Dict] = {}
        self.running = True

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…