@LangChain: .@mondaydotcom had one agent trying to handle 200+ tools. Context pollution everywhere. The LLM was confused, costs ris…
Summary
Monday.com's Sidekick AI agent transitioned from a multi-agent architecture (200+ tools) to a deep agent architecture, solving context pollution and cost issues through three-layer tool discovery, priority delegation, code writing, and self-healing mechanisms.
View Cached Full Text
Cached at: 06/28/26, 09:59 AM
.mondaydotcom had one agent trying to handle 200+ tools.
Context pollution everywhere.
The LLM was confused, costs rising, and it still wasn’t working.
@omribruchim on rebuilding Sidekick with Deep Agents: https://t.co/fS6u3D1X6V https://t.co/n5nL9PxVts
TL;DR
Monday.com’s Sidekick AI agent fully pivoted from a traditional multi-agent architecture (200+ tools, context pollution) to a Deep Agent architecture. By using three-layer tool discovery, priority delegation, code-writing tools, and self-healing mechanisms, they solved the chaos and cost issues of scaling.
Background: Painful Lessons from V1 to V2
Monday.com is an AI-powered work platform. They built Sidekick, an intelligent personal assistant. V1 was based on a simple reactive loop — limited functionality but it worked. As the business expanded (CRM, Service, Marketing and other product lines, each with different tools and contexts), the team tried to cram everything into one engine for V2 — and it “blew up in our faces.”
V2 used a multi-agent architecture: each domain had its own MCP (Model Context Protocol) and tool set, but the engine ended up with over 200 tools, plus unlimited context injection, leading to:
- Context pollution: The LLM was confused by the flood of irrelevant tools.
- Costs skyrocketing: The model had to process huge amounts of irrelevant information.
- Conflicting domain requirements: One toolset couldn’t simultaneously handle CRM boards, Service docs, and other scenarios.
The team realized they needed a completely new architecture. After researching, they chose Deep Agent.
Why Deep Agent?
Deep Agent satisfied Monday.com’s core principles:
- Built for real work, not just a chat interface.
- Supports multi-step workflows and iterative planning.
- Better separation of concerns: keeps context from exploding through sub-agents and memory management.
- Filesystem-style deep context.
Philosophy: A single highly capable brain (an intelligent orchestrator), not hundreds of chaotic specialized agents talking to each other. At the same time, trust modern LLMs to handle complex tasks like planning, memory management, and sub-agent generation on their own.
Four Core Principles
1. Three-Layer Tool Discovery
Solves the “200 tools + context pollution” problem.
- Layer 1: Base toolset — Always exposed to the model. Covers 50–60% of common use cases, such as web search, image generation, URL extraction, Monday knowledge base search, etc. Small in number, stays efficient.
- Layer 2: Contextually relevant tools — Dynamically injected based on the entity the user is currently viewing (document, board, CRM record, etc.). For example, on a notes screen, only expose tools like “get board activity” or “meeting notes.” Drastically reduces background noise.
- Layer 3: Lazy tools — A catalog of all other tools, each with a short description of 20 words or fewer. The agent can call a “lazy tool” to activate the actual tool; only then is the tool brought into context. All operations happen in real time, reducing hallucinations. Next step: push all tool descriptions into a semantic database for semantic search.
Real example: When the agent understands it needs to “create a project,” it searches via lazy tools for the corresponding creation tool, activates it, and uses it. This avoids preloading all tools.
2. Priority Delegation (Sub-agents & Middleware)
Delegates tasks to specialized sub-agents, preventing the main agent from being bogged down by repetitive chores.
- Sub-agents: For repetitive tasks (e.g., presentation builder, web researcher). Two execution modes: one is direct delegation (like “ask quality”), where the main agent can continue working in parallel and come back when the sub-agent is ready. In the demo, the user asked Sidekick to introduce itself; Sidekick immediately used a sub-agent to build a presentation (leveraging a sandbox).
- Middleware pipeline: Enables seamless delegation and separation of concerns. Key middleware includes:
- Context manager: Injects user identity, location, time zone, connected MCPs, etc.
- Mistaken name fix middleware: Corrects tool names hallucinated by the LLM.
- Model selection middleware: Allows users to switch the running model in real time.
Middleware keeps the execution graph clean, testable, and composable.
3. Tools Can Write Code
Avoids building a dedicated tool for every use case. Sidekick allows the agent to write Python code and run it in a secure sandbox (LangChain sandbox). One secure sandbox can replace hundreds of tools.
Real case: A user wanted to find a new office for the unit in London, requiring a drive of no more than 20 minutes from Big Ben, departing at a specific time. Sidekick used the Google API and open maps, wrote an algorithm to calculate suitable offices around the location. Without a code-writing tool, this would have been impossible.
4. Self-Healing
LLMs often hallucinate confidently, but Sidekick can self-correct in production.
- Variable advisor tool: When Sidekick doesn’t know what to do, middleware detects the failure and automatically switches to a different model.
- Resource scaling: On out-of-memory errors, automatically tries to scale resources (a simple retry strategy that solves many issues).
- Recovery success rate: After these strategies, Sidekick achieves a 94% recovery success rate. This mechanism is called “repair reflection” and covers all resources.
Enterprise workflows cannot tolerate frequent failures — self-healing is a must for production.
Real Results & Advice for Developers
Sidekick has moved from V2’s chaos to a new-generation Deep Agent architecture, successfully solving tool bloat and context pollution. In complex tasks like the London office search, the agent autonomously plans, writes code, and calls external APIs — truly “getting work done.”
Finally, Omri gives four pieces of advice:
- Use code-writing tools: The ultimate infinite-scale tool; works great.
- Prioritize delegation: Don’t put everything on a single agent.
- Use tool discovery: When the tool list is long, don’t cram it all into the orchestrator — split and use middleware.
- Use Deep Agent: It brings clear separation of concerns and robustness.
Source: YouTube – @LangChain: .@mondaydotcom had one agent trying to handle 200+ tools… (https://www.youtube.com/watch?v=c2fLLS7np3Y)
Similar Articles
@LangChain: Deep Agents now supports dynamic subagents. Instead of invoking subagents with tool calls, the main agent writes orches…
LangChain's Deep Agents now supports dynamic subagents, where the main agent writes orchestration code to coordinate work at scale, enabling workflows like processing hundreds of documents with deterministic coverage.
@justloveabit: With This Open-Source Tool, I Got a Team of AIs to Work for Me. Here's the deal: I've been tinkering with various AI agents lately. Multiple Claude Code windows open, Codex running, occasionally using Cursor. The result? Total chaos—I had no idea what each agent was doing or how much it was costing. Restar…
This article introduces Paperclip, an open-source tool designed to centrally manage and orchestrate multiple AI agents. By simulating a corporate organizational structure, task assignment, and budget control, it addresses key pain points in multi-agent collaboration, such as lost context, unpredictable costs, and chaotic scheduling.
@Xudong07452910: Open-source framework recommendation: Agency Agents — 232 professional AI agents, divided by function, covering 16 business departments. If you've used Claude Code or Codex, you may have encountered this problem: AI is very capable at coding tasks, but when it comes to front-end design, writing marketing...
Agency Agents is an open-source framework providing 232 professional AI agents covering 16 business departments. Each agent has a unique personality, communication style, and delivery standards. It supports multiple development tools such as Claude Code, GitHub Copilot, and has community-translated versions.
@WWTLitee: Another multi-agent collaboration tool: agency-agents. It can run separate roles like frontend, community, creative checks, and reality checks, each with its own boundaries, pace, and delivery habits, making it feel more like a team working together. The repo now has 103.5k stars, ...
Agency-Agents is an open-source AI multi-agent collaboration tool that integrates multiple specialized roles (e.g., frontend, community, creative checks) with independent boundaries and delivery habits, suitable for building multi-agent workflows. The GitHub repo has 103.5k stars.
@LangChain: Agents are writing code, processing files, analyzing data, installing packages, and running multi-step workflows. To do…
LangChain is hosting a technical webinar on July 15 about building a secure execution environment for AI agents, covering security, isolation, and observability.