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 ranMethod as code

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):

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.

NiuTrans/ToFu found in paper text by SyntologySyntology: 32 samples, 18 ran (12 instrument-failed) · 14 unverified report
rangehow/overleaf-mcp found in paper text by SyntologySyntology: 12 samples, 9 ran (9 instrument-failed) · 3 unverified 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 (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.

1ran · honoured contract
1ran · violated contract
18ran · our draft was wrong
3ran; the contract check could not run
4ran
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; 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.

NiuTrans/ToFu found in paper text by Syntology 32 samples, 18 ran (12 instrument-failed) · 14 unverified
AgentResult tofu_agent/runtime.py ran · metamorphic tier: deterministic MIT (permissive) · bc7be2202a6bea3a · report fixture: returned AgentResult · level recorded 2026-09-22
ModelRoutingConfig tofu_agent/runtime.py ran · metamorphic tier: deterministic MIT (permissive) · fd61bec9e8451d5c · report fixture: returned ModelRoutingConfig · level recorded 2026-09-22
PrincipalContext tofu_agent/runtime.py ran · metamorphic tier: deterministic MIT (permissive) · ea149cb800075bd0 · report fixture: returned PrincipalContext · level recorded 2026-09-22
_CapacityGate tofu_agent/runtime.py ran MIT (permissive) · f061ce56b14a78ff · report fixture: returned _CapacityGate · level recorded 2026-09-22
_contains_http_control tofu_agent/runtime.py ran · violated contract MIT (permissive) · 6a3548fb558d24f6 · report fixture: signature value:str/0/str · returned bool · level recorded 2026-09-22
_normalized_identifier tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · 713836793b89d00e · report fixture: signature value:str/0/str, field:str/0/str · returned str · level recorded 2026-09-22
_normalized_scopes tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · 3e6b9ec1560add57 · report fixture: signature values:list/1/str · returned frozenset · level recorded 2026-09-22
_public_api_round_evidence tofu_agent/runtime.py ran · our draft was wrong fingerprinted MIT (permissive) · b48e60d60fbb3007 · report fixture: signature value:list/1/dict · returned list · level recorded 2026-09-22
_public_usage_evidence tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · c0c85b7b37ea9bb6 · report fixture: signature value:dict/0/? · returned dict · level recorded 2026-09-22
apply_storage_free_runtime_policy tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · ce6607004e26f067 · report fixture: signature config:dict/0/? · returned dict · level recorded 2026-09-22
build_agent_config tofu_agent/runtime.py ran; the contract check could not run (DEP_MISSING) · metamorphic tier: deterministic MIT (permissive) · 8d34624e924f456a · report fixture: signature model_id:str/0/str, raw_config:dict/0/?, capabilities_legacy:NoneType/0/? · returned dict · level recorded 2026-09-22
get_logger in 383 papers tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · 8a145e8f9fededf5 · report fixture: signature name:str/0/str · returned Logger · level recorded 2026-09-22
project_agent_event_evidence tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · 899c89697c470e7b · report fixture: signature event:dict/0/? · returned dict · level recorded 2026-09-22
project_agent_evidence tofu_agent/runtime.py ran; the contract check could not run (DEP_MISSING) MIT (permissive) · 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
project_agent_result tofu_agent/runtime.py ran; the contract check could not run (DEP_MISSING) · metamorphic tier: deterministic MIT (permissive) · 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
require_user_id tofu_agent/runtime.py ran · honoured contract MIT (permissive) · d473f99d92ef7f33 · report fixture: signature value:int/0/int, context:str/0/str · returned int · level recorded 2026-09-22
short_id tofu_agent/runtime.py ran · our draft was wrong fingerprinted MIT (permissive) · 350201717d02549e · report fixture: signature prefix:str/0/str, n:int/0/int · returned str · level recorded 2026-09-22
terminal_finish_reason tofu_agent/runtime.py ran · our draft was wrong MIT (permissive) · bb288e582e73d822 · report fixture: signature task:dict/0/? · returned str · level recorded 2026-09-22
AgentClosedError tofu_agent/runtime.py unverified MIT (permissive) · 3f2d5d69e41412e5 · report
AgentConfigurationError tofu_agent/runtime.py unverified MIT (permissive) · 860522550fdf48c6 · report
AgentExecution tofu_agent/runtime.py unverified MIT (permissive) · 5dc134beeab5066c · report
AgentOverloadedError tofu_agent/runtime.py unverified MIT (permissive) · b64630e7eed22ecf · report
AgentRequest tofu_agent/runtime.py unverified MIT (permissive) · 9aba9d801bfe046b · report
AgentRuntime tofu_agent/runtime.py unverified MIT (permissive) · 3c7fb39a344c8697 · report
AgentRuntimeError tofu_agent/runtime.py unverified MIT (permissive) · 0e6dfa778257cc49 · report
AgentTimeoutError tofu_agent/runtime.py unverified MIT (permissive) · 20298f5fa25e540b · report
_alias_setters tofu_agent/runtime.py unverified MIT (permissive) · 9f8765744e7c17e7 · report
_env_first tofu_agent/runtime.py unverified MIT (permissive) · 96c3e35ffbbfbf96 · report
_set_if_truthy tofu_agent/runtime.py unverified MIT (permissive) · f288b8334f3d7f01 · report
_set_search tofu_agent/runtime.py unverified MIT (permissive) · ec84642642a948fd · report
_set_thinking tofu_agent/runtime.py unverified MIT (permissive) · 83ecbec2083039c0 · report
principal tofu_agent/runtime.py unverified MIT (permissive) · ab8cdd7c41d0cfa7 · report
rangehow/overleaf-mcp found in paper text by Syntology 12 samples, 9 ran (9 instrument-failed) · 3 unverified
collect_bibtex src/overleaf_mcp/verify.py ran · our draft was wrong MIT (permissive) · 82642b355243aaed · report fixture: signature read_fn:callable/0/?, bib_paths:list/1/str · returned tuple · level recorded 2026-09-24
format_report src/overleaf_mcp/verify.py ran · our draft was wrong MIT (permissive) · d94eaf375f12ece9 · report fixture: signature result:dict/0/?, bib_paths:list/1/str · returned str · level recorded 2026-09-24
get_section_content src/overleaf_mcp/latex.py ran · our draft was wrong fingerprinted MIT (permissive) · 950c6b318c00d721 · report fixture: signature content:str/0/str, title:str/0/str · returned str · level recorded 2026-09-24
parse_sections src/overleaf_mcp/latex.py ran · our draft was wrong fingerprinted MIT (permissive) · 75b3e97ce3adb04f · report fixture: signature content:str/0/str · returned list · level recorded 2026-09-24
parse_synctex src/overleaf_mcp/layout.py ran · our draft was wrong fingerprinted MIT (permissive) · 93b53ddab8b3ff07 · report fixture: signature raw:str/0/str · returned dict · level recorded 2026-09-24
project_url src/overleaf_mcp/config.py ran · our draft was wrong fingerprinted MIT (permissive) · ff773fc5d655997a · report fixture: signature project_id:str/0/str · returned str · level recorded 2026-09-24
read_metadata in 8 papers src/overleaf_mcp/metadata.py ran · our draft was wrong fingerprinted MIT (permissive) · 7bb60ddee022c4f9 · report fixture: signature root:str/0/str · returned dict · level recorded 2026-09-24
update_section src/overleaf_mcp/latex.py ran · our draft was wrong fingerprinted MIT (permissive) · 68e5f690dedc1239 · report fixture: signature content:str/0/str, title:str/0/str, new_body:str/0/str · returned str · level recorded 2026-09-24
validate_path src/overleaf_mcp/git_client.py ran · our draft was wrong MIT (permissive) · 8ee109e261cc58d1 · report fixture: signature base:PosixPath/0/?, target:str/0/str · returned PosixPath · level recorded 2026-09-24
get_project src/overleaf_mcp/config.py unverified MIT (permissive) · 2188b3bb22118d1c · report
run_verification src/overleaf_mcp/verify.py unverified MIT (permissive) · 51b3ca11204643d0 · report
write_metadata src/overleaf_mcp/metadata.py unverified MIT (permissive) · 92c427aa0cc4bac6 · report

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.

  1. AgentRuntime entry · level 0 · unverified · 3c7fb39a344c8697
  2. AgentClosedError helper · level 0 · unverified · 3f2d5d69e41412e5
  3. AgentConfigurationError helper · level 0 · unverified · 860522550fdf48c6
  4. AgentExecution helper · level 0 · unverified · 5dc134beeab5066c
  5. AgentOverloadedError helper · level 0 · unverified · b64630e7eed22ecf
  6. AgentRequest helper · level 0 · unverified · 9aba9d801bfe046b
  7. AgentResult helper · level 1 · ran · bc7be2202a6bea3a
  8. ModelRoutingConfig helper · level 1 · ran · fd61bec9e8451d5c
  9. PrincipalContext helper · level 1 · ran · ea149cb800075bd0
  10. _CapacityGate helper · level 1 · ran · f061ce56b14a78ff
  11. apply_storage_free_runtime_policy helper · level 1 · ran · our draft was wrong · ce6607004e26f067
  12. build_agent_config helper · level 1 · ran; the contract check could not run (DEP_MISSING) · 8d34624e924f456a
  13. principal helper · level 0 · unverified · ab8cdd7c41d0cfa7
  14. AgentRuntimeError helper · level 0 · unverified · 0e6dfa778257cc49
  15. AgentTimeoutError helper · level 0 · unverified · 20298f5fa25e540b
  16. project_agent_event_evidence helper · level 1 · ran · our draft was wrong · 899c89697c470e7b
  17. project_agent_evidence helper · level 1 · ran; the contract check could not run (DEP_MISSING) · 555d24e2d55498e2
  18. project_agent_result helper · level 1 · ran; the contract check could not run (DEP_MISSING) · affea727c763cd31
  19. _contains_http_control helper · level 1 · ran · violated contract · 6a3548fb558d24f6
  20. _env_first helper · level 0 · unverified · 96c3e35ffbbfbf96
  21. _normalized_identifier helper · level 1 · ran · our draft was wrong · 713836793b89d00e
  22. _normalized_scopes helper · level 1 · ran · our draft was wrong · 3e6b9ec1560add57
  23. require_user_id helper · level 1 · ran · honoured contract · d473f99d92ef7f33
  24. _alias_setters helper · level 0 · unverified · 9f8765744e7c17e7
  25. _public_api_round_evidence helper · level 1 · ran · our draft was wrong · b48e60d60fbb3007
  26. _public_usage_evidence helper · level 1 · ran · our draft was wrong · c0c85b7b37ea9bb6
  27. short_id helper · level 1 · ran · our draft was wrong · 350201717d02549e
  28. terminal_finish_reason helper · level 1 · ran · our draft was wrong · bb288e582e73d822
  29. _set_if_truthy helper · level 0 · unverified · f288b8334f3d7f01
  30. _set_search helper · level 0 · unverified · ec84642642a948fd
  31. _set_thinking helper · level 0 · unverified · 83ecbec2083039c0
  32. 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