Papers › ToFu: A White-Box, Token-Efficient Agent Harness for Researchers

ToFu: A White-Box, Token-Efficient Agent Harness for Researchers

13 Jul 2026arXiv:2607.11423added by Syntology

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.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.11423")

Code

Syntology Ran 27 of 44 code samples harvested from 2 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 9 ran · our draft was wrong; 3 ran · fixture could not drive it; 13 ran with no contract checked.

By repository: found in paper text by Syntology: 44 samples from 2 repositories, 27 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

NiuTrans/ToFu found in paper text by Syntology report
rangehow/overleaf-mcp found in paper text by Syntology report

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; 1 honoured the contract we drafted; 17 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
9ran · our draft was wrong
3ran · fixture could not drive it
13ran
17unverified

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; each sample names its own and says which. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

AgentResult NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · bc7be2202a6bea3a · report
ModelRoutingConfig NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · fd61bec9e8451d5c · report
PrincipalContext NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · ea149cb800075bd0 · report
_CapacityGate NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran MIT (permissive) · f061ce56b14a78ff · report
_contains_http_control NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · violated contract MIT (permissive) · 6a3548fb558d24f6 · report
_normalized_identifier NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 713836793b89d00e · report
_normalized_scopes NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 3e6b9ec1560add57 · report
_public_api_round_evidence NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · b48e60d60fbb3007 · report
_public_usage_evidence NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · c0c85b7b37ea9bb6 · report
apply_storage_free_runtime_policy NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · ce6607004e26f067 · report
build_agent_config NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 8d34624e924f456a · report
collect_bibtex rangehow/overleaf-mcp/src/overleaf_mcp/verify.py found in paper text by Syntology ran MIT (permissive) · 82642b355243aaed · report
format_report rangehow/overleaf-mcp/src/overleaf_mcp/verify.py found in paper text by Syntology ran MIT (permissive) · d94eaf375f12ece9 · report
get_logger NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 8a145e8f9fededf5 · report
get_section_content rangehow/overleaf-mcp/src/overleaf_mcp/latex.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 950c6b318c00d721 · report
parse_sections rangehow/overleaf-mcp/src/overleaf_mcp/latex.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 75b3e97ce3adb04f · report
parse_synctex rangehow/overleaf-mcp/src/overleaf_mcp/layout.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 93b53ddab8b3ff07 · report
project_agent_event_evidence NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 899c89697c470e7b · report
project_agent_evidence NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 555d24e2d55498e2 · report
project_agent_result NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · affea727c763cd31 · report
project_url rangehow/overleaf-mcp/src/overleaf_mcp/config.py found in paper text by Syntology ran fingerprinted MIT (permissive) · ff773fc5d655997a · report
read_metadata rangehow/overleaf-mcp/src/overleaf_mcp/metadata.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 7bb60ddee022c4f9 · report
require_user_id NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · honoured contract MIT (permissive) · d473f99d92ef7f33 · report
short_id NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 350201717d02549e · report
terminal_finish_reason NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · bb288e582e73d822 · report
update_section rangehow/overleaf-mcp/src/overleaf_mcp/latex.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 68e5f690dedc1239 · report
validate_path rangehow/overleaf-mcp/src/overleaf_mcp/git_client.py found in paper text by Syntology ran MIT (permissive) · 8ee109e261cc58d1 · report
AgentClosedError NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 3f2d5d69e41412e5 · report
AgentConfigurationError NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 860522550fdf48c6 · report
AgentExecution NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 5dc134beeab5066c · report
AgentOverloadedError NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · b64630e7eed22ecf · report
AgentRequest NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 9aba9d801bfe046b · report
AgentRuntime NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 3c7fb39a344c8697 · report
AgentRuntimeError NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 0e6dfa778257cc49 · report
AgentTimeoutError NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 20298f5fa25e540b · report
_alias_setters NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 9f8765744e7c17e7 · report
_env_first NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 96c3e35ffbbfbf96 · report
_set_if_truthy NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · f288b8334f3d7f01 · report
_set_search NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · ec84642642a948fd · report
_set_thinking NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · 83ecbec2083039c0 · report
get_project rangehow/overleaf-mcp/src/overleaf_mcp/config.py found in paper text by Syntology unverified MIT (permissive) · 2188b3bb22118d1c · report
principal NiuTrans/ToFu/tofu_agent/runtime.py found in paper text by Syntology unverified MIT (permissive) · ab8cdd7c41d0cfa7 · report
run_verification rangehow/overleaf-mcp/src/overleaf_mcp/verify.py found in paper text by Syntology unverified MIT (permissive) · 51b3ca11204643d0 · report
write_metadata rangehow/overleaf-mcp/src/overleaf_mcp/metadata.py found in paper text by Syntology unverified MIT (permissive) · 92c427aa0cc4bac6 · report

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