[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-786482-105":3,"detail-sidebar-cat-0-en-105":78,"doc-similar-786482":128,"doc-detail-786482-en":199},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":9,"keywords":10,"description":11,"schema_data":12,"social_meta":71,"head_meta":73,"extra_data":75,"updated_unix":77},105,"en","debugging-microkernel-with-ai-agents","","An account of using Claude Code and coordinated AI agents to debug GNU Mach’s x86-64 symmetric multiprocessing support in less than a week. It describes seven kernel bugs, agent tools, human collaboration, a SQLite-tracked task runner for background processes, and validation that raised the two-CPU test suite from 1 of 11 passing to 14 of 14. It also reviews execution metrics, subscription and token costs, effective practices, limitations, and prompts, offering practical insight into agentic engineering on a legacy microkernel.",{"@graph":13,"@context":70},[14,33,53],{"@type":15,"itemListElement":16},"BreadcrumbList",[17,22,26,30],{"item":18,"name":19,"@type":20,"position":21},"https://docshare.wps.com","Home","ListItem",1,{"item":23,"name":24,"@type":20,"position":25},"https://docshare.wps.com/document/","Document",2,{"item":27,"name":28,"@type":20,"position":29},"https://docshare.wps.com/document/technology/","Technology",3,{"item":31,"name":9,"@type":20,"position":32},"https://docshare.wps.com/document/debugging-microkernel-with-ai-agents/786482/",4,{"url":31,"name":9,"@type":34,"image":35,"author":40,"headline":9,"publisher":43,"fileFormat":46,"inLanguage":8,"description":11,"dateModified":47,"datePublished":47,"encodingFormat":46,"isAccessibleForFree":48,"interactionStatistic":49},"DigitalDocument",{"url":36,"@type":37,"width":38,"height":39},"https://docshare.wps.com/thumbnails/debugging-microkernel-with-ai-agents/786482.png","ImageObject",300,407,{"name":41,"@type":42},"Ella's little archive","Person",{"url":18,"name":44,"@type":45},"DocShare","Organization","application/pdf","2026-12-04",true,{"@type":50,"interactionType":51,"userInteractionCount":4},"InteractionCounter",{"@type":52},"ViewAction",{"@type":54,"mainEntity":55},"FAQPage",[56,62,66],{"name":57,"@type":58,"acceptedAnswer":59},"What distinguishes an AI agent from a chatbot in this project?","Question",{"text":60,"@type":61},"An agent can use tools to read and edit files, run commands and tests, search code, and interact with debuggers. It observes the results of its actions and chooses what to do next.","Answer",{"name":63,"@type":58,"acceptedAnswer":64},"What did the task runner do?",{"text":65,"@type":61},"It orchestrated multiple AI agents as background processes and tracked their work in SQLite.",{"name":67,"@type":58,"acceptedAnswer":68},"What debugging results did the project report?",{"text":69,"@type":61},"The work found and fixed seven bugs in GNU Mach’s x86-64 SMP support, bringing the two-CPU kernel test suite from 1 of 11 passing to 14 of 14.","https://schema.org",{"og:url":31,"og:type":72,"og:title":9,"og:site_name":44,"og:description":11},"article",{"robots":74,"canonical":31},"index,follow",{"doc_id":76,"site_id":7},786482,1796427244,{"code":4,"msg":79,"data":80},"success",[81,85,89,93,98,102,107,112,117,120,124],{"id":21,"doc_module":4,"doc_module_name":24,"category_name":82,"show_sort_weight":83,"slug":84},"Story & Novel",90,"story-novel",{"id":25,"doc_module":4,"doc_module_name":24,"category_name":86,"show_sort_weight":87,"slug":88},"Literature",80,"literature",{"id":32,"doc_module":4,"doc_module_name":24,"category_name":90,"show_sort_weight":91,"slug":92},"Exam",70,"exam",{"id":94,"doc_module":4,"doc_module_name":24,"category_name":95,"show_sort_weight":96,"slug":97},5,"Comic",60,"comic",{"id":99,"doc_module":4,"doc_module_name":24,"category_name":28,"show_sort_weight":100,"slug":101},6,50,"technology",{"id":103,"doc_module":4,"doc_module_name":24,"category_name":104,"show_sort_weight":105,"slug":106},7,"Healthcare",40,"healthcare",{"id":108,"doc_module":4,"doc_module_name":24,"category_name":109,"show_sort_weight":110,"slug":111},8,"Research & Report",30,"research-report",{"id":113,"doc_module":4,"doc_module_name":24,"category_name":114,"show_sort_weight":115,"slug":116},9,"Religion & Spirituality",20,"religion-spirituality",{"id":115,"doc_module":4,"doc_module_name":24,"category_name":118,"show_sort_weight":115,"slug":119},"World Cup","world-cup",{"id":121,"doc_module":4,"doc_module_name":24,"category_name":122,"show_sort_weight":121,"slug":123},10,"Lifestyle","lifestyle",{"id":125,"doc_module":4,"doc_module_name":24,"category_name":126,"show_sort_weight":94,"slug":127},19,"General","general",{"list":129,"token":10},[130,137,143,150,157,164,171,178,185,192],{"doc_id":131,"doc_title":132,"file_type":133,"home_preview_img_url":134,"slug":135,"view_count":4,"category_name":28,"create_tm":136},786501,"A Guide to Kernel Exploitation","pdf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057398848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=l%2BNN7ZPWreAePp6rkjQSYRl4H%2Bc%3D","a-guide-to-kernel-exploitation",1796427642,{"doc_id":138,"doc_title":139,"file_type":133,"home_preview_img_url":140,"slug":141,"view_count":110,"category_name":28,"create_tm":142},46289,"Windows Internals Part 1 System Architecture Processes Threads Memory Management","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229798728655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=Y3JBycO7%2BMV%2Ff%2BoIq8NUNCaNMoM%3D","windows-internals-part-1-system-architecture-processes-threads-memory-management",1783516607,{"doc_id":144,"doc_title":145,"file_type":133,"home_preview_img_url":146,"slug":147,"view_count":148,"category_name":28,"create_tm":149},422209,"AMD - SUSE Linux Support for Next-Gen Processors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922594605/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=VCE7mGRZEXvq78jw9PbeGYSXQBc%3D","amd-suse-linux-support-for-next-gen-processors",14,1790626513,{"doc_id":151,"doc_title":152,"file_type":133,"home_preview_img_url":153,"slug":154,"view_count":155,"category_name":28,"create_tm":156},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=kwGmSLs1hEWc8xTDjbC2Px%2B2b3s%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",988,1785472614,{"doc_id":158,"doc_title":159,"file_type":133,"home_preview_img_url":160,"slug":161,"view_count":162,"category_name":28,"create_tm":163},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=qiVKSbb%2FcOVUdKHPov%2FhEMTjSbA%3D","the-candlestick-trading-bible-trading-guide",881,1789767270,{"doc_id":165,"doc_title":166,"file_type":133,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":28,"create_tm":170},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=6I2t15TC%2BzOxrbJl7EIy7Hc2t8k%3D","xnx-universal-transmitter-installation-manual",869,1776135954,{"doc_id":172,"doc_title":173,"file_type":133,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":28,"create_tm":177},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=MU7K3bnCNt9n2shvXqXcJEWmD4M%3D","free-fire-proxy-server",574,1776135932,{"doc_id":179,"doc_title":180,"file_type":133,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":28,"create_tm":184},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=CnHSVZ5s%2BeNIp260AP2%2FfDbsDB4%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",516,1786012506,{"doc_id":186,"doc_title":187,"file_type":133,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":28,"create_tm":191},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=4TfuN5Nea2W6yqehcxbwDcxQuXs%3D","tiktok-content-tricks-from-0-to-fyp",500,1776338393,{"doc_id":193,"doc_title":194,"file_type":133,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":28,"create_tm":198},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796432519&Signature=itAIzIss9lVO22Nsz9gH2%2Fb8798%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",484,1790287169,{"code":4,"msg":79,"data":200},{"doc_id":76,"user_id":201,"nickname":41,"user_avatar":202,"doc_module":4,"category_id":99,"category_name":28,"doc_title":9,"doc_description":11,"doc_content":203,"file_id":204,"file_url":205,"file_type":133,"file_size":206,"view_count":4,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":207,"language":208,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":209,"faqs":210,"seo_title":211,"seo_description":11,"update_tm":77,"read_time":212,"preview_page_count":32,"preview_urls":213},2199029853212,"https://us-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Debugging a Microkernel with AI Agents: A Week of Claude Code on GNU Mach SMP  \nBrent Baccala, with Claude Code (Anthropic)  \nFebruary 2026  \nAbstract  \nIn less than a week, we used Claude Code—Anthropic’s agentic command-line tool—to find and fix seven bugs in GNU Mach’s x86 64 SMP support, bringing the kernel test suite from 1/11 passing to 14/14 with two CPUs. Along the way, we built a task runner system to orchestrate multiple AI agents as background processes and tracked their work in SQLite. All of this ran on a $100/month Claude subscription.  \nContents  \n1 What Is an AI Agent? 3  \n1.1 Context Windows and Turns ............................... 3  \n1.2 MCP: Model Context Protocol .............................. 3  \n1.3 Claude Code ........................................ 4  \n2 The Project Context 4  \n2.1 The Baseline: Almost Nothing Worked .......................... 4  \n3 Interactive Sessions: Human and AI Working Together 5  \n4 The Task Runner 5  \n4.1 Architecture ......................................... 6  \n4.2 Iterative Chains ....................................... 6  \n4.3 The--continue Feature .................................. 6  \n5 The GNU Mach Debugging Campaign 7  \n5.1 Bug 1: IDT Vector Corruption (the big one) ....................... 7  \n5.2 Bug 2: spl t Size Mismatch ................................ 7  \n5.3 Bug 3: SWAPGS Sentinel Clobbered ........................... 7  \n5.4 Bug 4: Timer Zero-Initialization ............................. 7  \n5.5 Bug 5: LAPIC Timer Initialization ............................ 8  \n5.6 Bug 6: BSP LAPIC Timer Stops After AP Bringup .................. 8  \n5.7 Bug 7: FP State XSAVE Header ............................. 8  \n5.8 Upstream Validation .................................... 8  \n5.9 Final State ......................................... 9  \n6 Task Execution: The Numbers 9  \n7 Costs and Token Economics 10  \n7.1 The Actual Bill ....................................... 10  \n7.2 Token Composition ..................................... 11  \n8 What Worked and What Didn’t 11  \n8.1 What Worked ........................................ 11  \n8.2 What Didn’t Work ..................................... 11  \n9 Reflections 12  \n10 Epilogue: The Prompts That Made This Paper 12  \n1 What Is an AI Agent?  \nIf you have used ChatGPT, Claude, or similar tools, you have used a large language model (LLM) in its simplest mode: you type a message, it generates a response, you type another message, and so on. The model has no access to your filesystem, cannot run commands, and forgets everything between sessions. It is, in the most literal sense, a chatbot.  \nAn agent is what you get when you give an LLM tools. Instead of just generating text, the model can decide to:  \n❼ Read and write files on disk  \n❼ Execute shell commands (compile code, run tests, use git)  \n❼ Search codebases with grep and glob patterns  \n❼ Connect to debuggers (GDB, via an MCP server)  \n❼ Search the web  \n❼ Send emails  \nThe key word is decide. The model sees the current state of the conversation, the tool results from its previous actions, and chooses what to do next. It can read a file, notice a bug, edit the file, recompile, run the tests, see a failure, read the error message, and try a different fix—all without human intervention. This loop of observe → reason → act → observe is what makes it “agentic.”  \n1.1 Context Windows and Turns  \nEvery LLM has a context window—the maximum amount of text it can process at once. For Claude Opus, this is roughly 200,000 tokens (about 150,000 words) . The context window contains the entire conversation: every message you have sent, every response the model has generated, and every tool result (file contents, command output, search results) .  \nEach round trip—you (or the system) send a message, the model responds and possibly uses tools—is called a turn. As the conversation grows, each turn sends more cached context to the API. Eventually, the system automatically compresses older messages to s","cbCaisrt1ac3WwEe","https://ap.wps.com/l/cbCaisrt1ac3WwEe",201863,13,"English","# What Is an AI Agent?\n## Context Windows and Turns\n## MCP: Model Context Protocol\n## Claude Code\n# The Project Context\n## The Baseline: Almost Nothing Worked\n# Interactive Sessions: Human and AI Working Together\n# The Task Runner\n## Architecture\n## Iterative Chains\n## The --continue Feature\n# The GNU Mach Debugging Campaign\n## Seven Bugs and Upstream Validation\n## Final State\n# Task Execution: The Numbers\n# Costs and Token Economics\n## The Actual Bill\n## Token Composition\n# What Worked and What Didn’t\n## What Worked\n## What Didn’t Work\n# Reflections\n# Epilogue: The Prompts That Made This Paper","[{\"question\":\"What distinguishes an AI agent from a chatbot in this project?\",\"answer\":\"An agent can use tools to read and edit files, run commands and tests, search code, and interact with debuggers. It observes the results of its actions and chooses what to do next.\"},{\"question\":\"What did the task runner do?\",\"answer\":\"It orchestrated multiple AI agents as background processes and tracked their work in SQLite.\"},{\"question\":\"What debugging results did the project report?\",\"answer\":\"The work found and fixed seven bugs in GNU Mach’s x86-64 SMP support, bringing the two-CPU kernel test suite from 1 of 11 passing to 14 of 14.\"}]","debugging-microkernel-with-ai-agents | PDF",33,[214,218,222,226],{"page_no":21,"url":215,"width":216,"height":217},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/a3caf38ab399d18e5df4cb4775d9e60e.webp",983,1272,{"page_no":25,"url":219,"width":220,"height":221},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/6e60a94c9b2ef09ee81b9e51bdfaca1f.webp",982,1270,{"page_no":29,"url":223,"width":224,"height":225},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/3c8304529b2d8ebd7bf0054fe32cc137.webp",981,1269,{"page_no":32,"url":227,"width":228,"height":229},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/b06008ab735a6029118abbc268ad491f.webp",980,1268]