Papers › ToFu: A White-Box, Token-Efficient Agent Harness for Researchers
ToFu: A White-Box, Token-Efficient Agent Harness for Researchers
Junhao Ruan, Yuan Ge, Bei Li, Yongjing Yin, Yuchun Fan, Xin Chen, Jingang Wang, Chenglong Wang, Jingbo Zhu, Tong Xiao
Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).
Agentic coding tools present new opportunities to transform research workflows. The performance of agent systems built depends on both large language models (LLMs) and the harness around LLMs, which is the orchestration code that determines an agent's behavior. We present ToFu, an agentic harness for researchers that reads your codebase, edits files, runs commands, and integrates with your development tools. ToFu plays a dual role in research. As a research assistant, it supports practical research workflows with superior token efficiency, lower cost, and multilingual capability compared with existing agentic harnesses. Its release under the MIT License further enables local deployment for privacy-sensitive users. As a research object, ToFu provides a white-box agentic harness that allows researchers to inspect, modify, and evaluate its orchestration logic, tool-use behavior, and harness design, while retaining strong benchmark performance and an application-level user experience.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2607.11423")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2607.11423", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2607.11423")
Code
Syntology 44 code samples harvested from 2 repositories linked to this paper: 27 ran (of which 4 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 1 violated, 4 with no contract checked; 21 where Syntology's instrument failed) · 17 unverified. Where Syntology's instrument failed: 18 where our contract draft was wrong; 3 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: found in paper text by Syntology: 44 samples from 2 repositories, 27 ran (6 with no instrument failure; 21 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
44 samples harvested: 27 ran (of which 4 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 1 violated, 4 with no contract checked; 21 where Syntology's instrument failed) · 17 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 0 of the 44 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.
bc7be2202a6bea3a · report
fixture: returned AgentResult · level recorded 2026-09-22 fd61bec9e8451d5c · report
fixture: returned ModelRoutingConfig · level recorded 2026-09-22 ea149cb800075bd0 · report
fixture: returned PrincipalContext · level recorded 2026-09-22 f061ce56b14a78ff · report
fixture: returned _CapacityGate · level recorded 2026-09-22 6a3548fb558d24f6 · report
fixture: signature value:str/0/str · returned bool · level recorded 2026-09-22 713836793b89d00e · report
fixture: signature value:str/0/str, field:str/0/str · returned str · level recorded 2026-09-22 3e6b9ec1560add57 · report
fixture: signature values:list/1/str · returned frozenset · level recorded 2026-09-22 b48e60d60fbb3007 · report
fixture: signature value:list/1/dict · returned list · level recorded 2026-09-22 c0c85b7b37ea9bb6 · report
fixture: signature value:dict/0/? · returned dict · level recorded 2026-09-22 ce6607004e26f067 · report
fixture: signature config:dict/0/? · returned dict · level recorded 2026-09-22 8d34624e924f456a · report
fixture: signature model_id:str/0/str, raw_config:dict/0/?, capabilities_legacy:NoneType/0/? · returned dict · level recorded 2026-09-22 8a145e8f9fededf5 · report
fixture: signature name:str/0/str · returned Logger · level recorded 2026-09-22 899c89697c470e7b · report
fixture: signature event:dict/0/? · returned dict · level recorded 2026-09-22 555d24e2d55498e2 · report
fixture: signature task:dict/0/?, model:str/0/str, requested_id:str/0/str, provider_id:str/0/str · returned dict · level recorded 2026-09-22 affea727c763cd31 · report
fixture: signature task:dict/0/?, model:str/0/str, requested_id:str/0/str, trajectory_fmt:NoneType/0/?, byo_provider:NoneType/0/?, provider_id:str/0/str · returned dict · level recorded 2026-09-22 d473f99d92ef7f33 · report
fixture: signature value:int/0/int, context:str/0/str · returned int · level recorded 2026-09-22 350201717d02549e · report
fixture: signature prefix:str/0/str, n:int/0/int · returned str · level recorded 2026-09-22 bb288e582e73d822 · report
fixture: signature task:dict/0/? · returned str · level recorded 2026-09-22 860522550fdf48c6 · report
82642b355243aaed · report
fixture: signature read_fn:callable/0/?, bib_paths:list/1/str · returned tuple · level recorded 2026-09-24 d94eaf375f12ece9 · report
fixture: signature result:dict/0/?, bib_paths:list/1/str · returned str · level recorded 2026-09-24 950c6b318c00d721 · report
fixture: signature content:str/0/str, title:str/0/str · returned str · level recorded 2026-09-24 75b3e97ce3adb04f · report
fixture: signature content:str/0/str · returned list · level recorded 2026-09-24 93b53ddab8b3ff07 · report
fixture: signature raw:str/0/str · returned dict · level recorded 2026-09-24 ff773fc5d655997a · report
fixture: signature project_id:str/0/str · returned str · level recorded 2026-09-24 7bb60ddee022c4f9 · report
fixture: signature root:str/0/str · returned dict · level recorded 2026-09-24 68e5f690dedc1239 · report
fixture: signature content:str/0/str, title:str/0/str, new_body:str/0/str · returned str · level recorded 2026-09-24 8ee109e261cc58d1 · report
fixture: signature base:PosixPath/0/?, target:str/0/str · returned PosixPath · level recorded 2026-09-24 Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.
1 assembly on this paper: 1 harvested, 0 generated.
harvested Assembly for TOFU (graph method: TOFU). 32 bricks; individually on a fixture: 18 ran (of which 4 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 1 violated, 4 with no contract checked; 12 where Syntology's instrument failed) · 14 unverified. The assembly has not been run end-to-end.
- AgentRuntime entry · level 0 · unverified ·
3c7fb39a344c8697 - AgentClosedError helper · level 0 · unverified ·
3f2d5d69e41412e5 - AgentConfigurationError helper · level 0 · unverified ·
860522550fdf48c6 - AgentExecution helper · level 0 · unverified ·
5dc134beeab5066c - AgentOverloadedError helper · level 0 · unverified ·
b64630e7eed22ecf - AgentRequest helper · level 0 · unverified ·
9aba9d801bfe046b - AgentResult helper · level 1 · ran ·
bc7be2202a6bea3a - ModelRoutingConfig helper · level 1 · ran ·
fd61bec9e8451d5c - PrincipalContext helper · level 1 · ran ·
ea149cb800075bd0 - _CapacityGate helper · level 1 · ran ·
f061ce56b14a78ff - apply_storage_free_runtime_policy helper · level 1 · ran · our draft was wrong ·
ce6607004e26f067 - build_agent_config helper · level 1 · ran; the contract check could not run (DEP_MISSING) ·
8d34624e924f456a - principal helper · level 0 · unverified ·
ab8cdd7c41d0cfa7 - AgentRuntimeError helper · level 0 · unverified ·
0e6dfa778257cc49 - AgentTimeoutError helper · level 0 · unverified ·
20298f5fa25e540b - project_agent_event_evidence helper · level 1 · ran · our draft was wrong ·
899c89697c470e7b - project_agent_evidence helper · level 1 · ran; the contract check could not run (DEP_MISSING) ·
555d24e2d55498e2 - project_agent_result helper · level 1 · ran; the contract check could not run (DEP_MISSING) ·
affea727c763cd31 - _contains_http_control helper · level 1 · ran · violated contract ·
6a3548fb558d24f6 - _env_first helper · level 0 · unverified ·
96c3e35ffbbfbf96 - _normalized_identifier helper · level 1 · ran · our draft was wrong ·
713836793b89d00e - _normalized_scopes helper · level 1 · ran · our draft was wrong ·
3e6b9ec1560add57 - require_user_id helper · level 1 · ran · honoured contract ·
d473f99d92ef7f33 - _alias_setters helper · level 0 · unverified ·
9f8765744e7c17e7 - _public_api_round_evidence helper · level 1 · ran · our draft was wrong ·
b48e60d60fbb3007 - _public_usage_evidence helper · level 1 · ran · our draft was wrong ·
c0c85b7b37ea9bb6 - short_id helper · level 1 · ran · our draft was wrong ·
350201717d02549e - terminal_finish_reason helper · level 1 · ran · our draft was wrong ·
bb288e582e73d822 - _set_if_truthy helper · level 0 · unverified ·
f288b8334f3d7f01 - _set_search helper · level 0 · unverified ·
ec84642642a948fd - _set_thinking helper · level 0 · unverified ·
83ecbec2083039c0 - get_logger helper · level 1 · ran · our draft was wrong ·
8a145e8f9fededf5
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2607.11423") returns these assemblies with each brick's role and wiring (how to connect).
Results from the paper
The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.11423, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections