You type the passphrase once; ssh asks the agent over a socket. Anyone who can use that socket can sign as you, which is why agent forwarding to untrusted hosts is risky.