mlsanityData to 14 Oct 2026

DomAgent: Leveraging Knowledge Graphs and Case-Based Reasoning for Domain-Specific Code Generation

arXiv 2603.21430 ↗First posted 22 Mar 2026cs.AI cs.SEcited by 1

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Large language models (LLMs) have shown impressive capabilities in code generation. However, because most LLMs are trained on public domain corpora, directly applying them to real-world software development often yields low success rates, as these scenarios frequently require domain-specific knowledge. In particular, domain-specific tasks usually demand highly specialized solutions, which are often underrepresented or entirely absent in the training data of generic LLMs. To address this challenge, we propose DomAgent, an autonomous coding agent that bridges this gap by enabling LLMs to generate domain-adapted code through structured reasoning and targeted retrieval. A core component of DomAgent is DomRetriever, a novel retrieval module that emulates how humans learn domain-specific knowledge, by combining conceptual understanding with experiential examples. It dynamically integrates top-down knowledge-graph reasoning with bottom-up case-based reasoning, enabling iterative retrieval and synthesis of structured knowledge and representative cases to ensure contextual relevance and broad task coverage. DomRetriever can operate as part of DomAgent or independently with any LLM for flexible domain adaptation. We evaluate DomAgent on an open benchmark dataset in the data science domain (DS-1000) and further apply it to real-world truck software development tasks. Experimental results show that DomAgent significantly enhances domain-specific code generation, enabling small open-source models to close much of the performance gap with large proprietary LLMs in complex, real-world applications. The code is available at: https://github.com/Wangshuaiia/DomAgent.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 13 of its 46 references that are in the map. First posted on arXiv 22 Mar 2026.

Builds on

13 of 46 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Review of Case-Based Reasoning for LLM Agents: Theoretical Foundations, Architectural Components, and Cognitive Integration9 Apr
  2. 2024Qwen2.5-Coder Technical Report18 Sep

Other references · 11

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2023Mistral 7Bcited by 3,164
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  6. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
  7. 2023TaskWeaver: A Code-First Agent Frameworkcited by 86
  8. 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Treecited by 17
  9. 2023Beyond discounted returns: Robust Markov decision processes with average and Blackwell optimalitycited by 13
  10. 2025Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliancecited by 7
  11. 2024Can vehicular cloud replace edge computing?cited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

  1. 2026Code as Agent Harnesscited by 47

Similar, not cited

Close in wording, no citation either way

  1. 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generation
  2. 2026PRAXIS: Graph-Grounded Tacit Knowledge for Domain Code Generation
  3. 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation
  4. 2026Structure-Grounded Knowledge Retrieval via Code Dependencies for Multi-Step Data Reasoning
  5. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
  6. 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving
  7. 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Code
  8. 2026No Test Cases, No Problem: Distillation-Driven Code Generation for Scientific Workflows