Repository navigation
10 Benchmarks and Evals
Farol is rigorously validated using two automated evaluation systems:
-
Performance Benchmarks (
Farol.Benchmarks): Continuous verification of latency, throughput, and memory consumption on pinned, large-scale open-source .NET solutions in CI. -
Empirical Agent Evals (
Farol.Evals): Headless evaluation testing whether AI coding agents perform tasks with higher accuracy and lower token consumption using Farol compared to standardgrep+build.
AC-35 of Spec 001 sets strict latency and memory targets for Farol. Farol.Benchmarks spawns Farol as an out-of-process server over stdio and drives queries over the protocol, ensuring metrics include JSON-RPC serialization and text rendering.
| Corpus | Version / Commit | Size | Rationale |
|---|---|---|---|
| Umbraco CMS | 18.2.0 |
0.77M lines C#, 32 net10.0 projects |
The largest single-target open-source modern .NET solution that restores from nuget.org with the standard SDK. |
| DNN Platform | 10.3.3 |
0.58M lines C# & VB, 80 projects, .NET Framework 4.8 & WebForms | The gold-standard enterprise legacy codebase combining C#, VB.NET, classic projects, and WebForms markup. |
| Metric | Benchmark Method | Spec Target | Measured in CI (p95, both corpora) |
|---|---|---|---|
| Warm Symbol Queries |
dotnet_find_symbols, dotnet_symbol, dotnet_outline (warm-up run + 5 timed rounds) |
p95 < 100 ms | 43 ms or less |
| Reference Finding |
dotnet_find_references, each symbol of the corpus once (e.g. IPublishedContent with about 1,500 uses) |
p95 < 1 s | 579 ms or less |
| Edit Verification |
dotnet_check after an edit, the way the plugin's hook calls it: bodies, new members, a changed interface signature |
p95 < 2 s | 1.34 s or less |
| Peak Memory | Peak working set of the Farol process | < 3 GB | 1.33 GB or less |
| Check with Analyzers (AC-59, 0.2.0) |
dotnet_check with analyzers=true after the same edits (the first one untimed, since analyzers load once per session) |
p95 < 4 s | 2.05 s (Umbraco), 1.02 s (DNN) |
| Task Created (spec 003, 0.3.0) | A tools/call with task until the task comes back: ten dotnet_workspace status tasks and three dotnet_build tasks, each cancelled after five reads |
p95 < 200 ms | 11 ms (Umbraco), 8 ms (DNN) |
tasks/get (spec 003, 0.3.0) |
Every read of those tasks | p95 < 50 ms | 24 ms (Umbraco), 13 ms (DNN) |
| Start to First Answer (AC-53, 0.2.0) | Five new servers on the indexed workspace, each timed from process start to its first dotnet_find_symbols answer, which must come from the index |
p95 < 2 s | 957 ms (Umbraco), 720 ms (DNN) |
At 0.2.0 (2026-11-30), the Phase 1 measures on Umbraco / DNN were: symbol queries 32 / 25 ms, references 188 / 250 ms, edit check 948 / 529 ms, peak memory 2.04 / 1.52 GB (the persistent index and the analyzers' shared analyses raised memory, still under the target).
First measured at 0.1.0-alpha.1 (release notes). The workflow (.github/workflows/benchmarks.yml) runs on every push to main that touches src/, benchmarks/, Directory.Packages.props or Directory.Build.props (a dependency update, such as Roslyn's, can move the timings), every Monday, and on demand, and fails when a target is missed.
The primary MVP exit criterion required proving that an AI coding agent achieves at least 10 percentage points higher success and consumes at least 20% fewer tokens when equipped with Farol versus standard grep + build.
Farol.Evals provisions isolated, fresh workspaces for every run (using git worktrees or fixture copies) and runs headless Claude Code sessions (claude -p) under two controlled arms:
| Harness Arm | Available Capabilities |
|---|---|
| Baseline (grep + build) | Claude Code's built-in tools (shell, file read/edit/write, search). No MCP servers. |
| Farol | The exact same tools + the Farol plugin (Farol.Mcp server, edit verification hook, modernization skill). |
Both arms run with web tools off and none of the machine's own configuration (user settings, plugins, MCP servers, memory), so the tasks stand on the repository alone.
There are two task sets of 30 tasks each, across the three jobs (maintain legacy, migrate legacy, modern .NET).
-
The first suite (
lm/dm,lg/dg,md/em): tasks on Farol's fixtures, DNN Platform and dotnet/eShop. Its first run (2026-10-05, Claude Sonnet 5.5) did not meet the criterion: grep + build solved 100% of the tasks and Farol 97%, with 8% more tokens. The tasks were too easy to separate the arms. -
The harder set (
lg/lm,xg/xm,xu): selected by calibrating grep + build alone, under a rule recorded in the spec before any run. 4 tasks on the legacy fixture, 16 on DNN Platform and 10 on Umbraco CMS, most of them generated lists of callers or writers with decoys, answered by the compiler oracle (section 5).
A run succeeds when every check of its task passes. Checks are deterministic: patterns in the final reply, the content of files, the files changed since the baseline, and commands (build, tests, a behavioral script) with their exit codes.
Claude Haiku 4.5 on the harder set (report)
Measured across 180 valid runs (3 fresh runs per arm across 30 calibrated tasks):
Success rate:
Baseline (grep + build): 28% (25/90) ██████
Farol: 59% (53/90) █████████████ (+31 percentage points)
Tokens per task:
Baseline (grep + build): 509k
Farol: 346k (-32%)
- Success: Farol outperformed the baseline by +31 percentage points (59% vs 28%), three times the required +10 points.
- Tokens: Farol used 32% fewer tokens per task, beating the 20% reduction target.
- By repository: the gain came from DNN Platform, where Farol succeeded in 83% of runs (40/48) against 27% (13/48) for grep + build. On Umbraco CMS both arms mostly failed (20% vs 10%), and the Farol arm used its tools in only 3 of 30 runs; on the legacy fixture grep + build did better (75% vs 58%).
Phase 2 round: Claude Haiku 5.5 (report)
Spec 002 asked for a round with the new tools against grep + build, not for a margin. Seven tasks where a Phase 2 tool fits (a parameter through every caller, an SDK-style conversion, packages.config to PackageReference, a rename, a type moved, a method extracted, a null guard under the analyzer rules) × 2 arms × 3 runs: 42 runs, all valid.
| Farol | grep + build | |
|---|---|---|
| Success rate | 100% (21/21) | 100% (21/21) |
| Tokens per task | 254k | 317k (−20% for Farol) |
| Minutes per task | 0.7 | 0.9 |
On the fixtures these tasks are within reach of grep + build for this model, so the round measured cost. The migrations saved the most (−39% and −33% tokens). The agent did not call the refactoring tools on its own, even in the tasks made for them; making them the first choice is a candidate for the next phase.
The server without the plugin: Claude Haiku 5.5 (report)
Spec 003 asked for the Farol arm without the plugin next to the plugin round (AC-85). The new arm farol-server runs the same server with no plugin skills and no hook, so an agent finds the skills only as the server's resources and prompts. The round ran the 6 tasks of the refactoring-adoption round, 2 arms, 3 runs each: 36 runs, all valid.
| With the plugin | Server alone | |
|---|---|---|
| Success rate | 100% (18/18) | 100% (18/18) |
| Tokens per task | 284k | 284k |
| Runs using Farol's tools | 13/18 | 11/18 |
| Runs reading a skill | 0/18 | 0/18 |
Without the plugin, these tasks went just as well. No run read a skill in either arm. On these tasks, the tool choice came from the server instructions and the tool descriptions, which both arms see.
Reference answers for the list tasks come from a compiler oracle, not from Farol:
-
Member Deprecation (
oracle.ps1): The target member or overload is programmatically annotated with[Obsolete]. -
Compiler Harvest:
The solution is built, with those warnings kept as warnings. The compiler emits
CS0618(C#) andBC40000(VB.NET) warnings at every exact call site. -
Decoy Generation (
new-list-task.ps1):new-list-task.ps1writes the task from the compiler's expected files plus decoys: files that contain the same text without a use (e.g. a same-named method or overload on another type). A correct answer must not list them. -
Oracle Transparency:
The compiler oracle has one known edge case: it does not emit warnings for obsolete members called inside code that is itself marked
[Obsolete]. The results quantify this blind spot.
Welcome to the official technical documentation for Farol, an open-source Model Context Protocol (MCP) server that equips AI coding agents (Claude Code, GitHub Copilot, Google Antigravity, Cursor, Codex) with compiler-accurate understanding of C# and VB.NET solutions.
- Home — Project overview, value proposition, quickstart, and problem statement
- 01. Architecture & Design Philosophy — Layered architecture, snapshot isolation, BuildHost model, design rationale
- 02. Layer: Farol.Core — Zero-Roslyn foundation: path sandbox, process execution, diffing, atomic writes, privacy
- 03. Layer: Farol.Engine — Workspaces & Loading — MSBuildWorkspaceLoader, analyzer copies, Visual Studio toolchain probing, background warmup, file watcher
- 04. Layer: Farol.Engine — Navigation & Markup — Compiler-accurate navigation, symbol search, IOperation classification, WebForms & XAML indexers, decompilation
- 05. Layer: Farol.Engine — Verification & Testing — Diagnostic checks in about a second, baseline fingerprinting, edits during a load, edit impact analysis, Code Actions, build & test runners
- 06. Layer: Farol.Engine — Legacy Modernization & Packages — Legacy inventory, config inspector, target surface portability, migration planner, NuGet API inspector
- 07. Layer: Farol.Tools & MCP Contract — Comprehensive reference for all 23 MCP tools, 7 prompts, the skill resources and MCP tasks
- 08. Layer: Farol.Host & CLI — Stdio transport, stream isolation, configuration precedence, privacy-first usage telemetry
- 09. Integrations & Plugins — Claude Code plugin (hook & skill), Visual Studio 2026, Copilot, Antigravity, VS Code, NuGet distribution
- 10. Benchmarks & Evals — Performance benchmarks (Umbraco & DNN Platform), evaluation suite and Phase 2 round, compiler oracle
- 11. Phase 2: Refactorings, Analyzers, Loaders & Index — Refactoring write path, analyzers in checks, heuristic and binlog loaders, persistent index, structured output, MCP Registry
- 12. Phase 3: MCP Tasks & Skills — Build, test, load and convert as MCP tasks; the playbook as three skills served by the server; exit results