INNER CODE UNIT · Python

check_agent

Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:394

    def check_agent(self, agent_id: int) -> Dict:
        """Check status of a single agent"""
        pane_target = self.pane_mapping.get(agent_id)
        if not pane_target:
            console.print(f"[red]Error: No pane mapping found for agent {agent_id}[/red]")
            return self.agents[agent_id]

        content = tmux_capture(pane_target)

        agent = self.agents[agent_id]

        # Update context percentage
        context = self.detect_context_percentage(content)
        if context is not None:
            agent["last_context"] = context

        # Check for errors
        if self.has_settings_error(content):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…