[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-703298-105":59,"doc-detail-703298-en":130,"doc-similar-703298":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","context-engineering-for-ai-agents-in-open-source-software","Context Engineering for AI Agents in Open-Source Software","","GenAI coding assistants are shifting software development toward agent-based automation with increasing autonomy and reduced reliance on human supervision. Agents need project-specific context that matches repository standards, policies, and workflows, including build, testing, code style, and contribution practices. The paper studies adoption of AGENTS.md context files across 466 open-source projects, examining what developers include, how they structure it, and how these files change over time. Results show no established content structure and substantial variation in descriptive, prescriptive, prohibitive, and conditional content, with commit-level signals indicating how provided context evolves.",{"@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/context-engineering-for-ai-agents-in-open-source-software/703298/",{"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/context-engineering-for-ai-agents-in-open-source-software/703298.png","ImageObject",300,407,{"name":92,"@type":93},"Cart","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-11-13",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why is context engineering important for AI coding agents?","Question",{"text":112,"@type":113},"AI agents must use task-relevant, repository-specific information to generate solutions consistent with project standards, policies, and workflows. Context engineering defines and structures that information for models.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is AGENTS.md and what gap does the study address?",{"text":117,"@type":113},"AGENTS.md is proposed as a standard for AI context files consolidating tool-specific formats. The study investigates whether and how developers actually adopt this format in practice.",{"name":119,"@type":110,"acceptedAnswer":120},"What did the preliminary study find about AGENTS.md usage?",{"text":121,"@type":113},"The paper finds no established content structure yet across 466 open-source projects. Developer-provided context varies widely in how it is expressed (e.g., descriptive, prescriptive, prohibitive, explanatory, and conditional), and commit-level analysis reveals early insights into how context evolves.","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},703298,1794567310,{"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":44,"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},18829141979164,"https://eur-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Context Engineering for AI Agents in Open-Source Software  \nSeyedmoein Mohsenimofidi  \nHeidelberg University Germany  \ns.mohsenimofidi@uni-heidelberg.de  \nChristoph Treude  \nSingapore Management University Singapore [ctreude@smu.edu.sg](ctreude@smu.edu.sg)  \nMatthias Galster  \nUniversity of Bamberg Germany [mgalster@ieee.org](mgalster@ieee.org)  \nSebastian Baltes  \nHeidelberg University Germany  \nsebastian.baltes@uni-heidelberg.de  \narXiv :2510 .2 14 13v4 [ cs . SE] 5 Feb 2026  \nAbstract  \nGenAI-based coding assistants have disrupted software development. The next generation of these tools is agent-based, operating with more autonomy and potentially without human oversight. Like human developers, AI agents require contextual information to develop solutions that are in line with the standards, policies, and workflows of the software projects they operate in. Vendors of popular agentic tools (e.g., Claude Code) recommend maintaining version-controlled Markdown files that describe aspects such as the project structure, code style, or building and testing. The content of these files is then automatically added to each prompt. Recently, AGENTS.md has emerged as a potential standard that consolidates existing tool-specific formats. However, little is known about whether and how developers adopt this format. Therefore, in this paper, we present the results of a preliminary study investigating the adoption ofAI context files in 466 open-source software projects. We analyze the information that developers provide in AGENTS.md files, how they present that information, and how the files evolve overtime. Our findings indicate that there is no established content structure yet and that there is a lot of variation in terms of how context is provided (descriptive, prescriptive, prohibitive, explanatory, conditional) . Our commit-level analysis provides first insights into the evolution of the provided context. AI context files provide a unique opportunity to study real-world context engineering. In particular, we see great potential in studying which structural or presentational modifications can positively affect the quality of the generated content.  \nKeywords  \nSoftware Engineering, Generative AI, AI Agents, Open Source  \nACM Reference Format:  \nSeyedmoein Mohsenimofidi, Matthias Galster, Christoph Treude, and Sebastian Baltes. 2026. Context Engineering for AI Agents in Open-Source Software. In 23rd International Conference on Mining Software Repositories (MSR’26), April 13–14, 2026, Rio de Janeiro, Brazil. ACM, New York, NY, USA, 5 pages. [https://doi.org/10.1145/3793302.3793350](https://doi.org/10.1145/3793302.3793350)  \nThis work is licensed under a Creative Commons Attribution 4 .0 International License. MSR’26, Rio de Janeiro, Brazil  \n© 2026 Copyright held by the owner/author(s) .  \nACM ISBN 979-8-4007-2474-9/2026/04  \n[https://doi.org/10.1145/3793302.3793350](https://doi.org/10.1145/3793302.3793350)  \n1 Introduction  \nThe launches of GitHub Copilot in 2021 and ChatGPT in 2022 have started to transform how software is developed. Today, generative AI (GenAI) tools built around large language models (LLMs) support software engineers throughout the software development lifecycle (SDLC)—although most published work focuses on code and test generation [7, 15, 17, 34, 36, 41] . The Devin AI demo published in March 2024 fueled the first hype around agent-based software development [18], but it took until 2025 for agent-based software development to reach considerable adoption. In February 2025, Anthropic released Claude Code, a “command line tool for agentic coding” [1], which represents a further step toward more autonomous AI-assisted software development, enabling developers to assign coding tasks to AI agents via a terminal interface. Human oversight is still built-in, but can be turned off by the developer. This brings GenAI assistants closer to the inherent meaning of an agent that operates autonomously, adapts to change, and create","cbCaieZ3BkspWn8G","https://ap.wps.com/l/cbCaieZ3BkspWn8G","pdf",814869,"English","# Introduction\n## Context engineering vs. prompt engineering\n## AI context files and AGENTS.md\n# Background and motivation\n## Emergence of agentic coding tools\n# Findings overview\n## Adoption patterns and content variation\n## Evolution across commits","[{\"question\":\"Why is context engineering important for AI coding agents?\",\"answer\":\"AI agents must use task-relevant, repository-specific information to generate solutions consistent with project standards, policies, and workflows. Context engineering defines and structures that information for models.\"},{\"question\":\"What is AGENTS.md and what gap does the study address?\",\"answer\":\"AGENTS.md is proposed as a standard for AI context files consolidating tool-specific formats. The study investigates whether and how developers actually adopt this format in practice.\"},{\"question\":\"What did the preliminary study find about AGENTS.md usage?\",\"answer\":\"The paper finds no established content structure yet across 466 open-source projects. Developer-provided context varies widely in how it is expressed (e.g., descriptive, prescriptive, prohibitive, explanatory, and conditional), and commit-level analysis reveals early insights into how context evolves.\"}]","Context Engineering for AI Agents in Open-Source Software | 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-14/e4a538e7cbbeb86e96d73ed076d131be.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/a8a34767584a63778f9b9498cca5be71.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/a9726c9f4f86ddc5a9cd7e63a47e5080.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/fa8a6aaa4ca5307325081117a5432401.webp",980,1268,{"list":162,"token":66},[163,169,176,183,189,195,202,208,214,221],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":29,"category_name":40,"create_tm":168},682049,"On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents - Research paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998417238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=sNQdmy3QkxOGlXm3Vt81Xnfo4yU%3D","on-the-impact-of-agentsmd-files-on-the-efficiency-of-ai-coding-agents-research-paper",1793958924,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":40,"create_tm":175},81654,"Remember Your Trace Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808635310/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=92LoPhXb4fcDdhIJRhq2uWe1yTw%3D","remember-your-trace-memory-guided-long-horizon-agentic-framework-for-consistent-and-hierarchical-repository-level-code-documentation",26,1784175189,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},82260,"Configurable AI Coding Assistants: Designing for Developers Who Like to Be in Control","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808726252/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=XDDKxRiTsyZeFI%2BRwlKB3dOvACM%3D","configurable-ai-coding-assistants-designing-for-developers-who-like-to-be-in-control",24,1784179214,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":143,"category_name":40,"create_tm":188},580652,"Superficially Plausible Outputs from a Black Box - Problematising GenAI Tools for Analysing Qualitative SoTL Data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229953816008/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=%2FiaEt4%2BwObKCx8iERn%2B7O1A1nQA%3D","superficially-plausible-outputs-from-a-black-box-problematising-genai-tools-for-analysing-qualitative-sotl-data",1792038025,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":52,"category_name":40,"create_tm":194},597683,"Canadian Journal of Learning and Technology - Volume 33(2) Spring / printemps 2007 - Embedded or linked learning objects","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229955345217/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=4nGoijp8Asa8Ko6pfRT6466lhAA%3D","canadian-journal-of-learning-and-technology-volume-332-spring-printemps-2007-embedded-or-linked-learning-objects",1792085498,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":40,"create_tm":201},452376,"“Are We Architects or Construction Workers?” - Re-Examining Teacher Autonomy and Turnover in Charter Schools","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925125577/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=bPisWPx4QHVwD507Yk%2FcsVStG9k%3D","are-we-architects-or-construction-workers-re-examining-teacher-autonomy-and-turnover-in-charter-schools",12,1790736994,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":81,"category_name":40,"create_tm":207},682047,"Open Source Projects Provide to Coding Agents - Uncovering AGENTS.md: What Testing Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999341505/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=lP4jQYfgNda%2FC2QCSKnn5z1f%2FtM%3D","open-source-projects-provide-to-coding-agents-uncovering-agentsmd-what-testing-guidance",1793958922,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":41,"category_name":40,"create_tm":213},83512,"You Shall Not Pass! Where and Why Developers Draw The Line on AI Autonomy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808984463/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=x6g6UnB5101Fwjjp2pr9LdwKNRU%3D","you-shall-not-pass-where-and-why-developers-draw-the-line-on-ai-autonomy",1784188539,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},526185,"Consumer Acceptance of High-Autonomy AI Assistants Is Driven by Perceived Benefits in Online Shopping Settings Characterized by Scarcity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229941644086/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=YJ5ZgUSMWxGrhzYPHMVnchOL4FM%3D","consumer-acceptance-of-high-autonomy-ai-assistants-is-driven-by-perceived-benefits-in-online-shopping-settings-characterized-by-scarcity",14,1791495704,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":29,"category_name":40,"create_tm":226},329745,"Computationally reconstructing the evolution of cancer progression risk","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909153163/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=h9OmwNcnjiTRl82zSrwRzVuKWgA%3D","computationally-reconstructing-the-evolution-of-cancer-progression-risk",1789985472]