Britney Spears and Kevin Federline have come to an agreement about custody of their two young kids -- at least for the rest of the month.
The two will share custody through January, but first the pop star will take the tots with her to Miami for a week, according to court papers filed Friday.
Spears, 25, was permitted to have 16-month-old Sean Preston Federline and 4-month-old Jayden James Federline with her in Florida through next Thursday.
After that, Federline will be allowed to visit the children at Spears' home from noon to 4 p.m. on Mondays, Wednesdays and Fridays.
The estranged couple signed the custody agreement, which runs out Jan. 31, on Thursday. It stipulates that Spears will use her "best efforts to ensure that no third party visiting the home" interferes with Federline's time with the children.
The Superior Court document said Federline wants only Spears, her assistant, the children's nanny and other household staff to be allowed in the home during his visits, but the couple had not reached agreement on that request.
They also have not worked out any custody arrangements beyond Jan. 31.
Spears, 25, filed for divorce from Federline in November after two years of marriage, citing irreconcilable differences.
The 28-year-old former backup dancer and aspiring rapper counter-filed, seeking spousal support and custody of the children.