Implement the core delegation architecture in Neo.mjs to support Swarm agent pooling and Max Tasks limits.
Scope
- Modify
ai/Agent.mjs: Implement the native .delegate(profileName, task) method.
- Sub-Agent Pooling: Introduce an
activeSubAgents map to keep agents alive for subsequent requests, preserving session context.
- Max Tasks Gate: Establish a Context Flush limit (
maxLifespan: 50 turns) to recycle agents and manage token windows securely.
- Browser Profile: Create
ai/agent/profile/Browser.mjs, equipping it with the Neural-Link & Chrome DevTools MCP server tools for autonomous visual telemetry.
Implement the core delegation architecture in
Neo.mjsto support Swarm agent pooling and Max Tasks limits.Scope
ai/Agent.mjs: Implement the native.delegate(profileName, task)method.activeSubAgentsmap to keep agents alive for subsequent requests, preserving session context.maxLifespan: 50turns) to recycle agents and manage token windows securely.ai/agent/profile/Browser.mjs, equipping it with the Neural-Link & Chrome DevTools MCP server tools for autonomous visual telemetry.