INNER CODE UNIT · Python

get_status_table

Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:559

    def get_status_table(self) -> Table:
        """Generate status table for all agents"""
        table = Table(
            title=f"Claude Agent Farm - {datetime.now().strftime('%H:%M:%S')}",
            box=box.ROUNDED,  # Use rounded corners for status tables
        )

        table.add_column("Agent", style="cyan", width=8)
        table.add_column("Status", style="green", width=10)
        table.add_column("Cycles", style="yellow", width=6)
        table.add_column("Context", style="magenta", width=8)
        table.add_column("Runtime", style="blue", width=12)
        table.add_column("Heartbeat", style="cyan", width=8)
        table.add_column("Errors", style="red", width=6)

        for agent_id in sorted(self.agents.keys()):
            agent = self.agents[agent_id]
            runtime = str(datetime.now() - agent["start_time"]).split(".")[0]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…