One Step towards Autonomous AI Agent: Reasoning, Alignment and Planning