-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Split Tab agents orchestration #1049
Replies: 1 comment · 1 reply
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
""" import asyncio try: ============ DATA MODELS ============@DataClass @DataClass @DataClass @DataClass ============ UNIFIED BROWSER MANAGER ============class BrowserManager: ============ GLOBAL INSTANCE ============_manager: Optional[BrowserManager] = None def get_manager() -> BrowserManager: ============ CONVENIENCE FUNCTIONS ============async def init(browser_type: str = "chromium", headless: bool = False, standby: int = 0): def start_monitor(interval: float = 2.0): def on_change(callback: Callable): async def spawn(name: str = None, port: int = None) -> AgentInstance: async def create_team(configs: List[Dict], layout: str = "horizontal") -> List[AgentInstance]: async def split(names: List[str], layout: str = "horizontal"): async def grid(names: List[str], cols: int = 2, rows: int = 2): async def focus(name: str): async def send(name: str, message: str): async def broadcast_all(message: str): async def release(name: str, standby: bool = True): async def close(name: str): async def close_all(): async def scan() -> BrowserState: def summary() -> Dict: def find_port(start: int = 3000, end: int = 3100) -> int: async def shutdown(): ============ USAGE EXAMPLE ============""" Initialize with 3 standby agentsawait init(standby=3) Start monitoringstart_monitor(2.0) React to changesdef on_browser_change(state): on_change(on_browser_change) Spawn agentsteam = await create_team([ Send tasksawait send("researcher", "Search for papers") Cleanupawait shutdown() |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 How Agent Zero Uses the Browser Orchestrator
The browser_orchestrator.py is a tool that Agent Zero itself can import and call programmatically - not a manual UI.
✅ Browser Awareness System REGISTERED
Agent Zero now has full browser awareness through two complementary tools:
📍 Registered Tools
🤖 How Agent Zero Uses Both
1. Initialize Awareness (First)
Output:
Coder @ localhost:3003✅ browser_manager.py Created - UNIFIED TOOL
Both tools have been combined into a single unified tool:
📍 Location
📊 Awareness Data Available
🔄 Complete Awareness → Control Loop
🎯 Key Capabilities
✅ browser_manager.py Created - UNIFIED TOOL
Both tools have been combined into a single unified tool:
📍 Location
🤖 How Agent Zero Uses the Unified Tool
📊 Unified Capabilities
AWARENESS (from browser_awareness)
scan()- Full browser state scanfind_port()- Find available portget_agent_zero_tabs()- List all A0 instanceson_change()- State change callbacksstart_monitor()- Real-time monitoringORCHESTRATION (from browser_orchestrator)
spawn()- Create new agentcreate_team()- Parallel agent teamsplit()/grid()- Layout arrangementssend()/broadcast_all()- Messagingfocus()- Bring tab to frontrelease()/close()- Lifecycle management🎯 Single Import, All Features
Beta Was this translation helpful? Give feedback.
All reactions