[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-732956-105":59,"doc-detail-732956-en":130,"doc-similar-732956":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","how-do-coding-agent-harnesses-self-evolve-an-empirical-study-of-retrospective-adaptation","How Do Coding-Agent Harnesses Self-Evolve? - An Empirical Study of Retrospective Adaptation","","Coding agents can adapt the software, configuration, and instructions (“harnesses”) used across tasks based on experience from earlier sessions. The study investigates whether these retrospective harness adaptations improve later performance. Using /retro, the authors collect 125 proposals from Claude Code over 30 SWE-bench Verified issues, implement 24 changes, and evaluate 12 adaptations on later issues in the same repositories to measure reduced repeated work. Results show mixed effectiveness, with some changes preventing, some not reducing, and some adding unrelated work, highlighting the need for evaluation and revision.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/how-do-coding-agent-harnesses-self-evolve-an-empirical-study-of-retrospective-adaptation/732956/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/how-do-coding-agent-harnesses-self-evolve-an-empirical-study-of-retrospective-adaptation/732956.png","ImageObject",300,407,{"name":92,"@type":93},"OKfine","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-11-22",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the /retro skill and what does it produce?","Question",{"text":112,"@type":113},"/retro asks a coding agent to review a completed session and generate numbered proposals for harness changes that require human approval.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How did the study evaluate whether harness changes help later tasks?",{"text":117,"@type":113},"Each implemented adaptation was transferred to later issues in the same repository, and the evaluation tracked whether later sessions encountered the targeted problem, consulted the adaptation, and repeated the intended action.",{"name":119,"@type":110,"acceptedAnswer":120},"What did the authors find about the effectiveness of implemented harness adaptations?",{"text":121,"@type":113},"Among evaluations where removing the change led sessions to hit the targeted problem, some changes eliminated the targeted action, some reduced its occurrence, others showed no reduction, and some added extra work on unrelated issues.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},732956,1795383070,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":24,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},962093957596,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","How Do Coding-Agent Harnesses Self-Evolve? An Empirical Study of Retrospective Adaptation  \nChristoph Treude  \nSingapore Management University Singapore [ctreude@smu.edu.sg](ctreude@smu.edu.sg)  \nSebastian Baltes  \nHeidelberg University Heidelberg, Germany sebastian.baltes@uni-heidelberg.de  \narXiv : 26 10 .34938v 1 [cs .SE] 26 Oct 2026  \nAbstract—Coding agents can adapt their harnesses, the software, configuration, and instructions used to run them, based on experience from earlier tasks, but whether these adaptations improve their behavior on later tasks remains unclear. We study /retro, a skill that asks an agent to review a completed session and propose harness changes, and ask what changes it proposesand whether implemented changes reduce repeated work on later tasks. We ran Claude Code on 30 SWE-bench Verified issues, qualitatively coded the 125 proposals from /retro, implemented 24, and evaluated 12 harness changes on later issues from the same repositories in fresh sessions with and without each change. Most proposals referred to an event in the session, but 18 of 43 lint-related proposals recommended a practice regardless of what had happened. Among the seven evaluations in which sessions without the change encountered the targeted problem, two changes eliminated the targeted action, one reduced its occurrence, four showed no reduction, and some changes added work on unrelated issues. Harness self-evolution requires more than generating and implementing changes: it needs ways to establish whether a change helps on later tasks and to revise or remove changes that do not.  \nIndex Terms—coding agents, agent harness, self-evolution, retrospectives, SWE-bench  \nI. INTRODUCTION  \nCoding agents such as Claude Code run inside a harness: the software, configuration, and instructions used to run the agent, including context files such as CLAUDE .md that the agent reads at the start of each session. A session that identifies how to run a repository’s tests or which tests already fail can retain this information in the harness for later sessionson the same repository. Retaining changes from completed sessions for use on later tasks, without retraining the model, is harness self-evolution [1] . Whether a retained change helps is a separate question: a change can describe one task rather than the repository, can stay outside a later session’s context, or can be read without changing what the agent does.  \nThe /retro skill is one mechanism for producing such changes. It instructs a coding agent to conduct a retrospective: a review of a completed session that generates numbered proposals for harness changes requiring human approval [2] . In our study, Claude Code completed the task sessions, generated the retrospectives, and implemented approved proposals. Two large language models (LLMs) coded the proposals, and we selected which proposals to implement, chose the later issues, and labeled the outcomes, so the process we study is self-  \nevolution with human selection and evaluation rather than an autonomous loop. We ask two research questions. RQ1: What harness changes does /retro propose, and to what extent are they based on events in the session? RQ2: Under what conditions do implemented adaptations prevent targeted actions on later issues from the same repository?  \nAn implemented harness change is an adaptation. For each adaptation, we operationalize repeated work as a later session performing a specific action that the adaptation was intended to prevent, such as running tests with pytest when it isnot installed, or rerunning tests on unmodified code to check whether an unrelated failure was already present. This is a behavioral measure, not a judgment that the action was unnecessary or that preventing it improved the task outcome. We transferred individual adaptations, each proposed after one session, to other issues in the same repository. By recording whether later sessions encountered the targeted problem, consulted the adap","cbCailUvopLFg2NW","https://ap.wps.com/l/cbCailUvopLFg2NW","pdf",119209,"English","# Introduction\n# Background and Related Work\n# Study Design","[{\"question\":\"What is the /retro skill and what does it produce?\",\"answer\":\"/retro asks a coding agent to review a completed session and generate numbered proposals for harness changes that require human approval.\"},{\"question\":\"How did the study evaluate whether harness changes help later tasks?\",\"answer\":\"Each implemented adaptation was transferred to later issues in the same repository, and the evaluation tracked whether later sessions encountered the targeted problem, consulted the adaptation, and repeated the intended action.\"},{\"question\":\"What did the authors find about the effectiveness of implemented harness adaptations?\",\"answer\":\"Among evaluations where removing the change led sessions to hit the targeted problem, some changes eliminated the targeted action, some reduced its occurrence, others showed no reduction, and some added extra work on unrelated issues.\"}]","How Do Coding-Agent Harnesses Self-Evolve? - An Empirical Study of Retrospective Adaptation | PDF",13,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/0c3b4b6d4c658067bf188dae50426088.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/f6252a24d9021c983bfc45046d203932.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/dbd3947d16cb8e68d063f98224234d03.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/00612dfda1603bf1d50563098353501c.webp",980,1268,{"list":162,"token":66},[163,170,177,184,191,197,204,210,217,223],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":40,"create_tm":169},83555,"SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808866774/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=yFdh%2FltqUOORcCEWGVQav4RCPYs%3D","swe-doctor-guiding-software-engineering-agents-with-runtime-diagnosis-from-multi-faceted-bug-reproduction-tests",29,1784188798,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},81787,"Self-Evolving Agents with Anytime-Valid Certificates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808644897/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=d%2B0WEa6C%2BPkjsqqhMvBpKYZZ8wc%3D","self-evolving-agents-with-anytime-valid-certificates",28,1784176142,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":40,"create_tm":183},83039,"SWE-Review Closing the Loop on Issue Resolution with Agentic Code Review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808816700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=zUPrRbX3dnZ0eXfSOSFUd7KP%2BYE%3D","swe-review-closing-the-loop-on-issue-resolution-with-agentic-code-review",32,1784184810,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":40,"create_tm":190},85971,"When Does Restricting a Coding Agent to Execute Code Help? A Regime × Agent-Design Ablation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809368963/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=8r8oHWpbLfVsdMtabpaK%2BnAwnQw%3D","when-does-restricting-a-coding-agent-to-execute-code-help-a-regime-agent-design-ablation",33,1784207487,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":56,"category_name":40,"create_tm":196},273490,"ClawGym II - Exploring Black-Box RL on Agent Harness - research proposal for stable and scalable optimization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899942077/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=Cd%2BkLT1RWFY9jo3hMS0ZgvcbEuc%3D","clawgym-ii-exploring-black-box-rl-on-agent-harness-research-proposal-for-stable-and-scalable-optimization",1789471681,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":40,"create_tm":203},83269,"What Makes a Good Bug Report for an AI Agent","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808957608/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=pcGeHRrJtRncVdb3A2YH272%2Bf0Y%3D","what-makes-a-good-bug-report-for-an-ai-agent",31,1784186411,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":175,"category_name":40,"create_tm":209},82404,"Writing Bug Reports for Software Repair Agents: What Information Matters Most","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808738768/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=RBqrng78w1sVmlXojIxteEPda6Y%3D","writing-bug-reports-for-software-repair-agents-what-information-matters-most",1784180157,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},83966,"KAT-Coder-V2.5 Technical Report","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809008943/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=swuCruEoSuU3E%2BeUs7r3vztBBF8%3D","kat-coder-v25-technical-report",36,1784191710,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":41,"category_name":40,"create_tm":222},86120,"Retrieval Oriented Code Representations in Agentic Bug Localization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809379371/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=9uEtThDXDgpmbKOQiSkSpPQAd%2FY%3D","retrieval-oriented-code-representations-in-agentic-bug-localization",1784208642,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":40,"create_tm":229},83942,"CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809117164/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=CTx5Zz18PEddbQEoGZ%2Fp1ly6e4s%3D","compactionrl-reinforcement-learning-with-context-compaction-for-long-horizon-agents",38,1784191579]