11:42 AM PT -- According to the plea agreement -- obtained by TMZ -- prosecutors say they'll push for a lighter sentence than the maximum because Kodak has been cooperative.
11:28 AM PT -- Kodak pled guilty to 2 counts of knowingly making a false and fictitious written statement in connection with the acquisition of a firearm. He faces a maximum of 10 years in prison followed by 3 years of supervised release.
Kodak Black just did an about-face and cut a deal in his federal firearms case.
The rapper was in court Thursday for a change of plea hearing where he told the judge he was now pleading guilty ... after initially pleading not guilty to lying on federal gun applications.
Kodak has been in federal detention since his arrest in May -- the judge denied his request to be released on bond, calling him a danger to the community. His sentencing is now set for November 13, and he could get several years in prison.