web_keep_open — Claude Code prompt: what it does, how to install
The web_keep_open Claude Code prompt keeps the current tab open after a task ends. Use it when a video, course, or audio should keep playing after the agent replies.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/web_keep_open.mdWhat web_keep_open does
The prompt marks the current tab to keep it open after the agent finishes. It applies when someone asks to leave a page open or keep a video, course, or audio playing. The mark does not change the page itself.
The page closes after {{hours}} hours. Only one tab can be kept at a time, so marking another replaces the previous one. Set keep=false to remove the mark.
What it helps with
- keep a tab open after a task ends
- continue video playback after the agent replies
- leave a course or audio page open
Example prompts for the agent
- Leave this page open after the task ends.
- Keep the video playing after you reply.
- Remove the mark from this tab with
keep=false.
How to install web_keep_open
Manually: put the files in place
.claude/commands/web_keep_open.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about web_keep_open
How do I install web_keep_open in Claude Code?
Save the prompt file at .claude/commands/web_keep_open.md.
What does web_keep_open do?
It marks the current tab to stay open after a task ends. The page closes after {{hours}} hours, and marking a new tab replaces the previous one.
How many tabs can web_keep_open keep open?
It keeps one tab at a time. Use keep=false to remove the mark from the current page.
Source text
web_keep_open.md · Apache-2.0
Keep the current tab running after this task ends. By default every page this task opened is closed when the task ends. Use this when the page has to keep going after your reply: the user wants a video, course or audio to keep playing, or says to leave the page open. It only marks the page; nothing changes now, and the page is closed after {{hours}} hours at the latest. Only one page is kept across all tasks: keeping this one closes the one kept before (replaces names it). keep=false takes the mark back.
© wangzan101 · Apache-2.0 · wangzan101/Mika