For most of the history of the subject, everything known about these groups came from their enemies. The heresiologists (Irenaeus of Lyon in the later second century, Hippolytus, Tertullian, Epiphanius in the fourth), wrote to refute, and they organised their material accordingly: as a family tree of error descending from Simon Magus, with each teacher a corruption of the last. They quote real texts, and where their quotations can now be checked they are often accurate, but they select for absurdity, they impose a genealogy for polemical reasons, and they attribute practices to their opponents that no opponent describes of himself.
This changed in December 1945 near Nag Hammadi in Upper Egypt, where a jar was found containing thirteen leather-bound papyrus codices in Coptic, some fifty-two tractates, translated from Greek and copied in the fourth century. The find included the Gospel of Thomas, the Gospel of Philip, the Apocryphon of John, the Gospel of Truth and much else. For the first time these writings could be read as their authors wrote them, in something close to their own order and proportion, rather than as excerpts chosen by hostile readers.
What the texts showed complicated the picture rather than confirming it. The variety is much greater than the heresiologists suggested, the schemes do not reduce to a single system, and several of the tractates are not obviously Christian at all while others are Platonic, or Hermetic, or Sethian in a way that cuts across the older categories. The libertinism alleged by the opponents is nowhere in evidence; ascetic discipline is common.
This produced the central methodological argument of the modern field. Michael Williams, in 1996, argued that the category itself should be dismantled, on the grounds that it has no agreed definition, that the groups placed in it do not share a common set of features, and that almost none of them used the name of themselves. Karen King made a related case in 2003, tracing how the category was built by heresiologists in order to define orthodoxy by contrast, and then inherited uncritically by modern scholarship. Others have defended a narrower use, restricting the term to a specific body of texts and to the group Irenaeus reports as calling themselves gnostikoi.
No settlement has been reached, and this is a live disagreement rather than a resolved one. The practical effect is that careful writing now tends to name specific groups and texts (Valentinian, Sethian, Basilidean), and to use the general term with an acknowledgement that it is a modern construct.