[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-759781-105":59,"doc-detail-759781-en":133,"doc-similar-759781":164},{"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":126,"head_meta":128,"extra_data":130,"updated_unix":132},105,"en","bring-your-own-model-github-copilot-with-microsoft-foundry-openrouter-and-local-llms","Bring Your Own Model - GitHub Copilot with Microsoft Foundry, OpenRouter and Local LLMs","","An in-depth talk on agentic coding behind GitHub Copilot, explaining how a prompt engages an AI agent that plans steps, interacts with code, runs builds and tests, and returns for feedback. It clarifies the harness concept—system prompts, tools, agent loop, and context management—and compares model choices by price, capability, and decision authority. Practical guidance covers routing to your own model, including OpenRouter, local LLMs, and Microsoft Foundry, plus a token-and-billing view of input, output and caching.",{"@graph":69,"@context":125},[70,84,104],{"@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":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/bring-your-own-model-github-copilot-with-microsoft-foundry-openrouter-and-local-llms/759781/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/bring-your-own-model-github-copilot-with-microsoft-foundry-openrouter-and-local-llms/759781.png","ImageObject",300,407,{"name":92,"@type":93},"Indoniesian Boy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117,121],{"name":108,"@type":109,"acceptedAnswer":110},"What is agentic coding in the Copilot context?","Question",{"text":111,"@type":112},"You describe the goal in a prompt, and an AI agent plans steps, reads code, edits files, runs builds and tests, and asks for feedback when needed.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"What is the harness and why does it matter?",{"text":116,"@type":112},"The harness is everything built around the model—system prompt, tool definitions, an agent loop, and context management—so you communicate with the harness rather than directly with the model.",{"name":118,"@type":109,"acceptedAnswer":119},"How should you choose between small and large models?",{"text":120,"@type":112},"Small models fit routine tasks, while large models help with planning and hard bugs. Larger models cost more, and failed attempts can make input re-spending expensive.",{"name":122,"@type":109,"acceptedAnswer":123},"How do tokens and caching affect costs?",{"text":124,"@type":112},"Input typically dominates credits, while output is pricier per token but lower volume. Cache read/write reduces cost within a session, with cache TTL shown as 300 seconds.","https://schema.org",{"og:url":83,"og:type":127,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":129,"canonical":83},"index,follow",{"doc_id":131,"site_id":62},759781,1795894679,{"code":4,"msg":5,"data":134},{"doc_id":131,"user_id":135,"nickname":92,"user_avatar":136,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":137,"file_id":138,"file_url":139,"file_type":140,"file_size":141,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":142,"language":143,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":144,"faqs":145,"seo_title":146,"seo_description":67,"update_tm":132,"read_time":147,"preview_page_count":19,"preview_urls":148},962090760608,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","A I T RA NSLATE D · original in German  \nBring Your Own Model: GitHub Copilot with Microsoft Foundry,  \nOpenRouter and Local LLMs  \nDr. Matthias Liebeck  \nAzure Cloud Native Cologne · October 13, 2026  \n◆ INTRO  \nAbout me: Matthias Liebeck  \n● Senior Solution Architect in Düsseldorf, focused on . NET, C\\# and Azure  \n● Software developer since 2009, C\\# since 2006  \n● 2009 – 2015: Studied computer science & mathematics  \n● 2018: PhD in computer science on natural language processing / AI  \n● Organizer of the Azure Düsseldorf Meetup, speaker on Azure & agentic coding  \n● [GitHub Copilot Newsletter: ghcp.liebeck.io](GitHub Copilot Newsletter: ghcp.liebeck.io)  \nGitHub Copilot Newsletter  \n2  \n◆ OVERVIEW  \nToday's flight plan  \n1 Intro: agentic coding and the harness  \n2 Why there are different models, and who picks them  \n3 Several routes to your own model, including OpenRouter and local  \n4 Microsoft Foundry in detail  \n5 Decision guide and wrap-up  \nTonight's question: Who decides which model runs behind your Copilot?  \n◆ GETTING STARTED  \n✋ Who knows what agentic coding is?  \nYou describe the goal of a task as a prompt in a chat window. An AI agent plans the steps, reads your code, changes files, runs builds and tests, and checks back when it needs feedback. Not autocomplete, but delegated work.  \nGitHub Copilot GitHub's coding agent – in the IDE, the CLI and its own app Claude Code Anthropic's coding agent – terminal, IDE integration and desktop Codex OpenAI's coding agent – cloud, CLI and IDE extension  \n◆ GETTING STARTED  \n✋ Who uses agentic coding?✋ And with what?  \nGitHub Copilot  \nCodex  \nClaude Code  \nsomething else  \n◆ GETTING STARTED  \n✋ Who knows what a harness is?  \nThe harness is everything a coding agent builds around the model: system prompt, tools, agent loop and context management. You never talk to the model directly – always to the harness.  \nYou  \nyour prompt  \nThe harness  \nSystem prompt · tool definitions Agent loop · context assembly · caching  \nModel  \nGPT, Claude, Gemini,    \nWe'll see what the harness costs in a moment, with real numbers.  \n◆  \nWhy are there different models?  \nPrice, capability, and who picks  \n7  \n◆ MODELS  \nModels differ, in price too  \nsmall, fast, cheap large, thorough, expensive  \nGPT-6 Luna  \n$0.10 / $0.50  \nGPT-5.6 Luna  \n$0.20 / $1.20  \nClaude Sonnet 5.5  \n$2.00 / $10.00  \nKimi K3  \n$3.00 / $15.00  \nClaude Opus 5.5  \n$4.00 / $20.00  \n• A factor of 40 between the cheapest and the most expensive model, for input and output alike  \n• Large models are usually stronger at planning and hard bugs, small ones are faster  \n• Context window, provider and data location differ as well  \n• But: the cheapest model is not automatically the cheapest coding agent. Every failed attempt costs input again  \n• Input / output in $ per 1M tokens, GitHub Copilot, as of Oct 11, 2026  \n◆ MODELS  \nWhich task, which model?  \n1 Routine: a small model  \nCommit messages, translations, documentation drafts  \n2 Planning and hard bugs: a large model  \nThis is where thorough reasoning pays off  \n3 Review: a different model  \nDifferent model family, different blind spots. /rubber-duck does exactly that  \n4 Bulk work: the unit price matters  \nMany small, uniform tasks  \n◆ TOKENS & HARNESS  \nToken types & token-based billing  \nP O R TA B L E C O N C E P T  \n\n| Token type | What is it? | Why does it matter? |\n| --- | --- | --- |\n| Input | Everything the model reads: harness, context, your prompt | 86% of your credits buy input – not output |\n| Output | Everything the model writes: answers, code, tool calls | More expensive per token, but small in volume |\n| Cache Read | Already cached context is re-read cheaply | The cache pays off within a session |\n| Cache Write | Context is written to the cache for reuse | Cache TTL: 300 seconds |\n\n▪ 86% of credits buy input – across all models and tasks (157 runs, 2 production repos)  \n▪ Every new session pays the baseline. Within a session, the cache pays off.  \nYou  \nyour pr","cbCainGxMNl0oyXC","https://ap.wps.com/l/cbCainGxMNl0oyXC","pdf",727586,37,"English","# INTRO\n## About me\n## Overview\n# GETTING STARTED\n## What is agentic coding?\n## Who uses agentic coding?\n## What is a harness?\n# MODELS\n## Why are there different models?\n## Which task, which model?\n# TOKENS & HARNESS","[{\"question\":\"What is agentic coding in the Copilot context?\",\"answer\":\"You describe the goal in a prompt, and an AI agent plans steps, reads code, edits files, runs builds and tests, and asks for feedback when needed.\"},{\"question\":\"What is the harness and why does it matter?\",\"answer\":\"The harness is everything built around the model—system prompt, tool definitions, an agent loop, and context management—so you communicate with the harness rather than directly with the model.\"},{\"question\":\"How should you choose between small and large models?\",\"answer\":\"Small models fit routine tasks, while large models help with planning and hard bugs. Larger models cost more, and failed attempts can make input re-spending expensive.\"},{\"question\":\"How do tokens and caching affect costs?\",\"answer\":\"Input typically dominates credits, while output is pricier per token but lower volume. Cache read/write reduces cost within a session, with cache TTL shown as 300 seconds.\"}]","Bring Your Own Model - GitHub Copilot with Microsoft Foundry, OpenRouter and Local LLMs | PDF",93,[149,153,157,160],{"page_no":8,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/0d0e9b069b7e96a4f31ca56c1430ae68.webp",983,552,{"page_no":14,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/439bdd1f5e660c368697197fa692f547.webp",982,551,{"page_no":81,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/fa9af41ec123f77b983777219d0829b2.webp",981,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/63ce9effe0cde985e1049e4746928675.webp",980,550,{"list":165,"token":66},[166,172,178,184,190,197,203,209,215,221],{"doc_id":167,"doc_title":168,"file_type":140,"home_preview_img_url":169,"slug":170,"view_count":81,"category_name":30,"create_tm":171},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=1796110019&Signature=7TdjWMgMu9lRIyMxMmRVssK2kkQ%3D","how-to-ai-an-ai-for-almost-anything-lecture-5-harness-engineering",1795383041,{"doc_id":173,"doc_title":174,"file_type":140,"home_preview_img_url":175,"slug":176,"view_count":14,"category_name":30,"create_tm":177},732950,"Building an Agent Harness - How to Build Your Own","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781394/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=kJbQp1SwOt1lAMvZ7bodGzYwRDs%3D","building-an-agent-harness-how-to-build-your-own",1795383050,{"doc_id":179,"doc_title":180,"file_type":140,"home_preview_img_url":181,"slug":182,"view_count":39,"category_name":30,"create_tm":183},732977,"Learner Instructions - Setup and Configure Agent Tools","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781804/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=GL6KwWUYwGSr%2BdAt1qLvhIeJD%2BI%3D","learner-instructions-setup-and-configure-agent-tools",1795383154,{"doc_id":185,"doc_title":186,"file_type":140,"home_preview_img_url":187,"slug":188,"view_count":19,"category_name":30,"create_tm":189},699580,"GitHub Copilot Tips & Tricks Vol. 2 - Best practices for developers to work more productively with GitHub Copilot - 2nd Edition, 2024","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011320318/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=rmvOX%2BqjhG6pjE95JUQY5noFDdo%3D","github-copilot-tips-tricks-vol-2-best-practices-for-developers-to-work-more-productively-with-github-copilot-2nd-edition-2024",1794479729,{"doc_id":191,"doc_title":192,"file_type":140,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":30,"create_tm":196},273660,"ReCache - Efficient KV Cache Reuse and Compression for Tool-Augmented LLM Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899554625/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=hhnBtcyLfAdd%2BAabCXHUFpoi8wY%3D","recache-efficient-kv-cache-reuse-and-compression-for-tool-augmented-llm-agents",15,1789472411,{"doc_id":198,"doc_title":199,"file_type":140,"home_preview_img_url":200,"slug":201,"view_count":29,"category_name":30,"create_tm":202},733023,"Knowledge Gateway MCP Integration Guide - v3 - integration steps","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031782552/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=dZSfvA0Cu9d23cII%2BAXxtxK5vU4%3D","knowledge-gateway-mcp-integration-guide-v3-integration-steps",1795383349,{"doc_id":204,"doc_title":205,"file_type":140,"home_preview_img_url":206,"slug":207,"view_count":81,"category_name":30,"create_tm":208},732981,"THE ARENA SKILL - FULL SETUP GUIDE - Make 100 versions of Claude fight to the death","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031414791/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=LiIQUahYipHolmH%2FHV8qcKP1ISs%3D","the-arena-skill-full-setup-guide-make-100-versions-of-claude-fight-to-the-death",1795383162,{"doc_id":210,"doc_title":211,"file_type":140,"home_preview_img_url":212,"slug":213,"view_count":24,"category_name":30,"create_tm":214},696836,"Harness Engineering - A Design Guide to Claude Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009178486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=Agnbw40tGmhdqHqykv%2Fi%2Bh7ZCCI%3D","harness-engineering-a-design-guide-to-claude-code",1794435025,{"doc_id":216,"doc_title":217,"file_type":140,"home_preview_img_url":218,"slug":219,"view_count":34,"category_name":30,"create_tm":220},699577,"Github Copilot Step by Step","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011320215/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=wbQ0hwQSh845fAGYN%2Bsc0uJEXi0%3D","github-copilot-step-by-step",1794479719,{"doc_id":222,"doc_title":223,"file_type":140,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":30,"create_tm":227},84039,"MCP Enabled Agentic AI for Autonomous IPoDWDM Network Lifecycle Automation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809126618/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=Btdp7cg4hX2IU%2FhHrnVqVjPLdoc%3D","mcp-enabled-agentic-ai-for-autonomous-ipodwdm-network-lifecycle-automation",33,1784192177]