Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution

arXiv:2608.189332026-08-18

An AI coding agent invents its own practice bugs before facing real ones, so it learns a project's quirks in advance

SkillForge lets an LLM-based software-repair agent proactively learn a specific repository's conventions by rewriting test-covered code to create realistic synthetic bugs, then solving them and distilling the experience into reusable 'skills.' Earlier approaches either needed a rich history of previously solved real issues or had to spend heavy computation exploring each new issue at the time it arrives. On SWE-bench Verified and SWE-bench Pro, SkillForge consistently beat prior history-based and online exploration baselines.

METAL MEDIA explanatory visual

An AI coding agent invents its own practice bugs before facing real ones, so it learns a project's quirks in advance

  1. 01It finds code regions actually exercised by the repository's own passing tests, has an LLM re-implement that functionality without seeing the original code (so it naturally makes plausible mistakes), and turns the resulting test failures into synthetic issues
  2. 02A SWE agent solves these synthetic issues, and both successful and failed attempts are mined into two kinds of knowledge: global 'diagnostic skills' (how to reason about and navigate a given code entity) and local 'intervention skills' (how to actually fix it and pitfalls to avoid), each tied to specific code entities
  3. 03When a real issue arrives, relevant global skills are retrieved upfront based on the issue description (using BM25 search), while local skills are injected on the fly the moment the agent touches the matching file or function
  4. 04Built on Mini-SWE-Agent and tested with DeepSeek-V3.2 and GPT-5-mini, SkillForge improved Pass@1 by +5.8 and +5.6 percentage points on SWE-bench Verified, and +5.8 and +4.1 points on SWE-bench Pro, outperforming all evaluated history-driven and online baselines
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. It finds code regions actually exercised by the repository's own passing tests, has an LLM re-implement that functionality without seeing the original code (so it naturally makes plausible mistakes), and turns the resulting test failures into synthetic issues
  2. A SWE agent solves these synthetic issues, and both successful and failed attempts are mined into two kinds of knowledge: global 'diagnostic skills' (how to reason about and navigate a given code entity) and local 'intervention skills' (how to actually fix it and pitfalls to avoid), each tied to specific code entities
  3. When a real issue arrives, relevant global skills are retrieved upfront based on the issue description (using BM25 search), while local skills are injected on the fly the moment the agent touches the matching file or function
  4. Built on Mini-SWE-Agent and tested with DeepSeek-V3.2 and GPT-5-mini, SkillForge improved Pass@1 by +5.8 and +5.6 percentage points on SWE-bench Verified, and +5.8 and +4.1 points on SWE-bench Pro, outperforming all evaluated history-driven and online baselines
