CLR Intelligence & Runtime Forensic Bridge for AI Coding Agents
Eliminate runtime blindness. Equip Cursor, Claude Code, and Windsurf with low-level CLR diagnostics, cross-platform memory crash dump root-cause analysis, and surgical CIL bytecode decompilation.
Architectural Pillars
Deterministic CLR runtime diagnostics exposed directly to LLM semantic reasoning
Memory Crash Dump Forensics
Powered by Microsoft ClrMD. Automatically inspects Windows and Linux crash dumps, analyzes managed heap fragmentation, and constructs thread synchronization Wait-For Graphs.
High-Fidelity CIL Decompilation
Embedded ILSpy decompiler engine transforms raw CIL opcode streams into modern, idiomatic C# source code, complete with async state machine and compiler attribute reconstruction.
Bytecode Mutation & Sandbox
Mono.Cecil metadata inspection, surgical opcode patching, and dynamic reflection safely encapsulated within collectible AssemblyLoadContext sandboxes.
10 MCP Tools Catalog
Standardized Model Context Protocol tool endpoints available via JSON-RPC 2.0 Stdio
Automatic Root Cause Analysis (RCA) on Windows and Linux crash dumps. Extracts thread callstacks and exception objects.
Deep managed heap analysis, GC generation allocations, ephemeral/LOH/POH pinned handle telemetry, and Compaction Resistance Risk Scoring.
Traces thread Monitor locks and SyncBlock synchronization caches to detect deadlock cycles.
High-fidelity decompilation of CIL bytecode into idiomatic modern C# using the embedded ILSpy engine.
Semantic ECMA-335 assembly comparison, overload & generic signature tracking, and unified LCS CIL instruction diffing.
Control Flow Graph (CFG) switch flattening detection, multi-pattern decryptor classification, and branch/EH-safe redundant NOP trimming.
ECMA-335 metadata hierarchy inspector, decoding TypeDef, MethodDef, FieldDef, custom attributes, and P/Invoke imports.
Dynamic reflection inside an isolated, collectible AssemblyLoadContext without file locking or process pollution.
Surgical CIL instruction patching, opcode replacement, branch offset adjustments, and re-emitting patched assemblies.
Synthesizes zero-overhead C# wrappers accessing private members and fields using .NET 8+ [UnsafeAccessor].
Agent Setup Guide
Integrate Sharphy with Cursor, Claude Code, Windsurf, or Claude Desktop in seconds
Add the following JSON-RPC configuration to your agent config file:
{
"mcpServers": {
"sharphy": {
"command": "sharphy",
"args": ["mcp", "start"]
}
}
}Multi-Targeting .NET & Automated GitHub Actions
Sharphy delivers native multi-targeting across .NET 8.0 (LTS), .NET 9.0 (STS), and .NET 10.0 (Latest). Build checks, unit test suites, NuGet packaging, and web docs deployments are orchestrated through the Release Orchestrator workflow.