{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T19:11:32Z","timestamp":1794856292093,"version":"4.9.1"},"publisher-location":"Cham","reference-count":18,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783032392046","type":"print"},{"value":"9783032392053","type":"electronic"}],"license":[{"start":{"date-parts":[[2026,10,25]],"date-time":"2026-10-25T00:00:00Z","timestamp":1792886400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,10,25]],"date-time":"2026-10-25T00:00:00Z","timestamp":1792886400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2027]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Cyclic dependencies are a persistent architectural smell that undermines modularity, blurs ownership, and elevates maintenance risk. While Large Language Models (LLMs) provide refactoring abilities, existing tools struggle to address smells without intervention evidence. We introduce a multi-agent LLM framework for cyclic dependency analysis, which transforms static dependency evidence into structured, verifiable explanations of architectural entanglement. The approach constructs a structural dependency graph, detects cyclic regions via strongly connected components (SCC), extracts cycles as minimal witnesses of cyclicity, then produces grounded analyses. These are produced by a hierarchical team of LLM agents that describe the position, structure, and architectural impact of each cycle, clarifying why it exists and where it can be safely resolved. Evaluation on seven open-source Python projects shows that evidence-linked analyses can guide LLM-driven edits, reducing strongly connected components size and improving structural quality.<\/jats:p>","DOI":"10.1007\/978-3-032-39205-3_11","type":"book-chapter","created":{"date-parts":[[2026,10,24]],"date-time":"2026-10-24T16:20:16Z","timestamp":1792858816000},"page":"100-110","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["From Smell to\u00a0Solution: Multi-agent LLMs Analyzing Cyclic Dependencies for\u00a0LLM-Enabled Refactoring"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-8971-4769","authenticated-orcid":false,"given":"Henrik Brunvatne","family":"Olafsen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8514-8933","authenticated-orcid":false,"given":"Adela Nedisan","family":"Videsjorden","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2170-2066","authenticated-orcid":false,"given":"Arda","family":"Goknil","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5784-7355","authenticated-orcid":false,"given":"Sagar","family":"Sen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,10,25]]},"reference":[{"issue":"9","key":"11_CR1","doi-asserted-by":"publisher","first-page":"932","DOI":"10.1109\/TSE.2018.2872711","volume":"46","author":"V Alizadeh","year":"2018","unstructured":"Alizadeh, V., et al.: An interactive and dynamic search-based approach to software refactoring recommendations. IEEE Trans. Software Eng. 46(9), 932\u2013961 (2018)","journal-title":"IEEE Trans. Software Eng."},{"key":"11_CR2","first-page":"275","volume":"1","author":"DG Clayton","year":"1996","unstructured":"Clayton, D.G.: Generalized linear mixed models. Markov chain Monte Carlo Pract. 1, 275\u2013302 (1996)","journal-title":"Markov chain Monte Carlo Pract."},{"key":"11_CR3","unstructured":"Cordeiro, J., Noei, S., Zou, Y.: LLM-driven code refactoring: Opportunities and limitations. In: 2025 IEEE\/ACM Second IDE Workshop (IDE), pp. 32\u201336. IEEE (2025)"},{"key":"11_CR4","first-page":"2349","volume":"16","author":"J Fox","year":"2002","unstructured":"Fox, J.: Linear mixed models. Appendix R S-plus Companion Appl. Regression 16, 2349\u20132380 (2002)","journal-title":"Appendix R S-plus Companion Appl. Regression"},{"key":"11_CR5","doi-asserted-by":"crossref","unstructured":"Gao, Y., Hu, X., Yang, X., Xia, X.: Automated unit test refactoring. Proc. ACM Softw. Eng. 2(FSE), 713\u2013733 (2025)","DOI":"10.1145\/3715750"},{"key":"11_CR6","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2024.112170","volume":"217","author":"P Gnoyke","year":"2024","unstructured":"Gnoyke, P., Schulze, S., Kr\u00fcger, J.: Evolution patterns of software-architecture smells: an empirical study of intra-and inter-version smells. J. Syst. Softw. 217, 112170 (2024)","journal-title":"J. Syst. Softw."},{"key":"11_CR7","unstructured":"Jimenez, C.E., Yang, J., Wettig, A., Yao, S., Pei, K., Press, O., Narasimhan, K.: Swe-bench: can language models resolve real-world GitHub issues? arXiv preprint arXiv:2310.06770 (2023)"},{"issue":"5","key":"11_CR8","doi-asserted-by":"publisher","first-page":"667","DOI":"10.1007\/s10664-011-9155-y","volume":"16","author":"Z Li","year":"2011","unstructured":"Li, Z., et al.: Characteristics of multiple-component defects and architectural hotspots: a large system case study. Empir. Softw. Eng. 16(5), 667\u2013702 (2011)","journal-title":"Empir. Softw. Eng."},{"key":"11_CR9","unstructured":"Liu, B., et al.: An empirical study on the potential of LLMs in automated software refactoring. arXiv preprint arXiv:2411.04444 (2024)"},{"issue":"2","key":"11_CR10","doi-asserted-by":"publisher","first-page":"126","DOI":"10.1109\/TSE.2004.1265817","volume":"30","author":"T Mens","year":"2004","unstructured":"Mens, T., Tourw\u00e9, T.: A survey of software refactoring. IEEE Trans. Software Eng. 30(2), 126\u2013139 (2004)","journal-title":"IEEE Trans. Software Eng."},{"key":"11_CR11","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2020.110885","volume":"173","author":"H Mumtaz","year":"2021","unstructured":"Mumtaz, H., Singh, P., Blincoe, K.: A systematic mapping study on architectural smells detection. J. Syst. Softw. 173, 110885 (2021)","journal-title":"J. Syst. Softw."},{"issue":"12","key":"11_CR12","doi-asserted-by":"publisher","first-page":"3162","DOI":"10.1016\/j.jss.2013.07.039","volume":"86","author":"TD Oyetoyan","year":"2013","unstructured":"Oyetoyan, T.D., Cruzes, D.S., Conradi, R.: A study of cyclic dependencies on defect profile of software components. J. Syst. Softw. 86(12), 3162\u20133182 (2013)","journal-title":"J. Syst. Softw."},{"key":"11_CR13","doi-asserted-by":"crossref","unstructured":"Palomba, F., et al.: Extract package refactoring in Aries. In: IEEE\/ACM 37th IEEE International Conference on Software Engineering, vol. 2, pp. 669\u2013672. IEEE (2015)","DOI":"10.1109\/ICSE.2015.219"},{"key":"11_CR14","doi-asserted-by":"crossref","unstructured":"Pomian, D., Bellur, A., Dilhara, M., Kurbatova, Z., Bogomolov, E., Bryksin, T., Dig, D.: Next-generation refactoring: combining LLM insights and ide capabilities for extract method. In: 2024 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 275\u2013287. IEEE (2024)","DOI":"10.1109\/ICSME58944.2024.00034"},{"key":"11_CR15","doi-asserted-by":"crossref","unstructured":"Pomian, D., et al.: EM-assist: safe automated extractmethod refactoring with LLMs. In: Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering, pp. 582\u2013586 (2024)","DOI":"10.1145\/3663529.3663803"},{"key":"11_CR16","doi-asserted-by":"crossref","unstructured":"Tarjan, R.E.: Data structures and network algorithms. SIAM (1983)","DOI":"10.1137\/1.9781611970265"},{"key":"11_CR17","unstructured":"Wang, X., et\u00a0al.: Openhands: an open platform for ai software developers as generalist agents. arXiv preprint arXiv:2407.16741 (2024)"},{"key":"11_CR18","doi-asserted-by":"crossref","unstructured":"Yang, J., et al.: SWE-agent: agent-computer interfaces enable automated software engineering. In: Advances in Neural Information Processing Systems, vol. 37, pp. 50528\u201350652 (2024)","DOI":"10.52202\/079017-1601"}],"container-title":["Lecture Notes in Business Information Processing","Agile Processes in Software Engineering and Extreme Programming \u2013 Workshops"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-032-39205-3_11","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,24]],"date-time":"2026-10-24T16:20:18Z","timestamp":1792858818000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/chapter\/10.1007\/978-3-032-39205-3_11"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,10,25]]},"ISBN":["9783032392046","9783032392053"],"references-count":18,"URL":"https:\/\/doi.org\/10.1007\/978-3-032-39205-3_11","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-032-39205-3","asserted-by":"object"}]},"ISSN":["1865-1348","1865-1356"],"issn-type":[{"value":"1865-1348","type":"print"},{"value":"1865-1356","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,10,25]]},"assertion":[{"value":"25 October 2026","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"The authors have no competing interests to declare that are relevant to the content of this article.","order":1,"name":"Ethics","label":"Disclosure of Interests","group":{"name":"EthicsHeading","label":"Ethics"}},{"value":"XP","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Conference on Agile Software Development","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"S\u00e3o Paulo","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Brazil","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2026","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"8 April 2026","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"11 April 2026","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"27","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"xpu2026","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/agilealliance.org\/event\/xp-2026\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}