This tool is part of UCSC Genome Browser's utilities.
checkAgpAndFa in.agp in.fa
options: -exclude=seq - Ignore seq (e.g. chrM for which we usually get sequence from GenBank but don't have AGP) in.fa can be a .2bit file. If it is .fa then sequences must appear in the same order in .agp and .fa.