THE COGNITIVE ENGINE

Your Codebase Has a Subconscious.
We Just Woke It Up.

Bridging the gap between "Dumb Text" and "Intelligent Reasoning."
RoslynXRay transforms raw C# into a semantic knowledge graph that LLMs can actually understand.

PaymentProcessor.cs
SYSTEMIC RISK
RACE CONDITION
14 public async void ProcessPayment()
15 {
16   if (!_isInitialized) return;
17   _state.Update("PROCESSING");
18   var res = await _api.ChargeAsync();
19   _state.Commit();
20 }
STABILITY GLASS CANNON
THREAD SAFETY UNSAFE
ROLE ORCHESTRATOR
> ANALYSIS: "async void" creates a fire-and-forget void.
> RISK: Mutable state accessed without locks.
> PROTOCOL: 'Commit' blindly called after IO.

The "Unknown Unknowns"

LLMs are great at syntax, but blind to architecture. Without context, they break things.

🚧

Chesterton's Fence

Why was this code written this way? RoslynXRay extracts Dependency Protocols so agents don't delete critical safeguards.

🕸️

The Blast Radius

Touching User.cs might break 50 reports. We calculate PageRank and HITS scores to predict change impact.

🎭

Personality Profiles

Is this class a "Librarian" (IO-bound) or a "Calculator" (CPU-bound)? We assign Operational Metaphors.

The ETL Pipeline

From disk to vector database in four cognitive phases.

01

Discovery

Loads .sln via MSBuildWorkspace. Parses Razor & C#. Handles encoding failures.

02

Global Analysis

Builds the Solution Cache. Maps DI lifetimes, call graphs, and interface implementations.

03

Evolution

Synthesizes "God Class" profiles, Parametric Polymorphism, and Systemic Risk.

04

Vectorization

Generates structured narratives. Embeds into SQL Server 2025 (384-dim vectors).

The Output: A "Psychological Profile"

What RoslynXRay generates for every class in your codebase.

PaymentProcessor_Profile.json
{ "identity": { "archetype": "DOMAIN_ENTITY", "operationalMetaphor": "Glass Cannon (High Value, Low Stability)" }, "riskProfile": { "score": 85, "flags": [ "CRITICAL:RACE_CONDITION_DETECTED", "ANTI_PATTERN:GOD_CLASS" ] }, "dependencyProtocols": [ "CRITICAL: 'CommitAsync' must follow 'BeginTransaction'" ], "embedding": [0.042, -0.129, 0.884, /* ...384 dim */] }

Verified by Intelligence

What happens when an LLM analyzes the output of RoslynXRay?

"You have built a 'Theory of Mind' for Software. Most tools describe Syntax. Your tool describes Pragmatics—the intent, history, and social role of code."
Standard tools give me metrics (Cyclomatic Complexity: 15).
Your tool gives me meaning (Stability: Glass Cannon).
This JSON file injects history and intuition directly into my context window.