SuperAPIAI Directory

TabAgent

github.com · AI agents

TabAgent is an open-source project for replacing closed-set decisions in LLM agents (such as tool filtering, skill selection, and model routing) with lightweight classifiers trained from the agent's own logs. It is implemented through a three-stage pipeline (feature extraction, training, deployment) and, on the AppWorld tool-filtering task, achieves over 10³× lower latency and 10⁵× lower cost compared with the GPT-5.4 filter while maintaining comparable recall. The project provides a command-line tool, service-based deployment, and a hot-swap interface, and supports importing trajectories from multiple log formats (OpenAI, Anthropic, LangChain, etc.).

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

TabAgent is the official code implementation of the paper "TabAgent: Distilling LLM Agent Components into Cheap Classifiers" by IBM and the Weizmann Institute of Science. Its core purpose is to replace the recurring closed-set decisions in LLM agents (for example, filtering candidate tools from a tool list, selecting skills or apps, or routing to a specific model or sub-agent) with cheap classifiers trained on the agent's own successful run logs, thereby significantly reducing the latency and cost of each decision.

Main capabilities:

  • Automatically extract trajectory features from agent logs and train a lightweight CatBoost classification head.
  • On the AppWorld tool-filtering benchmark, TabAgent achieves Recall@9 of 92–100, with 2.682 milliseconds and $2.0×10⁻⁷ per decision, whereas the GPT-5.4 filter takes 7.50 seconds and costs $0.052, i.e., over 10³× lower latency and 10⁵× lower cost.
  • Supports multiple decision families (tool filtering, skill selection, model routing, etc.), with a single classification head able to serve all decision types.
  • Provides a command-line tool for training, evaluation, and deployment; supports launching an HTTP service via tabagent serve , providing readiness checks, Prometheus metrics, and drift monitoring.
  • Provides the ToolFilter hot-swap interface to replace LLM calls with classifier filtering, falling back to the full list when the classifier is uncertain.
  • Supports importing trajectories from OpenAI, Anthropic, LangChain, τ²-bench, CUGA, or generic JSON formats.
  • Provides pretrained heads (such as SkillsBench skill selection and τ²-bench tool filtering), which can be loaded via tabagent.load("hf://...") .

Usage:

  1. Installation: after cloning the repository, run uv sync --extra embed to install pinned dependency versions.
  2. Training: use the command-line tool to import decisions from agent logs and train a classification head.
  3. Deployment: run tabagent serve ./my_head --port 8077 to start the service and make decisions through the POST /decide endpoint.
  4. Integration: use ToolFilter in the agent to replace LLM calls with classifier filtering.
  5. Reproducing the paper: run make reproduce to reproduce all public table results on CPU.

Applicable scenarios:

  • LLM agents that frequently need tool filtering, skill selection, or model routing, especially latency- and cost-sensitive production environments.
  • Teams with large amounts of successful run logs that want to distill lightweight decision components.
  • Academic research reproduction and extension.

Limitations and caveats:

  • The project is relatively young, and some results (such as AppWorld trajectories of the CUGA agent) cannot be reproduced because the data is not public.
  • On the OAK and BPO enterprise benchmarks, with small trajectory pools TabAgent lags behind or only ties the best baseline; on sub-agent routing and skill-gating tasks it is comparable to the best fixed default.
  • On 24 held-out AppWorld tasks, the task success rate after hot-swapping is 27.1%, compared with 29.2% for the GPT-5.4 filter, and the 95% confidence interval of the difference includes zero.
  • Cross-architecture transfer (training on one ReAct agent and testing on another) loses about 3.1 P@R points on τ²-bench.
  • Training requires sending trajectories to an LLM provider; you can use --redact Desensitize parameters first.
  • The project does not include benchmark data or agent trajectories; you need to obtain them yourself and comply with their respective licenses.
  • The code is licensed under Apache-2.0.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools