Manage Your Context in Claude Code for Salesforce Developers | Mastering Claude | Part 2
Bill Kuehler, Salesforce MVP, Golden Hoodie recipient, and co-founder of Resource Hero, joined Code With Sally for the second session in our Mastering Claude series β a deep dive into the single most important skill when working with Claude Code: managing your context window. Huge thanks to everyone in our community who joined live and brought such sharp questions throughout β the Q&A made this one even better. π In this session, we cover: β What tokens and context actually are in Claude Code β The /context command β see exactly what's in your context window β /rewind and /clear β undo prompts and start fresh sessions cleanly β Switching models with /model (Haiku, Sonnet, Opus) and when to use each β /resume and saving conversations to markdown files for later β CLAUDE.md files β project instructions, hierarchy, and the /init command β Rule files in .claude/rules β scoping instructions to files and folders β /compact (auto + manual) β keeping your context lean β Status line setup β see your tokens, cache, and limits at a glance β Prompt caching β how the 5-minute cache saves you money (and why it expires faster than you think) β Sub-agents and the /agents command β isolate big tasks from your main context β The /btw command β ask side questions without polluting your session β Live community Q&A throughout β±οΈ TIMESTAMPS 00:00 Session introduction 01:38 Why this session matters for non-coders too 03:33 Recap of Part 1 04:14 Introduction to managing context in Claude Code 05:34 What are tokens? 06:45 What is context? 12:28 Q&A: the context window 15:18 /context command + demo 21:01 Controlling context with the /rewind command 23:39 Options inside the rewind command 24:31 /clear command + new session demo 25:03 Q&A: checkpointing your conversation 27:13 Q&A: models in Claude and the /model command 30:29 Q&A: reusing context, /resume, and summarizing conversations 33:36 Q&A: running the same commands from the VS Code extension 35:01 CLAUDE.md files explained + demo 39:48 Q&A: CLAUDE.md, /init, and how to edit it 50:54 Rule files + demo 54:03 Q&A: rule files 58:07 Auto-compact vs manual /compact command 1:02:05 Q&A: CLAUDE.md vs rules vs skills 1:03:40 The status line command and its usage 1:06:17 Claude prompt caching 1:11:10 Q&A: caching + how to build your own status line 1:19:19 Sub-agents introduction, demo, and the /agents command 1:23:34 /btw command 1:24:42 Final Q&A 1:27:28 Session closing π CONNECT WITH BILL Bill is one of the most generous teachers in the Salesforce + AI space. If you want to go deeper on Claude Code, follow him on LinkedIn β he shares practical workflow tips constantly, and he's the person to talk to about everything Resource Hero is building. β LinkedIn: https://www.linkedin.com/in/billkuehler/ π RESOURCES β Watch Part 1 β Claude Code Setup for Salesforce Developers: https://www.youtube.com/watch?v=gZGAJlSQ8m0 β Mastering Claude full playlist: https://www.youtube.com/playlist?list=PLeevJTFuNoIRrgajC_4KjIw53YFHHUzhY β Bill's status line prompt + session resources: https://github.com/CodeWithSally/CodeWithSally-Apex-English/tree/main/Sessions/ClaudeCode/Session002 β Join the Code With Sally Trailblazer Community group: https://trailhead.salesforce.com/trailblazer-community/groups/0F9KX000000irsF0AQ β Subscribe to Code With Sally: https://www.youtube.com/@CodeWithSally π¬ Have questions about Claude Code or how you're managing your own context? Drop them in the comments β Bill and Sally are watching! π If this helped you, please LIKE and SUBSCRIBE for more Salesforce + AI developer content every week. #CodeWithSally #ClaudeCode #Salesforce #TrailblazerCommunity #SalesforceDeveloper #AI #MasteringClaude ========= Music: https://www.bensound.com License code: WQKAQZS379XH7XFR Artist: : Benjamin Tissot Music by: bensound.com License code: ZPNXNOD8VOMLHTT1 Artist: : Benjamin Tissot
Download
0 formatsNo download links available.