Bristol City will sign midfielder Sammie Szmodics on a three-year deal once his contract at Colchester United ends on 1 July.
Szmodics, 23, has been with the U's since joining at academy level and has scored 40 goals in 165 career games.
Colchester will receive an undisclosed compensation fee as Szmodics is under 24.
"He is still a young player but he is learning all the time," City chief executive Mark Ashton said.
"He has a lot to give to Lee Johnson's team. We are confident this is the right environment for him."
Find all the latest football transfers on our dedicated page.