The Imperial and Royal General Staff (German: k.u.k. Generalstab) of Austria-Hungary was part of the Ministry of War. It was headed by the Chief of the General Staff for the Whole Armed Forces (Chef des Generalstabes für die gesamte bewaffnete Macht), who had direct access to the Emperor.
The general staff was responsible for planning and preparations, while the Armeeoberkommando (AOK) was the operational high command. In fact, since the AOK was under the direct command of the emperor and the chief of the general staff was his chief adviser, in practice the AOK was under the control of the chief of the general staff.