mlsanityData to 24 Nov 2026

Teaching Code Agents to Ask Without Leaking Private Code

arXiv 2610.24824 ↗Submitted 17 Oct 2026cs.AI cs.SEcited by 0

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

  1. 2026Scrouting: Cost-Aware Routing of Coding Agents by Scouting the Repository First5 Aug
  2. 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks30 Jun
  3. 2026SWE-Prot'eg'e: Learning to Selectively Collaborate With an Expert Unlocks Small Language Models as Software Engineering Agents25 Feb
  4. 2026Agentic Much? Adoption of Coding Agents on GitHub26 Jan
  5. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
  6. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
  7. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  8. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 76

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
  4. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
  5. 2020Extracting Training Data from Large Language Modelscited by 2,267
  6. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 2,083
  7. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,978
  8. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,602
  9. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,418
  10. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 1,047
  11. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 1,000
  12. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 887
38 more
  1. 2022Quantifying Memorization Across Neural Language Modelscited by 810
  2. 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 809
  3. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
  4. 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 724
  5. 2024A Survey on Large Language Models for Code Generationcited by 695
  6. 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 689
  7. 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 646
  8. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 634
  9. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 471
  10. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 421
  11. 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 421
  12. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 397
  13. 2025ToolRL: Reward is All Tool Learning Needscited by 395
  14. 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 389
  15. 2025Defeating Prompt Injections by Designcited by 384
  16. 2023Robots That Ask For Help: Uncertainty Alignment for Large Language Model Plannerscited by 345
  17. 2024AutoCodeRover: Autonomous Program Improvementcited by 303
  18. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 262
  19. 2024Iterative Reasoning Preference Optimizationcited by 261
  20. 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 254
  21. 2024Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positivecited by 253
  22. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 251
  23. 2023Query Rewriting for Retrieval-Augmented Large Language Modelscited by 225
  24. 2025Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMscited by 211
  25. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 204
  26. 2023Beyond Memorization: Violating Privacy Via Inference with Large Language Modelscited by 199
  27. 2024Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Datacited by 193
  28. 2022Fine-tuned Language Models are Continual Learnerscited by 168
  29. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 157
  30. 2023AutoMix: Automatically Mixing Language Modelscited by 150
  31. 2024STaR-GATE: Teaching Language Models to Ask Clarifying Questionscited by 121
  32. 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 110
  33. 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agentscited by 105
  34. 2024A Unified Approach to Routing and Cascading for LLMscited by 101
  35. 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agentscited by 97
  36. 2024Modeling Future Conversation Turns to Teach LLMs to Ask Clarifying Questionscited by 91
  37. 2022Language Models Can Teach Themselves to Program Bettercited by 82
  38. 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

  1. 2026Teaching Agents to Code Reliably
  2. 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer
  3. 2026Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representations
  4. 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub
  5. 2026What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.md
  6. 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents
  7. 2026UserSWE: Evaluating Coding Agents in Multi-Turn Conversations with Dynamic Users
  8. 2026PRECEPT: Security Self-Improvement of Coding Agents via Evolving Principles