SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.20629 · 2026

Specialize Roles, Mix Deployments: Pushing the Cost-Accuracy Frontier of LLM Agent Teams

Wenda Li, Yufan Zhao, Luo Mai, Edoardo Ponti, Li Dong, Liang Cheng, Zhan Lu, Yinsicheng Jiang, Yeqi Huang

arXiv · PDF

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.20629.json · badge: /api/ran/2606.20629.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Auto-CAP/AgentCAP canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_llm_judgment Ran
ran on a synthesized input
Auto-CAP/AgentCAP/agent_cap/run_imo_answerbench_4.py
code served (permissive licence) · get_code("c4a35e2484140104")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned coroutine. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import asyncio
from typing import Any, Dict, Optional

torch.manual_seed(0)

# Stand-in Judge class that implements the async judge interface
class MockJudge:
    def __init__(self, should_be_equivalent: bool = True):
        self.should_be_equivalent = should_be_equivalent
        self.call_count = 0
    
    async def judge_equivalence_async(self, predicted: str, expected: str) -> Dict[str, Any]:
        """Mock judge that returns equivalence based on configuration"""
        self.call_count += 1
        return {
            'equivalent': self.should_be_equivalent,
            'raw_response': f'Mock judgment: predicted="{predicted}", expected="{expected}"'
        }

# Create the judge instance
judge = MockJudge(should_be_equivalent=True)

# Create a result dict with the required keys
result = {
    'predicted': 'The cat sat on the mat',
    'expected': 'The cat sat on the mat',
    'score': 0.95,
    'correct': True
}

ARGS = {
    'result': result,
    'judge': judge,
    'max_retries': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_failed_task_result Ran
ran; our contract draft was wrong, not the code
Auto-CAP/AgentCAP/agent_cap/imo_output.py
code served (permissive licence) · get_code("f2429b8e80856961")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Any, Dict

# Create a minimal task object with required attributes
class Task:
    def __init__(self):
        self.id = "task_123"
        self.name = "test_task"
        self.category = "reasoning"
        self.eval_config = {
            'expected': "expected_output_value"
        }

# Construct the task instance
task = Task()

# Define error message
error_message = "Task execution failed: unhandled exception occurred"

# Define latency in milliseconds
latency_ms = 1234.56

# Create ARGS dictionary with all required parameters
ARGS = {
    'task': task,
    'error_message': error_message,
    'latency_ms': latency_ms
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_timer Ran
ran; our contract draft was wrong, not the code
Auto-CAP/AgentCAP/agent_cap/core/timer.py
code served (permissive licence) · get_code("e58b1915aa9b1fcb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TimeTimer. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import time
import torch

torch.manual_seed(0)

# Test cases for create_timer function
# The function has one parameter: use_cuda (bool, default=False)

ARGS = {
    "use_cuda": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TimeTimer — a TimeTimer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TimeTimer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
positive_int Ran
ran, honoured the contract we drafted
Auto-CAP/AgentCAP/agent_cap/imo_output.py
code served (permissive licence) · get_code("43e1d98f53cdbc9a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

ARGS = {
    "value": "42"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_model_path Ran
ran; our contract draft was wrong, not the code
Auto-CAP/AgentCAP/agent_cap/run_imo_answerbench_4.py
code served (permissive licence) · get_code("f4edb838b05216e5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from pathlib import Path
import tempfile
import shutil

# Create a temporary directory to simulate a local model directory
temp_dir = tempfile.mkdtemp()
local_model_path = os.path.join(temp_dir, "test_model")
os.makedirs(local_model_path, exist_ok=True)

# Create a dummy file in the local model directory to make it a valid directory
with open(os.path.join(local_model_path, "config.json"), "w") as f:
    f.write("{}")

ARGS = {
    "model_path": local_model_path,
    "local_model_root": None
}

# Cleanup after definition
def cleanup():
    if os.path.exists(temp_dir):
        shutil.rmtree(temp_dir)
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
huggingface_hub — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tracked_stream Ran
ran; our contract draft was wrong, not the code
Auto-CAP/AgentCAP/agent_cap/imo_output.py
code served (permissive licence) · get_code("fa2bc096f2863e2b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned _TrackedStream. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import contextlib
import threading
from typing import Any, Callable

class SimpleStream:
    """A minimal stream implementation for testing."""
    def __init__(self):
        self.items = [1, 2, 3]
        self.closed = False
    
    def __iter__(self):
        return iter(self.items)
    
    def close(self):
        self.closed = True

def create_test_stream() -> Any:
    """Factory function that creates a stream."""
    return SimpleStream()

ARGS = {
    "create_stream": create_test_stream
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _TrackedStream — a _TrackedStream output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _TrackedStream output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate Not yet run
unverified (harvested, no recorded run)
Auto-CAP/AgentCAP/agent_cap/evaluator.py
code served (permissive licence) · get_code("6f5f18826bfcfa69")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

LLM agents are increasingly deployed as multi-role teams, where tasks are divided across specialized roles such as planner, executor, and verifier. In these systems, cost and accuracy are no longer properties of a single model: they depend on which model fills each role and where it is hosted, including API, self-hosted, and hybrid deployment. Existing agentic benchmarks typically evaluate fixed models or fixed agent configurations, and therefore offer limited guidance for cost-accuracyoptimal deployment. We introduce AgentCARD, a role-aware benchmark suite for evaluating LLM agent teams across role assignment and deployment mode. Agent-CARD combines a role-decomposed evaluation harness, a unified API/self-hosted cost model, Pareto-frontier analysis, and a Shapley-based diagnostic for identifying role bottlenecks. Our evaluation shows that heterogeneous teams consistently occupy the cost-accuracy frontier. They improve accuracy by up to 44% over cost-equivalent homogeneous teams, or match the strongest homogeneous team at up to 12× lower per-task cost through hybrid deployment. We further find that the best role assignment is domain-dependent: some domains are planner-bottlenecked, while others are executor-bottlenecked. Finally, AgentCARD extends beyond planner-executor teams to workflows with additional roles such as verification, and supports continual evaluation as new domains and team structures emerge. Our code is released at: https://github.com/Auto-CAP/AgentCAP.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.20629")
get_code_for_paper("2606.20629")
have("2606.20629")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.20629.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.20629.svg)](https://syntology.ai/paper/2606.20629)

Connect an agent — have() is free.