The paper presents a novel approach for recovering and analyzing the architecture and design of legacy systems through run-time source code collaboration pattern analysis. It focuses on identifying code collaboration patterns and roles which aid in understanding legacy software, utilizing dynamic analysis and reverse engineering tools to automate the process. The findings indicate significant improvement in the efficiency of legacy software comprehension and interoperability with contemporary systems.