In Line with Context: Repository-Level Code Generation via Context Inlining
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
- 2025Qwen3 Technical Reportcited by 8,195
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
33 more
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 87
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
- 2023RepoFusion: Training Code Models to Understand Your Repositorycited by 40
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
- 2023Fully Autonomous Programming with Large Language Modelscited by 31
- 2024Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmerscited by 27
- 2024STALL+: Boosting LLM-based Repository-level Code Completion with Static Analysiscited by 21
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiencycited by 16
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
- 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repositorycited by 14
- 2024Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMscited by 13
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2025RTLRepoCoder: Repository-Level RTL Code Completion through the Combination of Fine-Tuning and Retrieval Augmentationcited by 7
Built on by
Citing papers per year: 2026: 18.
18 papers.
Sort:
By area:
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 40
- 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understandingcited by 13
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 12
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
- 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generationcited by 6
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
- 2026LLM Agents Can See Code Repositoriescited by 3
- 2026ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generationcited by 2
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolutioncited by 2
- 2026Repo0: Design-Driven Zero-to-All Code Generationcited by 2
6 more
- 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidencecited by 1
- 2026ShredBench: Evaluating the Semantic Reasoning Capabilities of Multimodal LLMs in Document Reconstructioncited by 0
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generationcited by 0
- 2026ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generationcited by 0
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translationcited by 0
- 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?cited by 0
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation14 Sep 2026
- 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?21 Aug 2026
- 2026Repo0: Design-Driven Zero-to-All Code Generation20 Aug 2026
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution19 Aug 2026
- 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidence17 Aug 2026
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug 2026
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prune20 Jul 2026
- 2026ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generation9 Jul 2026
- 2026Dockerless: Environment-Free Program Verifier for Coding Agents26 Jun 2026
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun 2026
- 2026LLM Agents Can See Code Repositories12 Jun 2026
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation4 Jun 2026
6 more
- 2026ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generation29 Apr 2026
- 2026ShredBench: Evaluating the Semantic Reasoning Capabilities of Multimodal LLMs in Document Reconstruction26 Apr 2026
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization29 Mar 2026
- 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generation8 Feb 2026
- 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understanding2 Feb 2026
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan 2026
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 40
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 12
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 8
- 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generationcited by 6
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
- 2026LLM Agents Can See Code Repositoriescited by 3
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolutioncited by 2
- 2026Repo0: Design-Driven Zero-to-All Code Generationcited by 2
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generationcited by 0
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation14 Sep 2026
- 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?21 Aug 2026
- 2026Repo0: Design-Driven Zero-to-All Code Generation20 Aug 2026
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution19 Aug 2026
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug 2026
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prune20 Jul 2026
- 2026Dockerless: Environment-Free Program Verifier for Coding Agents26 Jun 2026
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun 2026
- 2026LLM Agents Can See Code Repositories12 Jun 2026
- 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation4 Jun 2026
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization29 Mar 2026
- 2026Test vs Mutant: Adversarial LLM Agents for Robust Unit Test Generation8 Feb 2026
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025RepoScope: Leveraging Call Chain-Aware Multi-View Context for Repository-Level Code Generation
- 2026TICoder: A Repository-Level Code Generation Framework with Test-Driven Planning and Implementation-Aware Reuse ↗
- 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation
- 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation