Purpose
- •If desired port for new process to start is occupied/already in use due to i.force stopping old process (cntl+z) without proper realease of resources such as port no ii.backgroud processes running that occupy the desired port -Find out process id's of running processes on a desirec port no & kill those processes with process id received
Variables
KILL_PROCESSES : True
Instructions
- •Read workflow steps clearly
- •Do not interfere with any
port_nothat isn't requested - •Do NOT assume any
port_noon your own - •Do not kill processes of browser visiting a port
- •NO need to read the
.claude/free_port_in_use/helpers.pyfile
Workflow
- •
- •Understand clearly the EXACT
port_nothat needs to be freed
- •Understand clearly the EXACT
- •
- •Read
.claude/free_port_in_use/tools.pyfile
- •Read
- •
- •Use
.claude/free_port_in_use/tools.py: def list_process_ids(port_nod)tool to get all process ids
- •Use
- •
- •Use
.claude/free_port_in_use/tools.py: def kill_process_ids(process_ids:list[...])tool to kill all processes using desiredport_no
- •Use
- •
- •Respond with clear summary of work done