What about the ed(1) command prompt? It doesn't have one!
There are only two modes: command & entry. If you're ever less than totally sure about which mode you're in. just type a period (".") on a line by itself.
If you were in entry mode, nothing will happen, and you're now in command mode.
If you were in command mode, the current line is printed, and you're still in command mode.
Either way, you're now in command mode & your next command will act on the line you think it will.
How do you enable auto-save while writing in ed(1)?
Muscle memory. Every time you reach for your drink, type period, enter, "w", enter, "a", enter.
... You *are* remembering to hydrate, right?