Teaching Code Agents to Ask Without Leaking Private Code
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Local coding agents can extend their reach by consulting a stronger cloud model. Such consultations, however, often expose the repository's private identifiers, file paths, and source code. Host-side masking hides recognized identifiers but leaves the surrounding code and the agent's phrasing unchanged, while training for less disclosure risks suppressing consultation or producing questions too vague to answer. We propose utility-verified abstraction (UVA), which teaches the agent to describe private entities by their role and type while retaining the technical details an expert needs. From solved repair trajectories, we rewrite each question into this form and keep the rewrite only if it discloses fewer private entities and the repair, replayed from the same execution state with the repair trajectories. Across two benchmarks, the trained agent consults more often than before training. On repository-level issue repair, it solves 37.6% of issues, against 25.3% for the same model working alone, a gain from the training as a whole rather than from consultation alone. Its questions disclose 3.7-fold fewer private entities and 1.4-fold less verbatim code than the untrained agent's questions to the same expert.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 84 of its 94 references that are in the map. Submitted 17 Oct 2026.
Builds on
84 of 94 references.
Closest ancestors · 8
Same direction, newest first
- 2026Scrouting: Cost-Aware Routing of Coding Agents by Scouting the Repository First5 Aug
- 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks30 Jun
- 2026SWE-Prot'eg'e: Learning to Selectively Collaborate With an Expert Unlocks Small Language Models as Software Engineering Agents25 Feb
- 2026Agentic Much? Adoption of Coding Agents on GitHub26 Jan
- 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 76
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2020Extracting Training Data from Large Language Modelscited by 2,267
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 2,083
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,978
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,602
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,418
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 1,047
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 1,000
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 887
38 more
- 2022Quantifying Memorization Across Neural Language Modelscited by 810
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 809
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 724
- 2024A Survey on Large Language Models for Code Generationcited by 695
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 689
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 646
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 634
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 471
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 421
- 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 421
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 397
- 2025ToolRL: Reward is All Tool Learning Needscited by 395
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 389
- 2025Defeating Prompt Injections by Designcited by 384
- 2023Robots That Ask For Help: Uncertainty Alignment for Large Language Model Plannerscited by 345
- 2024AutoCodeRover: Autonomous Program Improvementcited by 303
- 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 262
- 2024Iterative Reasoning Preference Optimizationcited by 261
- 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 254
- 2024Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positivecited by 253
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 251
- 2023Query Rewriting for Retrieval-Augmented Large Language Modelscited by 225
- 2025Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMscited by 211
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 204
- 2023Beyond Memorization: Violating Privacy Via Inference with Large Language Modelscited by 199
- 2024Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Datacited by 193
- 2022Fine-tuned Language Models are Continual Learnerscited by 168
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 157
- 2023AutoMix: Automatically Mixing Language Modelscited by 150
- 2024STaR-GATE: Teaching Language Models to Ask Clarifying Questionscited by 121
- 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 110
- 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agentscited by 105
- 2024A Unified Approach to Routing and Cascading for LLMscited by 101
- 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agentscited by 97
- 2024Modeling Future Conversation Turns to Teach LLMs to Ask Clarifying Questionscited by 91
- 2022Language Models Can Teach Themselves to Program Bettercited by 82
- 2025Router-R1: Teaching LLMs Multi-Round Routing and Aggregation via Reinforcement Learningcited by 79
50 most cited of 76 All 76 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Teaching Agents to Code Reliably
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer
- 2026Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representations
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub
- 2026What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.md
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents
- 2026UserSWE: Evaluating Coding Agents in Multi-Turn Conversations with Dynamic Users
- 2026PRECEPT: Security Self-Improvement of Coding Agents via Evolving Principles