Fig. 1: Overview of SkillForge.
Fig. 1: Overview of SkillForge.
TABLE I: Main results on SWE-bench Verified.
MethodModelPass@1Avg Cost
Mini-SWE-AgentDeepSeek-V3.266.4%$0.049
GPT-5-mini55.0%$0.031
History-driven project-specific knowledge acquisition
SWE-ExpDeepSeek-V3.269.0%†↑2.6%$0.090
GPT-5-mini56.6%†↑1.6%$0.065
EvoCoderDeepSeek-V3.267.0% ↑0.6%$0.064
GPT-5-mini58.4% ↑3.4%$0.052
MemGovernDeepSeek-V3.269.2%†↑2.8%
GPT-5-mini58.0%†↑3.0%
Online project-specific knowledge acquisition
SAGEDeepSeek-V3.267.2% ↑0.8%$0.081
GPT-5-mini56.0%†↑1.0%$0.052
SWE-DebateDeepSeek-V3.268.2% ↑1.8%$0.382
GPT-5-mini56.4% ↑1.4%$0.167
Live-SWE-agentDeepSeek-V3.267.0% ↑0.6%$0.050
GPT-5-mini55.6% ↑0.6%$0.042
Variants of SkillForge
SkillForge w/ SWE-SmithDeepSeek-V3.268.0% ↑1.6%$0.088
GPT-5-mini56.4%†↑1.4%$0.071
SkillForge w/ LLM SummaryDeepSeek-V3.268.7%†↑2.3%$0.069
GPT-5-mini54.4% ↓0.6%$0.065
SkillForgeDeepSeek-V3.272.2%†↑5.8%$0.074
GPT-5-mini60.6%†↑5.6%$0.066
†: p−v​a​l​u​e<0.05.
Fig. 2: Synthesize project-specific issues.
Fig. 2: Synthesize project-specific issues.
TABLE II: Main results on SWE-bench Pro.
DeepSeek-V3.2GPT-5-mini
MethodPass@1Avg CostPass@1Avg Cost
Mini-SWE-Agent28.3%$0.04747.6%$0.063
SWE-Exp29.4% ↑1.1%$0.08348.7% ↑0.9%$0.089
Live-SWE-agent32.4% ↑4.1%$0.05149.1%†↑1.5%$0.072
SkillForge34.1%†↑5.8%$0.06951.7%†↑4.1%$0.087
†: p−v​a​l​u​e<0.05.
Fig. 3: Skill distillation.
Fig. 3: Skill distillation.
TABLE III: Ablation study results.
ApproachDeepSeek-V3.2GPT-5-mini
w/o Global Diagnostic Skills68.4% (↓3.8%)57.6% (↓3.0%)
w/o Local Intervention Skills67.8% (↓4.4%)57.2% (↓3.4%)
SkillForge72.2%60.6%
Fig. 4: Hyperparameter study results on the Sphinx and Django repositories with GPT-5-mini. (a) BM25 skill retrieval count. (b) Code segment rewritten count during issue synthesis. Red stars mark the best-performing k in each setting.
Fig. 4: Hyperparameter study results on the Sphinx and Django repositories with GPT-5-mini. (a) BM25 skill retrieval count. (b) Code segment rewritten count during issue synthesis. Red stars mark the best-performing k in each setting.
TABLE IV: Cross-LLM skill transfer on SWE-bench Verified. Resolver LLM denotes the backbone used for real issue resolution, while Knowledge-source LLM denotes the backbone used to synthesize instances and distill skills.
Resolver LLMKnowledge-source LLMPass@1
GPT-5-miniGPT-5-mini60.6%
DeepSeek-V3.255.0%
DeepSeek-V3.2GPT-5-mini65.2%
DeepSeek-V3.272.2%
Fig. 5: Pass@1 performance comparison between Baseline and our method across seven repositories.
Fig. 5: Pass@1 performance comparison between Baseline and our method across seven repositories.

Why it matters

When deploying coding agents on a real, specific codebase, the biggest obstacle is that the agent doesn't know the project's own conventions and traps yet -- this method offers a practical way to pre-train that knowledge even for projects with little or no historical issue data, without ballooning per-issue cost. It's directly relevant for teams building or deploying automated bug-fixing agents on their own repositories.

Fig. 6: Case study for django-11206 with and without project-specifc knowledge (represented as skills).
Fig. 6: Case study for django-11206 with and without project-specifc knowledge (represented as skills).

Terms in this paper

  • Pass@1 · the percentage of issues correctly resolved on the very first attempt
  • SWE-bench · a benchmark that evaluates AI coding agents on real GitHub issues
  • BM25 · a classic text-retrieval algorithm that ranks documents by keyword overlap with a query
  • entity-grounded · knowledge is tied directly to specific files, functions, or classes in the actual codebase rather than stored generically
  • self-distillation · the process of extracting reusable knowledge from an agent's own generated experience rather than external data

Original abstract (English)

Large language model (LLM) based agents have demonstrated remarkable proficiency in automated software issue resolution, yet they often struggle to resolve issues in a specific repository because they lack project-specific knowledge. Existing self-evolving approaches acquire such knowledge from repository history or online repair trajectories, but they either depend on available historical issue-resolution signals or incur substantial per-issue test-time exploration cost. In this paper, we propose SkillForge, a self-distillation framework that proactively acquires project-specific knowledge from the repository itself. Instead of waiting for real issues to expose project-specific knowledge gaps, SkillForge synthesizes project-specific issues by re-implementing test-covered core functionalities of the repository. By resolving these synthetic issues, SkillForge distills reusable project-specific knowledge into entity-grounded skills and associates them with relevant repository entities for future issue resolution. Extensive experiments using both open-source and closed-source models show that SkillForge consistently improves issue resolution performance over strong baselines. These results demonstrate that proactively acquiring project-specific knowledge before solving real issues substantially improves downstream software issue resolution.

Authors · Silin Chen

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Silin Chen et al., arXiv:2608.18933, CC BY 4.0