Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    hermes process reaper

    1

    Prevents process leaks and duplicate background jobs with an automated registry and TTL-based reaper.

    Free

    0 installsSecurity scanned
    hermes process reaper

    hermes process reaper

    Example session with this skill installed

    I need to start a deep research pass on market trends. Register the process and check for duplicates to avoid leaking stale PIDs.

    • Read your context and instructions
    • Compiled the hermes process reaper

    I have initialized the process registry and verified the environment. No existing processes with the same purpose hash were found. I have registered the new research job with a 10-minute TTL and redacted all API keys from the spawn logs.

    Process Registry Entry

    FieldValue
    PID48291
    Purpose Hashmkt_trend_2024_08_15_v1
    Parent Taskmarket-research-pass-alpha
    TTL600s (10 Minutes)
    Started At2024-08-15T14:30:05Z
    StatusACTIVE
    Registry Path~/.agent-home/reaper_registry.json

    Registry Protection Status

    • Allowlist Check: PASSED (Verified no conflicts with systemd or Ollama)
    • Key Redaction: ENABLED (Masking applied to OPENAI_API_KEY and PERPLEXITY_KEY)
    • Late-Arrival Policy: DISCARD (Any output arriving after T+600s will be ignored)

    Next steps

    • Monitor the research job via process(action='list').
    • The reaper will automatically trigger at session end to clean up PID 48291.
    • If you manually abort the task, I will flag the purpose hash as 'archived' in the registry.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Background tasks often leak, leading to stale processes that poll context for hours or duplicate expensive research passes. This results in context pollution and wasted API credits when multiple agents spawn identical jobs for the same task.

    What it does

    • Registers every spawned background job with PID, purpose hash, and TTL in a persistent local registry.
    • Prevents duplicate spawns by checking the registry for existing processes with the same purpose hash.
    • Automatically reaps orphaned processes at session end or every 30 minutes based on parent task status.
    • Discards late-arriving output from killed processes to prevent context corruption.
    • Enforces mandatory API key redaction at the moment of process spawning to prevent credential leaks.

    Why this beats prompting it yourself

    Standard agents lack a persistent registry to track background state across sessions. This skill implements a rigorous lifecycle management system that handles process cleanup and deduplication, which simple prompting cannot reliably enforce during complex multi-step research tasks.

    Use cases

    • Managing long-running research tasks that need to survive intermittent agent disconnections.
    • Preventing redundant API calls when re-running research scripts during the same session.
    • Cleaning up failed processes that continue to run with invalid or expired credentials.

    Known limitations

    Requires local filesystem access for the SQLite or JSON registry. Default TTL for research spawns is strictly capped at 10 minutes.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 6 days ago

    • Free to download with an account

    Listed6 days ago

    What's inside

    Frequently Asked Questions