[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698656-105":59,"doc-detail-698656-en":135,"doc-similar-698656":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":128,"head_meta":130,"extra_data":132,"updated_unix":134},105,"en","claude-code-cheat-sheet-commands-context-automation-and-workflows","Claude Code Cheat Sheet - Commands, context, automation, and workflows","","Claude Code Cheat Sheet provides command-level guidance for building productive agentic coding workflows with Claude. It covers switching between models (Haiku, Sonnet, Opus, and Fable), fast mode toggling, and usage controls to analyze session costs by drivers such as effort, context, skills, subagents, plugins, and MCP servers. It also explains thinking effort levels, headless mode scripting with structured output, and context management to prevent context rot via compacting and keeping state focused.",{"@graph":69,"@context":127},[70,84,106],{"@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/claude-code-cheat-sheet-commands-context-automation-and-workflows/698656/",{"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/claude-code-cheat-sheet-commands-context-automation-and-workflows/698656.png","ImageObject",300,407,{"name":92,"@type":93},"Đào","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119,123],{"name":110,"@type":111,"acceptedAnswer":112},"How do you switch Claude Code models without losing context?","Question",{"text":113,"@type":114},"Use the /model command with the desired model name. The sheet lists Haiku, Sonnet, Opus, and Fable and notes the opus alias behavior and selection rules.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What does / fast do, and how is billing affected?",{"text":118,"@type":114},"/ fast toggles a faster output mode. The sheet notes that fast mode bills from usage credits and that the first toggle re-bills the whole conversation at fast-mode rates, recommending enabling it at session start.",{"name":120,"@type":111,"acceptedAnswer":121},"How can you control and understand session cost in Claude Code?",{"text":122,"@type":114},"Use / usage to break down costs by what drives them, including skill, subagent, plugin, and MCP server. The sheet highlights cost levers: model, effort, and context, and warns that HIGH/XHIGH/MAX effort can exceed response cost on complex tasks.",{"name":124,"@type":111,"acceptedAnswer":125},"What is recommended for preventing context degradation in long sessions?",{"text":126,"@type":114},"Keep active context tight by removing old threads and dormant agents, and use / compact [instructions] instead of automatic compaction. The sheet also emphasizes that advertised context windows differ from effective reasoning windows and advises optimizing CLAUDE.md for prompt caching.","https://schema.org",{"og:url":83,"og:type":129,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":131,"canonical":83},"index,follow",{"doc_id":133,"site_id":62},698656,1794454283,{"code":4,"msg":5,"data":136},{"doc_id":133,"user_id":137,"nickname":92,"user_avatar":138,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":139,"file_id":140,"file_url":141,"file_type":142,"file_size":143,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":144,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":145,"faqs":146,"seo_title":147,"seo_description":67,"update_tm":134,"read_time":148,"preview_page_count":19,"preview_urls":149},1374402968488,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","THE PRACTICAL FIELD GUIDE  \n>Claude Code Cheat Sheet  \nCommands, context, automation, and workflows for productive agentic coding.  \nCLAUDE  \nCODE  \n02  \nModels  \nClaude Code:  \n/model [ haiku | sonnet |opus | fable | best |opusplan]  \nSwitch models on-the-fly without losing context.  \n\n| Model | Cost | Best For |\n| --- | --- | --- |\n| Haiku 4.5 | cheapest | Fast screening, data extraction, classification, simple coding tasks |\n| Sonnet 5 | balanced | Balanced coding, writing, code review, refactoring |\n| Opus 5 | advanced | Complex debugging, deep research, architectural decisions, advanced problem-solving |\n| Fable 5 | premium | Hardest long-horizon agentic work and the most demanding reasoning |\n\nThe  opus  alias resolves to Opus 5 (requires v2 .1.219 or later) ; earlier versions stay selectable by full name, [e.g. ](e.g.  claude-opus-4-8 .  best)[ claude-opus-4-8](e.g.  claude-opus-4-8 .  best)[ . ](e.g.  claude-opus-4-8 .  best)[ best](e.g.  claude-opus-4-8 .  best) picks Fable 5 where your organization has access to it, otherwise the latest Opus.  opusplan  plans with Opus, then switches to Sonnet for execution.  \nClaude Code:  \n/ fast  \nToggles fast mode (Opus 5 and Opus 4.8 only) : up to 2.5x faster output at $10/$50 per MTok—same model, no downgrade. A  ↯  icon marks it active.  \nTip: On subscription plans fast mode bills from usage credits, not your plan allowance, and the first toggle re-bills the whole conversation at fast-mode rates. Enable it at the start of a session, not mid-conversation.  \nCLAUDE  \nCODE  \n03  \nCost & Usage Control  \nClaude Code:  \n/ usage \\# Session cost , plan usage limits , activity stats / cost \\# Alias for / usage  \n / usage breaks the numbers down by what actually drives them—skill, subagent, plugin, and MCP server—which is usually how you find the surprise.  \nThe three main cost levers: model, effort and context (see further) .  \nTip:  HIGH/XHIGH/MAX  effort bills thinking tokens separately—they can exceed the response cost on complex tasks.  \nCLAUDE  \nCODE  \n04  \nThinking Effort  \nClaude Code:  \n/effort [ low |medium | high |xhigh |max | ultracode |auto]  \nControls how much the model reasons before acting. Available levels depend on the model;  high  is the default on every model that supports effort, except Opus 4.7 which defaults to  xhigh .  \n\n| Level | Examples |  |\n| --- | --- | --- |\n|  LOW  | “What’s the node version?”, “Read this config file” |  |\n| MEDIUM | “Add a helper function”, “Rename this variable across files” |  |\n|  HIGH  | “Implement this feature”, “Debug this failing test” |  |\n| XHIGH | “Refactor the entire auth module” |  |\n| \u003Cbr>MAX | “Design the caching strategy” |  |\n\n low through  xhigh  persist across sessions.  max  and ultracode  apply to the current session only— ultracode  is not a model effort level but a Claude Code mode that sends  xhigh  and adds workflow orchestration (see Dynamic Workflows) .  \nTip: Include  ultrathink  anywhere in a prompt to request deeper reasoning for that one turn without changing the session’s effort level.  \nCLAUDE CODE  \nHeadless Mode  \nRun Claude Code without an interactive terminal:  \n05  \nclaude-p \"Write a commit message for these changes\" \u003C \u003C (git diff- -cached)  \nclaude-p \"Convert this CSV to JSON\" \u003C data .csv > data .json claude-p \"Check this PR for security issues\" \u003C \u003C (gh pr diff 42) cat s rc/**/* .ts | claude-p \" Find any TODO comments and list them\"  \nStructured output—use  --output-format json  for scripting:  \nclaude-p \"List imports in s rc/ index .ts\" --output-format json | jq' . result '  \nTips: * Output goes to  stdout —use pipes and redirects *  --output-format stream-json —stream events in real time for long-running jobs *  --allowedTools —restrict which tools Claude can use (e.g. , block  Write  in a review-only pipeline) * Combine with  -w —headless + worktree keeps automation fully isolated from your working tree  \nCLAUDE  \nCODE  \n06  \nContext Management  \nClaude Code:  \n/ context  \n/ clear  \n\\# Show curre","cbCaiqZVqEyg9Y8f","https://ap.wps.com/l/cbCaiqZVqEyg9Y8f","pdf",358624,"English","# Claude Code: Models\n## Switch models on-the-fly\n# Claude Code: Fast Mode\n## / fast and billing behavior\n# Claude Code: Cost & Usage Control\n## / usage and effort cost levers\n# Claude Code: Thinking Effort\n## /effort levels and ultracode\n# Claude Code: Headless Mode\n## claude-p, pipes, redirects, and structured output\n# Claude Code: Context Management\n## /context, /clear, /resume, /compact","[{\"question\":\"How do you switch Claude Code models without losing context?\",\"answer\":\"Use the /model command with the desired model name. The sheet lists Haiku, Sonnet, Opus, and Fable and notes the opus alias behavior and selection rules.\"},{\"question\":\"What does / fast do, and how is billing affected?\",\"answer\":\"/ fast toggles a faster output mode. The sheet notes that fast mode bills from usage credits and that the first toggle re-bills the whole conversation at fast-mode rates, recommending enabling it at session start.\"},{\"question\":\"How can you control and understand session cost in Claude Code?\",\"answer\":\"Use / usage to break down costs by what drives them, including skill, subagent, plugin, and MCP server. The sheet highlights cost levers: model, effort, and context, and warns that HIGH/XHIGH/MAX effort can exceed response cost on complex tasks.\"},{\"question\":\"What is recommended for preventing context degradation in long sessions?\",\"answer\":\"Keep active context tight by removing old threads and dormant agents, and use / compact [instructions] instead of automatic compaction. The sheet also emphasizes that advertised context windows differ from effective reasoning windows and advises optimizing CLAUDE.md for prompt caching.\"}]","Claude Code Cheat Sheet - Commands, context, automation, and workflows | PDF",18,[150,154,158,162],{"page_no":8,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/76f8f3c2c65e5e7811ab25e554ebb6d1.webp",983,1392,{"page_no":14,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/189260a9684b200bba0e279c6bddccd0.webp",982,1391,{"page_no":81,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6566056f3115cbc72933e37e41c95550.webp",981,1389,{"page_no":19,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1e7cf91d8966be8bed3e5d129fa94a0e.webp",980,1388,{"list":167,"token":66},[168,174,180,186,193,200,206,212,218,225],{"doc_id":169,"doc_title":170,"file_type":142,"home_preview_img_url":171,"slug":172,"view_count":52,"category_name":30,"create_tm":173},733005,"The Claude Code Playbook - Edition 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031782331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=YKJh0irO9a9Q4n8bUtngRJiqhYs%3D","the-claude-code-playbook-edition-2026",1795383306,{"doc_id":175,"doc_title":176,"file_type":142,"home_preview_img_url":177,"slug":178,"view_count":39,"category_name":30,"create_tm":179},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=1796108879&Signature=NY2pyqyI80uBXQhCmfyaM6lmQc8%3D","learner-instructions-setup-and-configure-agent-tools",1795383154,{"doc_id":181,"doc_title":182,"file_type":142,"home_preview_img_url":183,"slug":184,"view_count":19,"category_name":30,"create_tm":185},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=1796108879&Signature=t1zm7uMOzIED3wMPgOAZ%2FxVLuYA%3D","build-ai-multi-agent-with-claude-code-course-outline",1795383252,{"doc_id":187,"doc_title":188,"file_type":142,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":30,"create_tm":192},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=1796108879&Signature=RC742y5%2BuvmiqHgRx4IA%2FU6g8uc%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",910,1785472614,{"doc_id":194,"doc_title":195,"file_type":142,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},689092,"Claude MCP Setup Guide - No Terminal Required","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001508321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=584QNZ7iebA16WIIladt4xVK5qY%3D","claude-mcp-setup-guide-no-terminal-required",13,1794096122,{"doc_id":201,"doc_title":202,"file_type":142,"home_preview_img_url":203,"slug":204,"view_count":39,"category_name":30,"create_tm":205},733003,"Claude Code MCP Integration - Connect Your AI to Every Tool You Use","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031415110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=Qo25PlNjUi9alQIlwEpzo%2FZgJp4%3D","claude-code-mcp-integration-connect-your-ai-to-every-tool-you-use",1795383257,{"doc_id":207,"doc_title":208,"file_type":142,"home_preview_img_url":209,"slug":210,"view_count":39,"category_name":30,"create_tm":211},696835,"Claude Code Complete User Handbook - Version 1.0 - Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009178485/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=NCTrx2oWIYMDjxWjPiO530Qh55Y%3D","claude-code-complete-user-handbook-version-10-guidance",1794435025,{"doc_id":213,"doc_title":214,"file_type":142,"home_preview_img_url":215,"slug":216,"view_count":56,"category_name":30,"create_tm":217},687618,"Anthropic Academy Playbook - Key concepts and takeaways from all 18 courses","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262897/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=p1uWcF2ipnKariwzAAe9gPjToGE%3D","anthropic-academy-playbook-key-concepts-and-takeaways-from-all-18-courses",1794084309,{"doc_id":219,"doc_title":220,"file_type":142,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},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=1796108879&Signature=jxbtkpdVdiyi7VTiRXeQNvcMUVc%3D","the-comprehensive-guide-to-ai-agent-engineering-march-2026",14,1793963049,{"doc_id":226,"doc_title":227,"file_type":142,"home_preview_img_url":228,"slug":229,"view_count":39,"category_name":30,"create_tm":230},687623,"AI Coding Workshop - Workshop Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000649717/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=5ZhjnQ46xRxCdbeJRXnaz7HbHmk%3D","ai-coding-workshop-workshop-outline",1794084332]