mlsanityData to 7 Oct 2026

In Line with Context: Repository-Level Code Generation via Context Inlining

arXiv 2601.00376 ↗First posted 1 Jan 2026cs.SE cs.AIcited by 18

Not on the map. Why?

Abstract (arXiv)

Repository-level code generation has attracted growing attention in recent years. Unlike function-level code generation, it requires the model to understand the entire repository, reasoning over complex dependencies across functions, classes, and modules. However, existing approaches such as retrieval-augmented generation (RAG) or context-based function selection often fall short: they primarily rely on surface-level similarity and struggle to capture the rich dependencies that govern repository-level semantics. In this paper, we introduce InlineCoder, a novel framework for repository-level code generation. InlineCoder enhances the understanding of repository context by inlining the unfinished function into its call graph, thereby reframing the challenging repository understanding as an easier function-level coding task. Given a function signature, InlineCoder first generates a draft completion, termed an anchor, which approximates downstream dependencies and enables perplexity-based confidence estimation. This anchor drives a bidirectional inlining process: (i) Upstream Inlining, which embeds the anchor into its callers to capture diverse usage scenarios; and (ii) Downstream Retrieval, which integrates the anchor's callees into the prompt to provide precise dependency context. The enriched context, combining draft completion with upstream and downstream perspectives, equips the LLM with a comprehensive repository view.

Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 45 of its 71 references that are in the map. First posted on arXiv 1 Jan 2026.

Builds on

45 of 71 references.

References · 45

  1. 2025Qwen3 Technical Reportcited by 8,195
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  5. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  6. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  7. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  8. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  9. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  10. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  11. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  12. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
33 more
  1. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  2. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  3. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  4. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  5. 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
  6. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
  7. 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 87
  8. 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  9. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  10. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
  11. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
  12. 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
  13. 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
  14. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
  15. 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
  16. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  17. 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
  18. 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
  19. 2023RepoFusion: Training Code Models to Understand Your Repositorycited by 40
  20. 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
  21. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
  22. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
  23. 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
  24. 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
  25. 2023Fully Autonomous Programming with Large Language Modelscited by 31
  26. 2024Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmerscited by 27
  27. 2024STALL+: Boosting LLM-based Repository-level Code Completion with Static Analysiscited by 21
  28. 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiencycited by 16
  29. 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
  30. 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repositorycited by 14
  31. 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
  32. 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
  33. 2025RTLRepoCoder: Repository-Level RTL Code Completion through the Combination of Fine-Tuning and Retrieval Augmentationcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 18.

18 papers.

Sort:

By area:

  1. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 40
  2. 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understandingcited by 13
  3. 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 12
  4. 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
  5. 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
  6. 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generationcited by 6
  7. 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
  8. 2026LLM Agents Can See Code Repositoriescited by 3
  9. 2026ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generationcited by 2
  10. 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
  11. 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolutioncited by 2
  12. 2026Repo0: Design-Driven Zero-to-All Code Generationcited by 2
6 more
  1. 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidencecited by 1
  2. 2026ShredBench: Evaluating the Semantic Reasoning Capabilities of Multimodal LLMs in Document Reconstructioncited by 0
  3. 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generationcited by 0
  4. 2026ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generationcited by 0
  5. 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translationcited by 0
  6. 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?cited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025RepoScope: Leveraging Call Chain-Aware Multi-View Context for Repository-Level Code Generation
  2. 2026TICoder: A Repository-Level Code Generation Framework with Test-Driven Planning and Implementation-Aware Reuse ↗
  3. 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond
  4. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation
  5. 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗
  6. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
  7. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
  8. 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation