While the prisoner is in the hospital, he shall remain in the custody under sufficient guard of the warden of the jail from which he came, unless custody is transferred to the Office of Mental Health pursuant to an agreement between the warden and the Commissioner of Mental Health.
N.Y. Comp. Codes R. & Regs. Tit. 14 § 18.7