Similar Items: Improving the Efficiency of Language Agent Teams with Adaptive Task Graphs