I have this error now for some time in my gentoo gnupg builds or from origin/master. The log reads
ssh sign request failed: Unknown option <GPG Agent>
so I hunted the code down to the ssh_handler_sign_request function that removes all known flags.
The error comes from flags != 0, so I started patching the code, by a measurement of what flags is in the end.
if (flags & 0x10000) { log_error ("strange flags in: 0x%x/%d\n", flags, flags); /* drop the strange flag */ flags &= ~0x10000; }
by such strange flags debug line I detected that the ssh client sets this 0x10000 flag, that is unknown to gpg-agent, so I added this little block above that filters this unknown flag.