In the OP's situation I would certainly be getting my CV out. He can still talk positively about what he is attempting to do, and use it to help him find something better somewhere else.
Tricky questions he can ask prospective future employers include
- asking about the planning processes in the software development cycle,
- what procedures and specification methods are used to ensure unambiguous communication to all team members,
- how much time and thought is given to planning new projects or fixing poorly designed existing ones,
- who has responsibility for all that,
- who are the gurus in what areas,
- what is the management structure and support like for the lesser programmers in the team
- what training do new folk get in the company products and ways
- what training do they get in key skill areas required for the project in hand
... and so on.
Maybe they're why I don't get many job offers ;)