agent-browser-cleanup

Detect and terminate lingering agent-browser processes across shell sessions.

Updated Feb 27, 2025
One-click install
npx skills add https://github.com/tuanemuy/dotfiles --skill agent-browser-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-browser-cleanup
Source: https://github.com/tuanemuy/dotfiles/tree/main/config/claude/skills/agent-browser-cleanup
Command: npx skills add https://github.com/tuanemuy/dotfiles --skill agent-browser-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Before starting agent-browser in a new session, this cleanup utility ensures there are no lingering agent-browser processes from other sessions. If agent-browser is in use in another session, it leaves it running; otherwise it terminates remaining agent-browser processes to start clean.

Core Features & Use Cases

  • Prevents cross-session conflicts by scanning the current shell session and other sessions for agent-browser processes.
  • Cleans up leftover agent-browser processes when no other session is using it, ensuring a predictable startup.
  • Returns a clear outcome to the caller, indicating whether a cleanup occurred or the resource was in use.

Quick Start

Run this cleanup utility before starting agent-browser to ensure a clean session.

Frequently Asked Questions about agent-browser-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I kill lingering Linux processes before starting a new tmux session?

This cleanup utility scans active shell environments to kill lingering Linux processes before starting a new tmux session, preventing cross-session conflicts and ensuring a predictable startup state.

What happens if agent-browser is still running in another tmux pane?

If agent-browser is running in another tmux pane, the cleanup utility detects the active session and skips termination to preserve the running process and avoid disrupting ongoing work.

How do I clean up background processes without killing active sessions?

To clean up background processes without killing active sessions, this utility detects the current shell and scans others for active usage, terminating only idle or leftover processes while leaving active session resources untouched.

Why does my new shell session conflict with leftover background processes?

Your new shell session conflicts with leftover background processes because previous sessions did not terminate cleanly, causing resource locks. A cleanup utility resolves this by detecting and eliminating idle processes before startup.

Can I run process cleanup automatically before starting a Linux background task?

Yes, you can run process cleanup automatically before starting a Linux background task by executing this utility in your startup script. It returns a clear outcome indicating whether cleanup occurred or the resource was in use.