cyberneticlibrary

Clear stale agent lock files

os-clean-locksskillsetup L23
richfrem/agent-plugins-skills
What it does

Remove stale agent lock files safely

Best for

Recovering from deadlocked agents that crashed leaving stale lock files behind.

Inputs
  • · phase-number
Outputs
  • · cleared-lock-files
Requires
  • · Task/Subagent
  • · Python
  • · Write
  • · Bash
  • · Read
  • · OS Event Bus
Preconditions
  • · Python 3.8+ available
Failure modes
  • · Permissions denied removing stale locks
  • · Lock file references in-progress work
Trust signals
  • · Multi-phase execution with gates