It simply scans /proc for interesting commands*, and then looks at directories fd and fdinfo to find opened files and seek positions, and reports status for the largest file. It’s very light and compatible with virtually any command.
Source: Xfennec/progress: Linux tool to show progress for cp, mv, dd, … (formerly known as cv)