NEW in Claude Code: Clear Context and Bypass Permissions
{"schema_version":2,"video_id":"Jb1_DeN15Bs","title":"NEW in Claude Code: Clear Context and Bypass Permissions","duration_seconds":138.0,"recipe_fingerprint":"3d16884ee8493969a53ce425dcc751e987938e4bd9c17b4eb66b744a61110f0c","prompt_version":"timeline-dense-v1","segments":[{"start":0.0,"end":10.0,"speech":"Hello guys. In this very quick video, I want to show you a new feature in Cloud Code. After you receive the plan in plan mode, you used to have three options what to do next. Now you have four.","visual":"The speaker is sitting in front of a camera, talking. A terminal window with text is displayed behind him.","ocr":"PUT/PATCH /api/posts/{post} update Update a post DELETE /api/posts/{post} destroy Delete a post Verification 1. Run migration: php artisan migrate 2. Seed posts: php artisan db:seed --class=PostSeeder 3. Test endpoints: - curl http://localhost/api/posts (list) - curl -X POST http://localhost/api/posts -d \"title=Test&post_text=Content\" (create) - curl http://localhost/api/posts/1 (show) - curl -X PUT http://localhost/api/posts/1 -d \"title=Updated\" (update) - curl -X DELETE http://localhost/api/posts/1 (delete) Requested permissions: - Bash(prompt: run Laravel artisan commands) Would you like to proceed? 1) Yes, clear context and bypass permissions","id":"seg-0000"},{"start":10.0,"end":20.0,"speech":"So this first option, clear context and bypass permission, is a new thing. So there used to be just bypass permission, manually approve or something else.","visual":"The camera remains on the speaker, terminal text still visible in the background.","ocr":"1) Yes, clear context and bypass permissions 2) Yes, and bypass permissions 3) Yes, manually approve edits 4) Type here to tell Claude what to change","id":"seg-0001"},{"start":20.0,"end":30.0,"speech":"Now, Cloud Code team is working a lot on improving the context management in general. So now you can choose, and this is actually a default option to clear context and bypass permission because","visual":"Speaker continues talking to the camera.","ocr":"1) Yes, clear context and bypass permissions 2) Yes, and bypass permissions 3) Yes, manually approve edits 4) Type here to tell Claude what to change","id":"seg-0002"},{"start":30.0,"end":40.0,"speech":"if you choose just yes and bypass permission, whatever context is used already for planning, it will remain used.","visual":"Speaker talking, terminal text in background.","ocr":"1) Yes, clear context and bypass permissions 2) Yes, and bypass permissions 3) Yes, manually approve edits 4) Type here to tell Claude what to change","id":"seg-0003"},{"start":40.0,"end":50.0,"speech":"But as you can see down below, the actual plan is written in a file.","visual":"Speaker talking.","ocr":"1) Yes, clear context and bypass permissions 2) Yes, and bypass permissions 3) Yes, manually approve edits 4) Type here to tell Claude what to change","id":"seg-0004"},{"start":50.0,"end":60.0,"speech":"So if for the implementation you need just the plan, then you don't need all that context of planning actually process to be used.","visual":"Speaker switches camera view to the terminal.","ocr":"Last login: Sat Jan 17 07:46:00 on ttys037 povilas@Povilass-MacBook-Pro ~/Herd/laravel %","id":"seg-0005"},{"start":60.0,"end":70.0,"speech":"In fact, let's open another terminal and let's see that plan in action. So how does that look? Overview migration model, what it would do.","visual":"Text in terminal shows \"Plans: Posts CRUD API\".","ocr":"Plans: Posts CRUD API ## Overview Create a complete CRUD API for a Posts resource with 'title' and 'post_text' fields, following the existing Laravel 12 conventions in this project. ### 1. Migration Create database/migrations/YYYY_MM_DD_HHMMSS_create_posts_table.php - Use 'id', 'title' (string), 'post_text' (text), timestamps - Uses anonymous class style (matching existing migrations) ### 2. Model Create app/Models/Post.php - Fillable: 'title', 'post_text'. - Uses 'HasFactory' trait (matching Team/Game models)","id":"seg-0006"},{"start":70.0,"end":80.0,"speech":"So this is I think enough context, enough plan. So we can safely clear context and proceed. But just out of curiosity I will show you if we don't clearly recontext and just bypass permission.","visual":"Terminal output scrolling.","ocr":"### 5. API Resource Create app/Http/Resources/PostResource.php - Transform: 'id', 'title', 'post_text', 'created_at', 'updated_at' - Extends JsonResource (matching GameResource/TeamResource) ### 6. API Controller Create app/Http/Controllers/Api/PostController.php - RESTful resource controller with: 'index()' - List all posts (paginated) 'store()' - Create new post 'show()' - Get single post 'update()' - Update post 'destroy()' - Delete post - Request validation inline","id":"seg-0007"},{"start":80.0,"end":90.0,"speech":"At the bottom, see context remaining. I have changed my status line. So 16% of context of 200k tokens was already used while planning.","visual":"Terminal showing \"Opus 4.5\" with status info.","ocr":"Opus 4.5 · 84% context remaining > bypass permissions on (shift+tab to cycle) · 2 files +2 -1","id":"seg-0008"},{"start":90.0,"end":100.0,"speech":"So if I choose to clear context and bypass permission, then that context goes to the max again, so you have more to work with.","visual":"Terminal outputting data.","ocr":"Creating Post migration. (ctrl+c to interrupt · 2m 5s · 5.3k tokens · thought for 1s) Bash(php artisan make:migration create_posts_table) L Running... * Creating Post migration. (ctrl+c to interrupt · 2m 15s · 5.7k tokens) L success fully. * Read(database/migrations/2026_01_17_055326_create_posts_table.php) L Read 28 lines","id":"seg-0009"},{"start":100.0,"end":110.0,"speech":"Finally, when that change was released, to be honest I haven't found it in the official changelog of Claude code on GitHub. But first time I saw this was by Theo on Twitter.","visual":"Browser showing Claude changelog.","ocr":"2.1.9 • Added alistX syntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage • Added plansDirectory setting to customize where plan files are stored • Added external editor support (Ctrl+G) in AskUserQuestion \"Other\" input field • Added session URL attribution to commits and PRs created from web sessions • Added support for PrettierHook rule to hooks rather than additionalContext to the model ID","id":"seg-0010"},{"start":110.0,"end":120.0,"speech":"So it seems like a very fresh change. So upgrade Cloud Code to the latest versions.","visual":"Browser showing a Twitter post.","ocr":"Theo-13.gg @theo \"Clear context and bypass permissions\" Quiet but huge change 10:23 AM · Jan 16, 2026 · 53.8K Views","id":"seg-0011"},{"start":120.0,"end":130.0,"speech":"For more AI coding latest news, visit my website, aicodingdaily.com where I also curate latest tweets and Reddit posts important from the community.","visual":"Browser showing \"AI Coding Daily\" website.","ocr":"AI Coding Daily Latest Articles Claude Code: Frontend Design Plugin/Skill Claude Code has a frontend-design plugin that helps you to move away from \"generic\" design solutions with typical AI colors like purple. This Week in AI Coding: Claude Cowork, Spec-Driven Development, and Ralph Wiggum Useful AI coding links to read/watch for this week of January 14, 2026. Disable Claude Code Commit/PR Attribution (Clean Git History)","id":"seg-0012"},{"start":130.0,"end":138.0,"speech":"And you can subscribe to a free newsletter at the bottom to receive those digests of the week every Wednesday. That's it for this time and see you guys in another video.","visual":"Scroll down on the AI Coding Daily website.","ocr":"Get Weekly AI Coding News Enter your email Subscribe","id":"seg-0013"}],"enrichment":{"recipe_fingerprint":"6440246b6e364f699ca8c61fb55fe87ccbf5f18582d4ec6cabeb6aef1f60866b","prompt_version":"timeline-enrichment-v1","summary":{"text":"Claude Code has introduced a new option in plan mode called 'Clear context and bypass permissions,' which allows users to reset the context window after planning is complete. By clearing the planning context, users can reclaim token space, effectively resetting the context usage to its maximum capacity for subsequent tasks.","segment_ids":["seg-0000","seg-0002","seg-0009"]},"chapters":[{"start_segment_id":"seg-0000","title":"Introduction to the New Feature","summary":"The video introduces a new option added to the Claude Code plan mode, bringing the total number of choices to four."},{"start_segment_id":"seg-0001","title":"Understanding Context Management","summary":"An explanation of why the new 'Clear context and bypass permissions' option is useful for managing token limits during implementation."},{"start_segment_id":"seg-0006","title":"Demonstration of Context Clearing","summary":"A practical look at how clearing context improves token availability compared to simply bypassing permissions."},{"start_segment_id":"seg-0010","title":"Feature Discovery and Conclusion","summary":"The speaker notes this update is a recent, unlisted change and provides resources for further AI coding news."}],"key_moments":[{"segment_id":"seg-0001","label":"The four options in Claude Code plan mode"},{"segment_id":"seg-0008","label":"Viewing context token usage statistics"},{"segment_id":"seg-0009","label":"How clearing context resets token usage"}],"suggested_questions":[{"question":"What is the benefit of using the 'Clear context and bypass permissions' option?","segment_ids":["seg-0005","seg-0009"],"id":"sq-0000"},{"question":"How does clearing context affect the token usage in Claude Code?","segment_ids":["seg-0008","seg-0009"],"id":"sq-0001"},{"question":"Does the official Claude Code changelog include this new feature?","segment_ids":["seg-0010"],"id":"sq-0002"}]}}