SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.02264 · September 2026

Codebook Agent: Amortized Topology Design for LLM Multi-Agent Systems

Kai-Wei Chang, Ying Wu, Dong Liu, Zhi Zhang, Ying Nian Wu, Wenxiao Zhao, Eric Jiang, Eric Hanchen Jiang, Levina Li, Yubei Li, Jinxi Yu

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 11 failures of our instrument; 2 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/2609.02264.json · badge: /api/ran/2609.02264.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
jinxiy1104/CodebookAgent canonical (classifier label)
classifier basis: census
16 ran · 2 no recorded run
FunctionStatusWhere it lives
check_correctness Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/humaneval_dataset.py
pointer only (licence: NONE) · get_code("a2b71c1db65fa88c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dataloader Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/experiments/run_gsm8k.py
pointer only (licence: NONE) · get_code("ded2dee441b71d0d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

delete_extra_zero Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/gsm8k_dataset.py
pointer only (licence: NONE); the stored copy get_code serves, from TonySY2/AgentDropoutV2, is pointer only (licence: NONE) · get_code("1311b1da2c08b63b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jinxiy1104/CodebookAgent/codebook_agent/topology/diffusion_model.py
pointer only (licence: NONE) · get_code("aa6ecaa91965abd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gsm_data_process Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/gsm8k_dataset.py
pointer only (licence: NONE); the stored copy get_code serves, from TonySY2/AgentDropoutV2, is pointer only (licence: NONE) · get_code("54b831c1e15e7821")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

humaneval_data_process Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/humaneval_dataset.py
pointer only (licence: NONE) · get_code("3f336f3980547916")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

humaneval_get_predict Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/humaneval_dataset.py
pointer only (licence: NONE) · get_code("c74a49d80b21e6d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_result Ran
ran, honoured the contract we drafted
jinxiy1104/CodebookAgent/experiments/run_gsm8k.py
pointer only (licence: NONE) · get_code("f56ba650da6274d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_result Ran
ran, honoured the contract we drafted
jinxiy1104/CodebookAgent/experiments/run_math.py
pointer only (licence: NONE) · get_code("bcde03579f1c0bee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_result Ran
ran, honoured the contract we drafted
jinxiy1104/CodebookAgent/experiments/run_mmlu.py
pointer only (licence: NONE) · get_code("ea6dc23b572af8d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

math_data_process Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/math_dataset.py
pointer only (licence: NONE) · get_code("105ff03c866c0012")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

math_get_predict Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/math_dataset.py
pointer only (licence: NONE) · get_code("b4c384d94837ebb0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mmlu_check_correctness Ran
ran, violated the contract we drafted
jinxiy1104/CodebookAgent/benchmarks/mmlu_dataset.py
pointer only (licence: NONE) · get_code("de8750d7c8549e31")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mmlu_data_process Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/mmlu_dataset.py
pointer only (licence: NONE) · get_code("628f35aec1200854")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mmlu_get_predict Ran
ran; our contract draft was wrong, not the code
jinxiy1104/CodebookAgent/benchmarks/mmlu_dataset.py
pointer only (licence: NONE) · get_code("c9f7f2c48d0fa4bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

offdiag_index Ran
ran, violated the contract we drafted
jinxiy1104/CodebookAgent/codebook_agent/topology/vqvae_model.py
pointer only (licence: NONE) · get_code("025a4076cdecc356")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gsm_get_predict Not yet run
unverified (harvested, no recorded run)
jinxiy1104/CodebookAgent/benchmarks/gsm8k_dataset.py
pointer only (licence: NONE) · get_code("096880688731661e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

train_proxy_model_pyg Not yet run
unverified (harvested, no recorded run)
jinxiy1104/CodebookAgent/codebook_agent/topology/proxy_reward_model.py
pointer only (licence: NONE) · get_code("f9fb41d699fca91c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinxiy1104/CodebookAgent when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

FunctionAlso present inEarliest-datedOthers named
get_timestep_embedding 91 other papers
91 dated earlier · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
delete_extra_zero 2 other papers
2 dated earlier
2502.11133 (2025-02)
MasRouter: Learning to Route LLMs for Multi-Agent System
2602.23258 (2026-02)
AgentDropoutV2: Optimizing Information Flow in Multi-Agent Systems via Test-Time Rectify-or-Reject Pruning
gsm_data_process 2 other papers
2 dated earlier
2502.11133 (2025-02)
MasRouter: Learning to Route LLMs for Multi-Agent System
2602.23258 (2026-02)
AgentDropoutV2: Optimizing Information Flow in Multi-Agent Systems via Test-Time Rectify-or-Reject Pruning
dataloader 1 other paper
1 dated earlier
2502.11133 (2025-02)
MasRouter: Learning to Route LLMs for Multi-Agent System
load_result 1 other paper
1 dated earlier
2502.11133 (2025-02)
MasRouter: Learning to Route LLMs for Multi-Agent System

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

Adapting the communication topology of an LLM multi-agent system to each query improves both accuracy and efficiency, yet current designers treat this as conditional graph generation: a variational, autoregressive, or diffusion decoder searches the $N \times N$ adjacency space, and a graph-network proxy trained on utility and a structural cost such as edge count ranks the sampled candidates. We argue that this formulation is misaligned with the problem. Empirically, topologies that survive a reward filter collapse to about six distinct graphs even when the codebook capacity grows from 8 to 64; edge count is negatively correlated with measured token consumption (Pearson $r \approx -0.4$), so sparsifying the graph makes inference more expensive; and a message-passing scorer over agent-profile nodes is adjacency-invariant whenever agents share a profile---the default configuration of published benchmarks---so it cannot rank candidates at all in that regime. These three facts motivate Codebook Agent: a vector-quantized autoencoder compresses successful topologies into a query-independent 16-entry codebook; a reward-weighted MLP maps the query embedding to a distribution over codes; and an MLP proxy that reads the flattened adjacency, regressed on measured utility and per-task normalized token cost, reranks the top decoded candidates in a single batched forward pass. With no iterative search and no message passing at test time, Codebook Agent is the most accurate method on all six benchmarks we compare (84.6 average against 83.0 for the strongest prior designer), emits a topology in 2.4 ms, and uses 21.9--33.2% fewer LLM tokens.

For agents

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

get_harvested_code_for_paper("2609.02264")
get_code_for_paper("2609.02264")
have("2609.02264")

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

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

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

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

Connect an agent — have() is free.