Keep your chat context clean ๐Ÿ‘€ #VSCode

Visual Studio Code ยท Intermediate ยทโœ๏ธ Prompt Engineering ยท3mo ago

Key Takeaways

Using VS Code to run skills in a dedicated sub agent and avoid filling the main context window, by enabling the chat skill tool setting and editing the skill.md file to add the context fork line.

Full Transcript

When you use a skill that uses a lot of tool calls or brings in a large amount of research, it can fill up your context window and then degrade the quality of your chat going forward. Well, now in VS Code, you can run a skill in a dedicated sub agent so that context stays over in its own context window, so your main chat window doesn't get filled up with the skill. To get this set up, make sure you have the chat skill tool setting enabled, and then in your skill.md file, you're going to want to edit the front matter to add the line context fork. And then when you use this skill in your chat, it'll create a dedicated sub agent, which will then use its own context window to complete the task. This way your main context window doesn't get filled up with extra information that you don't need.

Original Description

Run skills in a dedicated sub agent in @code and avoid filling your main context window โšก
Sign in to unlock AI tutor explanation ยท โšก30

Learn how to run skills in a dedicated sub agent in VS Code to keep your chat context clean and avoid degrading the quality of your chat. This involves enabling the chat skill tool setting and editing the skill.md file to add the context fork line.

Key Takeaways
  1. Enable the chat skill tool setting in VS Code
  2. Edit the skill.md file to add the context fork line
  3. Use the skill in your chat to create a dedicated sub agent
  4. Verify that the sub agent uses its own context window to complete the task
๐Ÿ’ก Running skills in a dedicated sub agent can help keep the main context window clean and prevent degradation of chat quality.
๐Ÿ”’ Pro feature: Ask AI to explain this lesson โ†’

Related Reads

๐Ÿ“ฐ
How A Product Review Shoot Taught Me More About Prompting Than Most Prompting Work Did
Learn how directing a product review shoot can teach you about prompting and improve your script writing skills
Dev.to AI
๐Ÿ“ฐ
Prompt Engineering in 2026: The Skill Is No Longer Writing the Perfect Prompt
Learn how to achieve better AI results through clear intent, context, and judgment in prompt engineering, rather than relying on a single perfect prompt
Medium ยท UX Design
๐Ÿ“ฐ
Your Prompts Are a Personal Brand You Didnโ€™t Know You Were Building
Your prompts are a personal brand that showcases your thought process and creativity, making it essential to craft them intentionally
Medium ยท AI
๐Ÿ“ฐ
I shipped a prompt library. Not because it's sexy. Because people were staring at a blank input box.
Learn how to create a prompt library to help users overcome the blank input box problem and improve their overall experience
Dev.to ยท Daniel Dong
Up next
โ€œStop Using AI Wrong โ€” Try This Instead!โ€
prompt hub
Watch โ†’