[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-733010-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-733010-en":130,"doc-similar-733010":175},{"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","agent-from-a-users-perspective-ii-multi-agent-and-best-practice","Agent From a User’s Perspective II - Multi-agent and Best Practice","","Modern AI Systems lecture notes explain agent loops, state management, and context-as-working-memory, where each user prompt, LLM output, and tool result is appended. It contrasts persistent agent memory across sessions with auto memory mechanisms. Case studies show how multiple agents share the same model and tools while differing only in instructions, leading to clearer workflows and validated outcomes through design approval, test-driven build, code review, and verification before completion.",{"@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/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/agent-from-a-users-perspective-ii-multi-agent-and-best-practice/733010/",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/agent-from-a-users-perspective-ii-multi-agent-and-best-practice/733010.png","ImageObject",300,407,{"name":42,"@type":43},"Maya Linwood","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-11-22",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},"How does agent state management work in this material?","Question",{"text":62,"@type":63},"Each user prompt, LLM response, and tool call result is appended to the agent’s working context. This creates context-as-working-memory that supports iterative reasoning.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What is the difference between context-as-working-memory and agent memory?",{"text":67,"@type":63},"Context-as-working-memory is built from the current interaction steps, while agent memory persists across sessions.",{"name":69,"@type":60,"acceptedAnswer":70},"How does Superpowers achieve “same model, different workflow”?",{"text":71,"@type":63},"Both agents use the same model and tools; only their instructions differ. The workflow includes clarification, design approval, plan writing, test-driven build, review, and verified completion.","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},733010,1795383315,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,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":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",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":101,"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":110,"preview_urls":145},962084928432,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Modern AI Systems: Agents and System Optimizations  \nAgent From a User’s Perspective II: Multi-agent and Best Practice  \nJuncheng Yang  \nUpdate and Reminder  \n• Assignment 1 due  \n• Assignment 1 sharing signup  \n• Add me and TFs to your repo  \nNew TF: Charles Wang  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 2  \nRecap  \n• Agent loops  \n• State management  \n• context as working memory: each user prompt, LLM response, tool call result is appended  \n• agent memory: persistent across sessions  \n• [CLAUDE. md](CLAUDE. md) ([AGENTS.md](AGENTS.md) )  \n• auto memory  \n• Tools  \n• built-in tools  \n• extending Claude Code capability: skill, MCP, hook, plugin  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 3  \nPlan for Today  \n• Case studies: Superpowers and Caveman  \n• Become a 100x researcher and engineer with multiple agents  \n• Programming / Software 3.0: how programming has evolved  \n• How people use OpenAI Codex  \n• two reports from June 2026 and September 2026  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 4  \n/plugin install superpowers@claude-plugins-official  \nCase Study: Superpowers  \nA software-development plugin  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) [https://github.com/obra/superpowers](https://github.com/obra/superpowers) 5  \nSame Model, Different Workflow  \nHUMAN  \nPLAN  \nBUILD  \nSHIP  \n0—Human types the prompt  \n1—Clarify the problem   \n 2—Approve a design   \n3—Write a detailed plan  \n4—Test-driven build  \n5—Review and verify  \n6—Finish or integrate the branch   \nBoth agents share the same model and the same tools—only the instructions differ  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 6  \nOPTIONAL—extra reading, not required  \nNine Skills in Superpowers  \n\n| Skill | Responsibility |\n| --- | --- |\n| using-superpowers | Rules for discovering and invoking skills |\n| brainstorming | Turns a request into an approved design |\n| writing-plans | Decomposes the design into concrete tasks |\n| using-git-worktrees | Creates an isolated workspace |\n| test-driven-development | Enforces red, green, refactor |\n| systematic-debugging | Finds root causes before proposing fixes |\n| requesting-code-review | Reviews implementation against the plan |\n| verification-before-completion | Requires evidence before reporting success |\n| finishing-a-development-branch | Merge, pull request, retention, or cleanup |\n\n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 7  \nSuperpowers Architecture  \nRepository layout  \nsuperpowers/  \n├── .claude-plugin/ plugin.json  \n├── hooks/ hooks.json  \n│ session-start  \n├── skills/  \n│ using-superpowers/  \n│ brainstorming/│ writing-plans/  \n│ test-driven-development/└── tests/  \nComponent map  \n\n| Superpowers plugin\u003Cbr>|  |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- |\n|  |  |  |  |  |  |  |\n| Plugin metadata |  | Session hook |  |  | Skill library |  |\n\nAgent behavior  \nA plugin is the distribution container—skills and hooks supply the behavior  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 8  \nAnatomy of a Skill  \nDirectory  \nskills/  \n└── brainstorming/ [SKILL.md](SKILL.md)[ ](SKILL.md)[visual-companion.md](visual-companion.md)[ ](visual-companion.md)scripts  \nFront matter is metadata. The body is the procedure the agent follows.  \n[SKILL.md](SKILL.md) (simplified)  \n---  \nname: brainstorming  \ndescription: Use before creative work.---  \n\\#\\# Workflow  \n1. Inspect the project  \n2. Classify the scope  \n3. Clarify requirements  \n4. Compare approaches  \n5. Present a design  \n6. Wait for user approval  \n7. Invoke writing-plans  \n Harvard Madsys · [course.agentic-system.org](course.agentic-system.org) 9  \n[What a SKILL.md](What a SKILL.md) Contains  \nSix components of a skill file  \n\n| Component | Function |\n| --- | --- |\n| name | Stable identifier |\n| description | When the skill applies |\n| Instructions","cbCaikGzEugRrJkc","https://ap.wps.com/l/cbCaikGzEugRrJkc","pdf",972677,72,"English","# Recap\n## Agent loops\n## State management and context as working memory\n## Agent memory and auto memory\n## Tools and extending Claude Code capability\n# Plan for Today\n## Case studies: Superpowers and Caveman\n## Multi-agent engineering approach\n## Programming / Software 3.0 and OpenAI Codex usage\n# Case Study: Superpowers\n## Same model, different workflow\n## Optional extra reading: Nine Skills in Superpowers\n# Superpowers Architecture\n## Repository layout and component map\n## Agent behavior and plugin as distribution container\n# Anatomy of a Skill\n## Skill directory and front matter\n## SKILL.md components and workflow","[{\"question\":\"How does agent state management work in this material?\",\"answer\":\"Each user prompt, LLM response, and tool call result is appended to the agent’s working context. This creates context-as-working-memory that supports iterative reasoning.\"},{\"question\":\"What is the difference between context-as-working-memory and agent memory?\",\"answer\":\"Context-as-working-memory is built from the current interaction steps, while agent memory persists across sessions.\"},{\"question\":\"How does Superpowers achieve “same model, different workflow”?\",\"answer\":\"Both agents use the same model and tools; only their instructions differ. The workflow includes clarification, design approval, plan writing, test-driven build, review, and verified completion.\"}]","Agent From a User’s Perspective II - Multi-agent and Best Practice | PDF",181,[146,150,153,157,160,164,168,171],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/bfcb893972cf45845faad84039435967.webp",983,552,{"page_no":26,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/b2d8c23604e629220a43d32c0857d15a.webp",982,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/9821470cbc454347c8b9f4e04249bf05.webp",981,551,{"page_no":33,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/abbaf7d8cd1638054c0a16d634fc0a50.webp",980,{"page_no":96,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/4d121ae4233d41d915eeb67422c0068b.webp",979,550,{"page_no":101,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/7102f97ec82b0f074ab2781a86ff3bde.webp",978,549,{"page_no":105,"url":169,"width":170,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/869eea65fc76141315ae5512908a3597.webp",977,{"page_no":110,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/689bd58fc632406b4836b5461f33a1bf.webp",976,548,{"list":176,"token":11},[177,183,189,196,202,208,214,221,228,235],{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":112,"category_name":29,"create_tm":182},86537,"ToolAtlas Learning Once Reusing Everywhere with Tool Side Memory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809425789/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=8OyzXdFTjjCblvz4EIHf%2FVpXZoM%3D","toolatlas-learning-once-reusing-everywhere-with-tool-side-memory",1784212484,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":33,"category_name":29,"create_tm":188},733000,"Build AI Multi-Agent with Claude Code - Course Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031415117/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=EZOaXbB1JJXAlVekjgzDPCGUEPA%3D","build-ai-multi-agent-with-claude-code-course-outline",1795383252,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":29,"create_tm":195},682227,"The Comprehensive Guide to AI Agent Engineering - March 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999428213/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=U6yaphNRjQ0mRtpUrdaCEyGtCpA%3D","the-comprehensive-guide-to-ai-agent-engineering-march-2026",14,1793963049,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":194,"category_name":29,"create_tm":201},701572,"Building Production-Ready AI Agents with LlamaIndex - From First Query to Multi-Agent Systems - A Practical Guide for Python Developers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011609397/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=gZIYIj5Y11GPV%2FR3Uez75ZDnSHA%3D","building-production-ready-ai-agents-with-llamaindex-from-first-query-to-multi-agent-systems-a-practical-guide-for-python-developers",1794533229,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":33,"category_name":29,"create_tm":207},682046,"Agent Tooling - Memory and Context - CSE 291A - Lecture 7","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999341346/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=oVgsrZUW3wXldHzmGdNYyKFXTw8%3D","agent-tooling-memory-and-context-cse-291a-lecture-7",1793958916,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":105,"category_name":29,"create_tm":213},692911,"The OpenClaw Playbook - A Prompt-First Guide to Making Your Agent Useful","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004235900/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=6tobVChPf1roKnekUajN8nf4YEM%3D","the-openclaw-playbook-a-prompt-first-guide-to-making-your-agent-useful",1794242658,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":29,"create_tm":220},82751,"The Enterprise AI Governance Layer as a Control Plane for Trusted Enterprise Intelligence AGL-1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808907491/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=msxstFOlvU9AfsuF56eTI8O7SDo%3D","the-enterprise-ai-governance-layer-as-a-control-plane-for-trusted-enterprise-intelligence-agl-1",39,1784182688,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":29,"create_tm":227},84297,"Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809159640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=qay2gW2FKdEVfW35yylf%2BqMyzP8%3D","tool-making-and-self-evolving-llm-agents-in-low-latency-systems",25,1784194643,{"doc_id":229,"doc_title":230,"file_type":137,"home_preview_img_url":231,"slug":232,"view_count":233,"category_name":29,"create_tm":234},85611,"SkillGuard A Permission-Centric Framework for Agent Skill Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809331721/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=VT5jXSH9HZ3lN0W3u9VMnTTAieo%3D","skillguard-a-permission-centric-framework-for-agent-skill-security",21,1784204919,{"doc_id":236,"doc_title":237,"file_type":137,"home_preview_img_url":238,"slug":239,"view_count":30,"category_name":29,"create_tm":240},732947,"How to AI an AI for Almost Anything - Lecture 5 - Harness Engineering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781390/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109299&Signature=a8Bk1DeXB6tHwji%2BzT3AUX8hW%2Fo%3D","how-to-ai-an-ai-for-almost-anything-lecture-5-harness-engineering",1795383041]