Francis Brown introduced a partial compactification M0,nδ of the moduli space M0,n. We prove that the gravity cooperad, given by the degree-shifted cohomologies of the spaces M0,n, is cofree as a nonsymmetric anticyclic cooperad; moreover, the cogenerators are given by the cohomology groups of M0,nδ. This says in particular that H∙(M0,nδ) injects into H∙(M0,n). As part of the proof we construct an explicit diagrammatically defined basis of H∙(M0,n) which is compatible with cooperadic cocomposition, and such that a subset forms a basis of H∙(M0,nδ). We show that our results are equivalent to the claim that Hk(M0,nδ) has a pure Hodge structure of weight 2k for all k, and we conclude our paper by giving an independent and completely different proof of this fact. The latter proof uses a new and explicit iterative construction of M0,nδ from An−3 by blow-ups and removing divisors, analogous to Kapranov's and Keel's constructions of M0,n from Pn−3 and (P1)n−3, respectively.