I guess this is the official program to use : https://sourceforge.net/projects/cogtriangles/files/ And you should use the newest version of the db form 2015
What I've heard before and is backed up by this link COGs is that COGs are really, really old. Why not use Interproscan, available as command line software in Java, or over the web interface at the EBI ?
Otherwise more recent databases would be a better bet, perhaps Tigrfams or similar. I personally really like Interpro though as it queries many, many databases chiefly using HMMs.