AgentWeave — Pre-Inference Routing for Tool-Rich LLMs

AgentWeave is an open-source pre-inference routing and reliability layer for tool-rich LLM applications and multi-agent systems. It reduces the tools or agents exposed to the model before inference while keeping policy, provenance, recovery, execution, and evaluation explicit.

AgentWeave is maintained by Saurav Singla and is designed for systems using MCP (Model Context Protocol), A2A, LangGraph, AutoGen, function calling, tool routing, agent routing, and multi-agent orchestration.

Start here

What problem does AgentWeave solve?

LLM and agent applications can expose hundreds or thousands of tools, APIs, or specialist agents. Sending the entire action catalog to the model increases the decision space, prompt size, and routing difficulty. AgentWeave performs routing before reasoning: it applies policy and capability constraints, selects a smaller relevant candidate set, and then hands that reduced action space to the downstream model or agent framework.

Core use cases

Research

AgentWeave accompanies the paper “AgentWeave: Routing Before Reasoning for Efficient Function Calling in Tool-Rich Language Models.”

Project identity

Canonical source repository: github.com/sauravsingla/agentweave

Author and maintainer: Saurav Singla