fsharp-refactor
FSharp refactoring tool - The tool clarifies the (agent-generated or old) code's intent, reduces non-alphanumeric noise, and uses built-in.NET libraries more efficiently
What XERJ indexed
Snapshot
The whole repository at commit 95b1875d7d (2026-10-03). main is 14 commits ahead.
Selected work

“A few more minor rules”. 44 files, 6,256 lines in src/FSharp.Refactor.Analyzers, tests, src/FSharp.Refactor.Tool.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-11. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
analysercodeformatterfsharpfxcoprefactoringtoolresharper
Example questions
- How does fsharp-refactor implement analyser?
- Where does fsharp-refactor handle “A few more minor rules”?
- What does src/FSharp.Refactor.Analyzers do in fsharp-refactor?
Inside the indexed corpus
- 337 files, 7.0 MB in total, about 21.4 KB per file.
- The selected commit changed 44 of those files (13.1%).
- Languages by size: F# 99.3%, TypeScript 0.5%, PowerShell 0.2%.
- On GitHub since 2026-08-26, last push 2026-10-22, 135 commits on main.
- The pin is 14 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported Unlicense for Thorium/fsharp-refactor on 2026-10-31, and the LICENSE file at commit 95b1875d7d was reviewed as Unlicense. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Tuomas Hietanen (@Thorium) has 1 selected repository on the hub.
Using XERJ with fsharp-refactor
- How do I run syntax-aware code search? fsharp-refactor is tagged refactoring on GitHub.
- XERJ vs ast-grep: syntax search and an index
- RAG without a vector database: one hybrid index The hub files it under AI, prompts and agents.
- Best grep alternative for AI coding agents (2026)
The prompt
Paste it into your AI agent. It clones Thorium/fsharp-refactor at the pinned commit and indexes it on your machine.
Search the GitHub repository Thorium/fsharp-refactor with XERJ (https://hub.xerj.org/corpus/thorium--fsharp-refactor). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/Thorium/fsharp-refactor fsharp-refactor && git -C fsharp-refactor checkout 95b1875d7d74211adb29154db7536eb277fce033 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./fsharp-refactor --url http://127.0.0.1:9200 --prefix fsharp-refactor --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: Unlicense. Keep the copyright notice and credit the authors.
Related
Tuomas HietanenAI, prompts and agents corporaowasp-cheatsheetshermes-minimizercdk8shyhmrright/brooks-lintsutradharhq/sutradhardenzyldick/phanalist
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.