Agentic Flattening