Sources connected with the case tell TMZ ... Brooke's lawyer, Lori Howe, and Charlie's attorney, Mark Gross, went into the chambers of Judge Hank Goldberg this afternoon and presented hizzoner with the agreement. We're told Howe and Gross told Judge Goldberg the only thing left to be done is getting Brooke and Charlie's John Hancock.
Sources tell us ... the agreement calls for joint legal and physical custody of twins Bob and Max. We're told Brooke will get substantially more face time with the kids than Charlie.
The signed agreement will not be filed with the court, in order to keep it completely confidential. The case has been taken off the court's calendar.