Fine-tune a local LLM to reason over codebase dependency graphs
A developer fine-tuned Qwen3.6-35B on depwire graph facts for $0.68 and hit 95.4% oracle-verified answers.
- Used for
- Work
- Skill needed
- Requires coding
- Shown in video
- Partial demo
- Summary based on
- Transcript
I Built a Real "Reasoning" Layer for AI Coding Agents
Published Aug 9, 20266:471,428,653 views59 likes
What they made
125 of 131 held-out cases passed deterministic graph verification (95.4%), with zero critical hallucinations and zero phantom files; all 6 failures were formatting errors.
95.4% pass rate (125/131)
3:58How they did it
- AI1:32
depwire-cli computes real graph facts for a repo: affected files, depths, test coverage, security findings, dead code.
Stated in video · depwire-cli - AI1:48
Facts are packed into a structured prompt; the model never sees raw source, only the graph.
Stated in video · depwire-cli - AI2:03
The fine-tuned model infers which files to touch first, the risk, and a safe change sequence.
Stated in video · depwire-slm - AI2:03
oracle_eval.py checks every factual claim against the same depwire output; any file not in the graph is an automatic fail.
Stated in video · oracle_eval.py - AI3:08
DeepSeek teacher generates structured inferences over graph facts for 1,532 public repos; oracle filters bad examples, leaving 5,234 training pairs.
Stated in video · DeepSeek - Human2:36
Fine-tuned Qwen3.6-35B with LoRA rank 8 on an M1 Ultra, 90 minutes, $0.68 total, no cloud GPU.
Stated in video
What you can reuse
- Feed the model computed facts instead of raw source so hallucination of graph facts becomes structurally impossible.
- Use a deterministic tool as the judge rather than another LLM or keyword matching.
- Filter teacher-generated training pairs through the same oracle before training.
Trade-offs
- All 6 failures were formatting errors (capital H severity, confidence rule, truncated output), not reasoning failures.
- The creator calls it a research tool; MCP integration is still planned, not shipped.
- Only 131 held-out cases across 43 groups; small evaluation set.
- Requires depwire-cli (BUSL 1.1) as ground truth.
AI-generated case summaries can contain mistakes. Report an error



