How do I get Stockfish to show notes like it does on Lichess? I want to write a program to stop a chess game if Stockfish decides that checkmate is unavoidable for a player as a learning exercise. I downloaded Stockfish for Mac and it gives what it thinks is the best move but I can't figure out how to get it to show those more specific notes
Stockfish is an UCI chess engine, so you shouldn't mess up with the engine. You will need to write a new chess GUI.

Useful links:


https://www.chess.com/forum/view/general/chess-engines-amp-gui-uci
How do I use the analysis output of a UCI engine?
What is the optimal way to use Stockfish programmatically?
How to get position evaluation with UCI?