github: https://github.com/ThomasCX/defragfs
The defragfs project aims on file-system/directory defragmentation of the Linux operating system, it is (currently) file-system independent and only CLI, hope further development could bring the GUI and better functionality.