Building an adaptive company harness: dynamic agent factories to beat context bloat

hwchase17 · x · 2026-10-23

When every team loads their own skills and MCP servers into a company-wide mega-agent, context bloat is inevitable. Caspar shares the fix in Managed Deep Agents: build the agent from a factory function that runs at the start of each run with all relevant context, dynamically assembling a different model/skills/tools/sandbox/memory setup to suit each team's needs — finance gets billing skills, platform gets an incident MCP server, and nothing else gets loaded.

Original post →

More from coding & agent

coding & agent channel →