Id Software Open Source releases on GitHub
It will be interesting to see how id (or Carmack himself) will react to eventual pull requests. As far as I know the code has been frozen once released as Free Software on id FTP server.