[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-696838-105":59,"doc-detail-696838-en":130,"doc-similar-696838":166},{"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","dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems","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 analyzes its publicly available TypeScript source architecture and compares it with OpenClaw from a different deployment context. It extracts five motivating human values and traces them through thirteen design principles to concrete implementation choices, including permission modes, context compaction, extensibility mechanisms, subagent orchestration, and session storage. It further identifies six open directions for future agent systems.",{"@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/dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems/696838/",{"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/dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems/696838.png","ImageObject",300,407,{"name":92,"@type":93},"Aldword","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-24","2026-11-11",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is Claude Code, according to the document?","Question",{"text":112,"@type":113},"Claude Code is an agentic coding tool that can run shell commands, edit files, and call external services for the user. It operates through an agentic loop that plans, executes tools, and repeats until the task is done.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the study analyze Claude Code’s architecture?",{"text":117,"@type":113},"The study performs source-level analysis of Claude Code by examining its publicly available TypeScript code. It traces extracted human values through design principles to specific implementation choices across multiple subsystems.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the purpose of comparing Claude Code with OpenClaw?",{"text":121,"@type":113},"The comparison shows how similar recurring design questions can yield different architectural answers when deployment context changes. It contrasts aspects such as safety posture, runtime structure, and context or capability registration across defined design dimensions.","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},696838,1794435029,{"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":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":24,"preview_urls":145},2336478940917,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Dive 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 about 27% of Claude Code-assisted tasks were w","cbCainht9Ru9tfYE","https://ap.wps.com/l/cbCainht9Ru9tfYE","pdf",1182063,46,"English","# Introduction\n## Design-space analysis\n## Architectural contrast with OpenClaw\n## Open directions for future agent systems","[{\"question\":\"What is Claude Code, according to the document?\",\"answer\":\"Claude Code is an agentic coding tool that can run shell commands, edit files, and call external services for the user. It operates through an agentic loop that plans, executes tools, and repeats until the task is done.\"},{\"question\":\"How does the study analyze Claude Code’s architecture?\",\"answer\":\"The study performs source-level analysis of Claude Code by examining its publicly available TypeScript code. It traces extracted human values through design principles to specific implementation choices across multiple subsystems.\"},{\"question\":\"What is the purpose of comparing Claude Code with OpenClaw?\",\"answer\":\"The comparison shows how similar recurring design questions can yield different architectural answers when deployment context changes. It contrasts aspects such as safety posture, runtime structure, and context or capability registration across defined design dimensions.\"}]","Dive into Claude Code - The Design Space of Today’s and Future AI Agent Systems | PDF",116,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/54054ef0e88f3fc24ed28fa6a3b0c449.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/713f401a781bd4819b2764d45e2c1eac.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/4b986e1f95a30ca157250c80cf0bbfd2.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/53c5f8088f28e6f3094c78ad06a2a11b.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/92ff324b32c1a41c20cb23d1d4ffc041.webp",979,1267,{"list":167,"token":66},[168,173,178,184,191,198,204,210,216,223],{"doc_id":169,"doc_title":65,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":14,"category_name":40,"create_tm":172},699339,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009991477/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=zl4RPfcivB2ksohqSxgQ1BirTrI%3D","dive-into-claude-code-the-design-space-of-todays-and-future-ai-agent-systems-699339",1794464930,{"doc_id":174,"doc_title":65,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":29,"category_name":40,"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=1796222339&Signature=SJt7SOQz03InS0WbfIg9T9Uu12g%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":19,"category_name":40,"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=1796222339&Signature=5hJZJ2wYy%2B1nQ92lGTO%2F6dxobDg%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":189,"category_name":40,"create_tm":190},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=1796222339&Signature=Le%2B0tcgCqkbwtHbmJXbqyUq8Rko%3D","compactionrl-reinforcement-learning-with-context-compaction-for-long-horizon-agents",38,1784191579,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},86236,"TOFU: White-Box, Token-Efficient Agent Harness for Researchers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809513357/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=ERy45r09sr0AmMK0%2Fi%2FPD4CI%2FV4%3D","tofu-white-box-token-efficient-agent-harness-for-researchers",22,1784209704,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":39,"category_name":40,"create_tm":203},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=1796222339&Signature=9xHGMThQvjC56r8wdQ%2FHdSKg%2Bz0%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":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":52,"category_name":40,"create_tm":209},698659,"System Card: Claude Sonnet 4.5 - Changelog - October 10, 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010391369/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=%2F7xiKKOShFCKvxsSbD%2FpQgWdO9Y%3D","system-card-claude-sonnet-45-changelog-october-10-2025",1794454323,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":34,"category_name":40,"create_tm":215},687632,"Claude Opus 4.6 System Card - System","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001263023/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=9fbq9h90pVUtlMMhp6k1%2BdkUY8U%3D","claude-opus-46-system-card-system",1794084365,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":40,"create_tm":222},82235,"Scoped Verification for Reliable Long-Horizon Agentic Context Evolution under Distribution Shift","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808724140/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=ETcnzpMeBEBo7DT9LAwH2HQT9fw%3D","scoped-verification-for-reliable-long-horizon-agentic-context-evolution-under-distribution-shift",31,1784179024,{"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},86569,"Agentic Skill Optimization over Lie Algebroids","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809427915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222339&Signature=pfJ6GfrcEwSufEVi7OCGM9kHZyc%3D","agentic-skill-optimization-over-lie-algebroids",24,1784212693]