A Turkish or Ottoman military officer or commander; a historical military rank in the Ottoman Empire.
From Turkish/Ottoman 'ağa-muharrir' or similar military titles, the exact etymology is complex but relates to Ottoman administrative and military structures.
This is one of those fascinating historical words we borrowed when the Ottoman Empire was at its height and Europe was trying to understand their military ranks and titles!
Complete word intelligence in one call. Free tier — 50 lookups/day.