A passphrase on an SSH key is a good habit, and typing it again after every restart gets old fast. The Mac keychain can remember it for me.
Apple’s version of ssh-add has two extra options. The first adds the key and also stores its passphrase in your keychain:
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
The man page says that when you remove identities with -d, the passphrase is removed from the keychain too. After a restart the agent is empty again, and the second option loads the keys back using the stored passphrases:
ssh-add --apple-load-keychain
To make ssh do this by itself, put it in ~/.ssh/config:
Host *
AddKeysToAgent yes
UseKeychain yes
UseKeychain is the macOS option that searches the keychain for the passphrase when a key is used, and stores the passphrase after it has been verified. The default is no. AddKeysToAgent yes adds a key to the running agent when it is loaded from a file.
The caveats come from the man pages. UseKeychain is incompatible with PKCS11Provider. The older flags -K and -A were renamed to --apple-use-keychain and --apple-load-keychain, so a guide that still uses them may behave differently, and with -S, SSH_SK_PROVIDER or APPLE_SSH_ADD_BEHAVIOR set to openssh you get standard OpenSSH behavior instead.
It is also a trade of security for comfort: anyone who gets into your unlocked Mac account can use the key without typing the passphrase.
Further reading: ssh-add man page, ssh_config man page