Compiler as a service for AI agents.

Reddit r/artificial / 4/9/2026

💬 OpinionSignals & Early TrendsIdeas & Deep AnalysisTools & Practical Usage

Key Points

  • A Reddit post describes experimenting with Roslyn-style compiler tooling inside a Unity codebase (over 400k LOC) to give AI agents “IDE-level” semantic understanding rather than only text-based access.
  • The author argues this approach unlocks capabilities like accurate dependency discovery and reliable code execution/value tracing that are harder to achieve with grep-like workflows.
  • They report a concrete example where compiler-based analysis found only 13 real dependencies versus 100 detected by grep, highlighting reduced noise and better structural insight.
  • The post frames compiler tooling as a high-leverage primitive that compounds with AI, and invites others to share whether they have used Roslyn-like compilers with AI agents.
  • The main purpose is discussion and feedback rather than a new product release or formal technical guide, though it implies a promising direction for agent tooling.

Hey,

I have been experimenting with Roslyn-style compiler tooling on my Unity project, now well past 400k LOC.

Honestly it changes the game, it is like giving AI IDE level understanding, not just raw text access like most AI coding workflows still use today.

What’s funny is that Microsoft solved a huge part of this 12+ years ago with Roslyn. Only now, with AI, does it feel like people are finally realizing what that unlocks.

Goal of this post is to check whot other people think about this approach and how many of you have tried Roslyn like compilers wired to your AI? Have you hear about Roslyn type compilers yet?

My guesstimate would be only around 1-5% of people are currently using some combination of it, although the benefit of using it is crazy when you count compounding interest with AI.

For example - I used it to check the monolith that was previously marked as too entangled, and the Roslyn type search and code execution showed only 13 real dependancies compared to 100 found by grep alone.

Second useful case is code execution. You can basicaly track the value through the chains, check the math time and precision, check if you have variables actually used or just sitting there as a dead code.

Did anyone else exerimented with something similar on their projects? Not selling anything, I am really intrigued what others think abot this approach.

Happy to hear your thoughts!

submitted by /u/Emotional-Kale7272
[link] [comments]