cs.CLOct 13, 2026

Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve

Authors: Yuyang Bai, Yu Wang, Yu Zhang

Organizations: Texas A&M University · University of Georgia

Abstract

Searching text-rich knowledge graphs requires following relations while examining textual evidence. Predefined graph interfaces constrain what evidence agents can access, even when they write code to combine tool calls or process retrieved subgraphs. We propose direct knowledge graph interaction (DKGI), a harness in which language model agents create graph access tools directly over complete node and edge files. The agent writes Python code to follow relations, combine node sets, and select textual evidence, interleaving execution with shell search and file inspection. This lets agents process large node sets in bulk while returning selected text for the model to assess. Execution feedback guides tool creation and revision, while the evolving tools determine what evidence the agent gathers next. On benchmark datasets spanning three domains, training-free DKGI exceeds the strongest published baseline by at least 6.7 Hit@1 points on every graph, even with a minimal harness. Controlled ablations show the benefits of multi-turn programming over shell-only access and predefined graph tools, while trajectories show agents revising code to extend searches or address errors. These findings highlight the value of allowing tool creation and tool use to co-evolve during graph search. Our code and data are available at https://github.com/leopoldwhite/DKGI.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Schema-Agnostic Graph Reasoning Agent for Hybrid Knowledge Graphs

    Aug 16, 2026Marius Dragic, Ruben Ifrah, Alexandre RioLLM Reasoning with GraphsTool-Using Agents

  2. GraphScout: Empowering Large Language Models with Intrinsic Exploration Ability for Agentic Graph Reasoning

    Mar 2, 2026Yuchen Ying, Weiqi Jiang, Tongya Zheng +4LLM Reasoning with GraphsAgentic RAG

  3. Wikidata Search Traces: A Dataset for Training Knowledge Graph Search Agents

    Oct 5, 2026Mohamed Chenene, Carlos Rosas-Hinostroza, Anastasia Stasenko +2Multi-Hop QAKnowledge Graph Question Answering