After all of the fighting, name-calling and public bashing, both Charlie Sheen and his estranged wife Brooke Mueller have FINALLY reached some form of custody agreement for their two young twins Bob and Max. Let the church say amen!

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.

Be the first to receive breaking news alerts and more stories like this by subscribing to our mailing list.