" Eight years into the war in Afghanistan , the U.S. intelligence community is only marginally relevant to the overall strategy , " Flynn wrote in the report with his chief adviser , Captain Matt Pottinger .