---
title: "F# code reviewer: review, role & definition · Undominated.ai"
canonical: https://undominated.ai/agents/ecc-fsharp-reviewer/
description: "Reviews F# changes for exhaustive domain modelling, computation-expression flow, disposal and safe boundaries."
---

# F# code reviewer: review, role & definition · Undominated.ai

> Reviews F# changes for exhaustive domain modelling, computation-expression flow, disposal and safe boundaries.

[← Explore all agents](/agents/)

LANGUAGE-SPECIFIC REVIEW / Affaan Mustafa

# F# code reviewer

Reviews F# changes for exhaustive domain modelling, computation-expression flow, disposal and safe boundaries.

 [Use this definition ↓](#setup)[Original source ↗](https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/agents/fsharp-reviewer.md)

SOURCE REVIEW

 Reviewed 2026-10-14
 Evidence 3 linked sources
 Publisher Affaan Mustafa
 Licence [MIT ↗](https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/LICENSE)
 Revision b92f181b3b74
 [Read what was—and wasn’t—checked ↓](#review)

“Expert F# code reviewer specializing in functional idioms, type safety, pattern matching, computation expressions, and performance. Use for all F# code changes. MUST BE USED for F# projects.”

 [Affaan Mustafa · upstream description ↗](https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/agents/fsharp-reviewer.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - It checks incomplete union matches, smart constructors, Option/Result handling and async binding.
- It also examines repeated lazy-sequence evaluation, boxing and Giraffe/Saturn or Fable/Elmish integration.
- It reviews F# and fsx diffs and treats swallowed match wildcards and blocking async as critical, with a tighter size bar than the C# reviewer: functions over 40 lines and nesting over 3.
- Framework notes name Giraffe or Saturn, EF Core, and Fable separately, and the report still has to cite a file and line.

### A good fit for

 - Provide changed .fs/.fsx files, domain unions/constructors, callers and the project toolchain.
- Receive severity-ranked findings with a location and fix, including diagnostic status when build/Fantomas/tests run.
- Reviewing F# domain code for partial pattern matches, null instead of Option, and primitive obsession.
- Checking a formatting claim only when fantomas is actually available.

### Weigh up before choosing

 - Function-length and nesting thresholds are style heuristics; immutable/functional rewrites and sequence materialization must preserve semantics and measured resource costs.
- Review approval labels and severity assignments are model judgments; no project checks were executed during this source review.
- Referenced upstream support material is separate: dotnet-patterns and fsharp-testing.
- The source selects the sonnet model alias; confirm it exists in the configured host.
- Source-only listing: inspect the upstream context and referenced dependencies before adapting this definition.
- Write and Edit are absent. Bash may still run dotnet test. The file does not deny that.
- fsharp-testing and dotnet-patterns are not in this file.
- It does not compile a fix or prove an idiomatic rewrite.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - agents/fsharp-reviewer.md (complete definition)
- LICENSE (applicable redistribution terms)
- Host custom-agent documentation; repository installation guidance where applicable

### Our findings

 - It checks incomplete union matches, smart constructors, Option/Result handling and async binding.
- It also examines repeated lazy-sequence evaluation, boxing and Giraffe/Saturn or Fable/Elmish integration.
- The invoke path diffs *.fs and *.fsx and runs dotnet build and fantomas --check if available.
- Tools are Read, Grep, Glob, and Bash, model sonnet, with no disallowedTools field.
- A block decision is any critical or high issue. The file does not apply the fix it describes.
- Host docs require the Markdown to live in a scanned agents directory before it is a subagent.

### Not established by this review

 - No agent was installed or invoked. Host/model compatibility, task accuracy and runtime behaviour were not tested.
- The resource was not executed and its tools were not called.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Use the role in your project.

[Upstream setup instructions ↗](https://code.claude.com/docs/en/sub-agents.md)
 - Read the pinned definition and MIT licence; review the host permissions before use.
- Inspect the referenced upstream context; place the agent in .claude/agents/ and restrict Bash to the intended project diagnostics.
- Provide changed .fs/.fsx files, domain unions/constructors, callers and the project toolchain.

### Before you start

 - Claude Code and a supported model
- A F# project with separately installed diagnostic tools

### Compatibility

Claude Code

### Implementation

Markdown

### Host-mediated repository and tool access

 - Declared tools: Read, Grep, Glob, Bash. The host enforces tool access; shell execution can modify files or contact services.

### Cost model

The definition is reusable under its stated licence. Host/model usage, execution environments and connected services can incur separate charges.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Complete upstream definition at reviewed commit ↗](https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/agents/fsharp-reviewer.md) Checked 2026-10-14 https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/agents/fsharp-reviewer.md Supports: Workflow, inputs and outputs, Declared tools and constraints, Selection and limitations
- [Applicable upstream redistribution licence ↗](https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/LICENSE) Checked 2026-10-14 https://github.com/affaan-m/everything-claude-code/blob/b92f181b3b748d1abbc2afd94af6aa7d8c8fca29/LICENSE Supports: Licence and attribution requirements
- [Host custom-agent configuration ↗](https://code.claude.com/docs/en/sub-agents.md) Checked 2026-10-14 https://code.claude.com/docs/en/sub-agents.md Supports: Host setup and permission defaults

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Find reusable instructions](/skills/)
- [Inspect connections](/mcp-servers/)
- [Build a toolkit](/tools/)
- [Choose the model](/compare/)
