dsh-resource-lease: Reclaiming Orphaned Agent Resources via Lease Mechanism
dsh-resource-lease is a security management plugin (v0.0.1, MIT) written by r-ayin for DeepSeek Harness. It automatically registers browser tabs and background jobs through the tools hook, and supports lease_register to register processes and ports; leases are owned by sessions with TTL, and are reclaimed through multiple paths including session destruction, 60-second periodic sweeps, startup compensation, and optional browser idle closure. Agents can use lease_list, lease_pin, lease_release, and lease_sweep; the conversation view provides a "Resource Leases" panel. Configuration via cordis.patch.yml overrides items such as sweepIntervalMs and tabTtlMinutes. For installation, please refer to SkillHub or GitHub instructions; the plugin executes closure and process killing with dsh process permissions, please review the source code before use.
Read More