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

A new way for AI to search for data
View on GitHub
16GitHub stars
135commits on main
1forks

F# 99.3%, TypeScript 0.5%, PowerShell 0.2% · created 2026-08-26 · last push 2026-10-22

What XERJ indexed

Snapshot

337 files · 7.0 MB

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

Unlicense

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

Unlicense, with credit

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

Inside the indexed corpus

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

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

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.