The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Fuse listing page.
Near-instant compiler feedback for AI coding agents on .NET.
Fuse keeps your solution compiled in memory with Roslyn and plugs it into coding agents through hooks. After every edit, the agent learns which compiler errors that edit introduced, including breaks in projects that depend on it, up to 6.8x faster than dotnet build. When the agent runs dotnet test, only the tests the change can reach run, and only failures are printed.
That is the setup. The hooks run on their own, so the agent needs no instructions and no tool to remember. Website: fuse.codes.
After an edit that renames Calc.Add to Calc.Plus in a library, the post-edit hook wakes the agent with:
An edit that introduces no error produces no output. Errors that exist at the last commit are never reported.
When the agent runs dotnet test, the command runs as fuse test:
When the agent tries to finish while its changes leave errors that are not at the last commit, the stop hook sends it back once with the list.
| Command | What it does |
|---|---|
fuse init | Registers the hooks with every agent harness the repository uses |
fuse check [files...] | Errors the working tree has that HEAD does not, in the changed files and everything that depends on them |
fuse test | Runs the tests affected by the working-tree changes and prints failures |
fuse test [dotnet test args] | Runs the scope dotnet test would run with those arguments, printing failures |
fuse test --all | Runs every test, printing failures |
fuse build [dotnet build args] | The real dotnet build, printing its errors (or the end of its output when no error line parses) |
fuse mcp | Stdio MCP server with fuse_check, fuse_test and fuse_build |
Exit codes: 0 clean, 1 errors or failed tests, 2 Fuse could not answer (the message says why and what to run).
There is no configuration file and there are no environment variables. Fuse finds every .csproj git knows about and needs the projects to be restored. In a repository without a .csproj, every command and hook returns at once without starting anything.
fuse init looks for each harness's folder and writes its hooks there. With none found, it sets up Claude Code.
| Harness | Detected by | Hooks written |
|---|---|---|
| Claude Code | .claude/ or CLAUDE.md | .claude/settings.json: post-edit check (in the background, wakes the agent only on new errors), dotnet build and dotnet test rewrite, stop check |
| Cursor | .cursor/ | .cursor/hooks.json: post-edit check, stop follow-up |
| Gemini CLI | .gemini/ or GEMINI.md | .gemini/settings.json: post-edit check, dotnet rewrite, stop check |
| Codex | .codex/ | .codex/hooks.json: post-apply_patch check, dotnet rewrite, stop check |
| GitHub Copilot CLI | .github/copilot-instructions.md or .github/hooks/ | .github/hooks/fuse.json: post-edit check, stop check |
| OpenCode | .opencode/, opencode.json or opencode.jsonc | .opencode/plugins/fuse.js: post-edit check, dotnet rewrite, stop check |
| VS Code agent mode | .vscode/ | .vscode/mcp.json: the MCP server |
Running fuse init again replaces Fuse's entries in shared settings files and keeps the other entries (comments in those JSON files are not kept); .github/hooks/fuse.json and .opencode/plugins/fuse.js belong to Fuse and are written whole. OpenCode runs plugins rather than commands, so its plugin passes each tool event to fuse hook opencode; it supports OpenCode 1 and 2 plugin formats. If your Claude Code settings allow dotnet build or dotnet test without asking, init adds the same allowance for fuse build and fuse test. Any other MCP host can run fuse mcp from the repository directory.
The Claude Code integration is tested end to end with Claude Code 2.1.282, and the OpenCode plugin with OpenCode 2.0.15. The Cursor, Gemini CLI, Codex and Copilot CLI adapters, and the OpenCode 1 plugin format, follow each harness's documented hook format and are covered by payload tests.
One fuse engine process runs per repository. The first command or hook starts it, and it exits after 30 minutes without a request. It evaluates every project with MSBuild, without building, and loads a project's compilation only when a change touches it.
global.json and .editorconfig re-evaluate the projects. A commit or branch switch moves the baseline.docs/design.md describes each part in detail.
From the evals in evals/Fuse.Evals, run through the fuse executable on one Windows machine. Results are in evals/results.
| Eval | Small solution (fixture: 5 projects, 22 tests) | NodaTime (17 projects, 42,681 tests) |
|---|---|---|
Correctness: generated edits compared with a real dotnet build | 30 cases: 0 missed, 0 contradicted | 20 cases: 0 missed, 0 contradicted |
fuse check vs dotnet build, median | 0.17 s vs 1.16 s | 0.59 s vs 1.54 s |
| Warm check after a body edit, P50 / P95 | 166 / 278 ms | 526 / 666 ms |
| Warm check after a signature edit, P50 / P95 | 196 / 2,617 ms | 1,463 / 7,971 ms |
| Test selection: failing tests missed | 0 in 10 cases | 0 in 5 cases |
Tests run by fuse test | 15 percent | all (the changes reach core types) |
fuse test vs dotnet test, median | 1.41 s vs 4.46 s | 35.5 s vs 50.0 s |
| Engine memory | 241 MB | 832 MB |
"Contradicted" means Fuse reported an error the build does not have. Errors Fuse reports in projects the build skips after an earlier failure cannot be compared; the result files count them separately. The signature-edit P95 includes the first such edit after the engine starts, which loads every dependent project. NodaTime builds with TreatWarningsAsErrors, so each check there also runs the analyzers that can report a warning.
fuse build runs the real build.global.json) run whole, without selection or the fast path.restore needed: run dotnet restore. Fuse never restores on its own.engine.log and hook.log in %LOCALAPPDATA%\fuse\repos\<id> on Windows, ~/.local/share/fuse/repos/<id> on Linux, ~/Library/Application Support/fuse/repos/<id> on macOS.fuse process is safe.Apache-2.0. See LICENSE.