[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-699339-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-699339-en":130,"doc-similar-699339":166},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems-699339","Dive into Claude Code - The Design Space of Today’s and Future AI Agent Systems","","Claude Code is an agentic coding tool that executes shell commands, edits files, and calls external services on a user’s behalf. The study derives its architecture from publicly available TypeScript source code and compares it with OpenClaw, another AI agent system addressing similar design questions in a different deployment setting. It links five human values to thirteen design principles through concrete implementation choices across permissions, context management, extensibility, delegation, and session storage. The paper proposes six open research directions grounded in empirical and policy literature.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems-699339/699339/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems-699339/699339.png","ImageObject",300,407,{"name":42,"@type":43},"DoDO","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does Claude Code do as an agentic coding tool?","Question",{"text":62,"@type":63},"Claude Code can run shell commands, edit files, and call external services on behalf of the user while iterating until the task is done.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the study analyze Claude Code’s architecture?",{"text":67,"@type":63},"It performs source-level analysis of the publicly available TypeScript implementation and maps design choices to stated human values and design principles.",{"name":69,"@type":60,"acceptedAnswer":70},"What is the purpose of comparing Claude Code with OpenClaw?",{"text":71,"@type":63},"The comparison shows how the same recurring design questions lead to different architectural answers under different deployment contexts, highlighting common principles and key differences.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},699339,1794464930,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":96,"preview_urls":145},962093270745,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","arXiv :2604 . 14228v1 [ cs . SE] 14 Apr 2026  \nDive into Claude Code: The Design Space of Today’sand Future AI Agent Systems  \nJiacheng Liu 1 , Xiaohan Zhao 1 , Xinyi Shang 1 ,2 , Zhiqiang Shen 1 ,†  \n1VILA Lab, Mohamed bin Zayed University of Artificial Intelligence, 2 University College London †Corresponding author  \nClaude Code is an agentic coding tool that can run shell commands, edit files, and call external services on behalf of the user. This study describes its comprehensive architecture by analyzing the publicly available TypeScript source code a and further comparing it with OpenClaw, an independent opensource AI agent system that answers many of the same design questions from a different deployment context. Our analysis identifies five human values, philosophies, and needs that motivate the architecture (human decision authority, safety and security, reliable execution, capability amplification, and contextual adaptability) and traces them through thirteen design principles to specific implementation choices. The core of the system is a simple while-loop that calls the model, runs tools, and repeats. Most of the code, however, lives in the systems around this loop: a permission system with seven modesand an ML-based classifier, a five-layer compaction pipeline for context management, four extensibility mechanisms (MCP, plugins, skills, and hooks), a subagent delegation and orchestration mechanism, and append-oriented session storage. A comparison with OpenClaw, a multi-channel personal assistant gateway, shows that the same recurring design questions produce different architectural answers when the deployment context changes: from per-action safety evaluation to perimeter-level access control, from a single CLI loop to an embedded runtime within a gateway control plane, and from context-window extensions to gateway-wide capability registration. We finally identify six open design directions for future agent systems, grounded in recent empirical, architectural, and policy literature. Our GitHub is available at: [https://github.com/VILA-Lab/Dive-into-Claude-Code](https://github.com/VILA-Lab/Dive-into-Claude-Code).  \nCorrespondence: Zhiqiang Shen ([Zhiqiang.Shen@mbzuai.ac.ae](Zhiqiang.Shen@mbzuai.ac.ae))  \nav2.1.88, link. Disclaimer: All materials used in this work are obtained from publicly available online sources. We have not used any private, confidential, or unauthorized materials, and we do not intend to infringe any copyright or intellectual property rights. The original intellectual property rights to the source code belong to Anthropic.  \n1 Introduction  \nAI-assisted software development has evolved from autocomplete-style tools such as GitHub Copilot (Chenet al. , 2021), through IDE-integrated assistants like Cursor (Cursor, 2026), to fully agentic systems that autonomously plan multi-step modifications, execute shell commands, read and write files, and iterate on their own outputs. Claude Code (Anthropic, 2026a) is an agentic coding tool released by Anthropic (Anthropic, 2026c) . Its official documentation describes an “agentic loop” that plans and executes actions toward accomplishing a goal and can call tools, evaluate results, and continue until the task is done 1. This shift from suggestion to autonomous action introduces architectural requirements that have no counterpart in completion-based tools. These requirements define a design space, a set of recurring questions spanning topics such as safety, context management, extensibility, and delegation that every coding agent must navigate. This study uses source-level analysis of Claude Code to show how one production system answers these questions.  \nDespite growing adoption, Anthropic publishes user-facing documentation for Claude Code but not detailed architectural descriptions. This study uses source code analysis to describe architectural design decisions. Anthropic’s internal survey of 132 engineers and researchers (Huang et al. , 2025) reports that","cbCaiaRjG2hxWnDT","https://ap.wps.com/l/cbCaiaRjG2hxWnDT","pdf",1390792,46,"English","# Introduction\n## Design-space analysis\n## Architectural contrast with OpenClaw","[{\"question\":\"What does Claude Code do as an agentic coding tool?\",\"answer\":\"Claude Code can run shell commands, edit files, and call external services on behalf of the user while iterating until the task is done.\"},{\"question\":\"How does the study analyze Claude Code’s architecture?\",\"answer\":\"It performs source-level analysis of the publicly available TypeScript implementation and maps design choices to stated human values and design principles.\"},{\"question\":\"What is the purpose of comparing Claude Code with OpenClaw?\",\"answer\":\"The comparison shows how the same recurring design questions lead to different architectural answers under different deployment contexts, highlighting common principles and key differences.\"}]","Dive into Claude Code - The Design Space of Today’s and Future AI Agent Systems | PDF",116,[146,150,154,158,162],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1f6f5dc64544c3b8b217ee5d7e5412c4.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0c026233277303088526f11240a5fc01.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7894ee7259f3cbf39ac9aed83944aaab.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c3aee4da358798f239826cb271b07e39.webp",980,1268,{"page_no":96,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/aa52a1dd71c76fb33db1cf801678e9e6.webp",979,1267,{"list":167,"token":11},[168,173,178,184,190,196,202,208,215,222],{"doc_id":169,"doc_title":10,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":101,"category_name":29,"create_tm":172},696838,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009178488/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=tl77IPW63zx%2BDnX2nyvXeaZ21e8%3D","dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems",1794435029,{"doc_id":174,"doc_title":10,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":101,"category_name":29,"create_tm":177},701273,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012064962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=77SmjrGXfwJdseYYBWso0t86mSM%3D","dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems-701273",1794525292,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":33,"category_name":29,"create_tm":183},732954,"Modern AI Systems: Agents and System Optimizations - Agent From a User’s Perspective I - How Claude Code Works","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781462/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=Tpr4n1IoOZkYhhoVjtb%2FXNFekT4%3D","modern-ai-systems-agents-and-system-optimizations-agent-from-a-users-perspective-i-how-claude-code-works",1795383063,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":30,"category_name":29,"create_tm":189},733024,"Agentic Workflows for RTL code Generation - Graduation Session October 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031782550/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=ks%2BZ36DcNf7Z%2FpBgyo8Xul4Ca%2Fk%3D","agentic-workflows-for-rtl-code-generation-graduation-session-october-2026",1795383350,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":33,"category_name":29,"create_tm":195},693262,"Defensible Design for OpenClaw - Securing Autonomous Tool-Invoking Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005110978/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=psnymF0nBFuabr3zMsymR6BXGL4%3D","defensible-design-for-openclaw-securing-autonomous-tool-invoking-agents",1794254124,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":30,"category_name":29,"create_tm":201},732949,"AGENTPACK - A Dataset of Code Changes, Co-Authored by Agents and Humans","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031414501/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=8MmL0PqPRmmjRJgnp5H2o6Dvf2U%3D","agentpack-a-dataset-of-code-changes-co-authored-by-agents-and-humans",1795383050,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":111,"category_name":29,"create_tm":207},693263,"OpenClaw: We Are Not Ready - On the Uncontrolled Rise of Autonomous AI Agents, the Asymmetry of Creation and Governance, and the Geopolitics of Inaction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005111255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=dcHC5KHtOkIbWFEvHrxAh%2BtobzY%3D","openclaw-we-are-not-ready-on-the-uncontrolled-rise-of-autonomous-ai-agents-the-asymmetry-of-creation-and-governance-and-the-geopolitics-of-inaction",1794254165,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":29,"create_tm":214},81821,"Janus: a Playground for User-Involved Agentic Permission Management","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808647346/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=VGCnhhbZB%2FxZTijohFFYJXz%2BpJU%3D","janus-a-playground-for-user-involved-agentic-permission-management",23,1784176371,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":29,"create_tm":221},82429,"LLM for EDA in Front-End Design: Challenges and Opportunities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808741255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=d4hMrzCPYqaP868X4fIHT%2Fzjg%2BM%3D","llm-for-eda-in-front-end-design-challenges-and-opportunities",34,1784180333,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":26,"category_name":29,"create_tm":227},760815,"Trojan’s Whisper - Stealthy Manipulation of OpenClaw through - Injected Bootstrapped Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044530720/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230859&Signature=tHNZVQa2Cryio9ycuTAN%2FO8s%2Bd4%3D","trojans-whisper-stealthy-manipulation-of-openclaw-through-injected-bootstrapped-guidance",1795910027]