---
name: intelligent-process-inspector
description: "Audits resource-heavy background processes and recommends termination or throttling. Use when an agent needs to detect runaway scripts, background bloat, or resource leaks and explain process tree consumption."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/intelligent-process-inspector/"
  kind: workflow
  hermes:
    tags: ["system", "processes", "devops", "performance"]
    category: ops
    requires_toolsets: ["terminal"]
---
# Intelligent process inspector

Audit resource-heavy background processes and recommend termination or throttling

## When to use

Inspect active operating system processes to detect runaway scripts, background bloat, or resource leaks based on execution context. The bot evaluates process trees and system consumption, providing clear explanations and waiting for confirmation before halting or reprioritizing any task.

## Inputs

- `process_data`: Running process details including CPU, memory, and parent hierarchy collected from terminal utilities.

## Steps

1. On a schedule: Hourly process audit (Runs every hour on a schedule.). Schedule: `0 * * * *`
2. Inspect active process tree
3. Request approval to terminate

## Instructions

Scan running processes using terminal utilities to collect CPU, memory, and parent hierarchy details. Analyze which workloads appear stuck, orphaned, or excessive relative to their purpose. Display recommended actions in chat. Always wait for explicit user approval before sending signals to kill or renice any process.

## Approvals

- Wait for explicit user approval before terminating any process.
- Wait for explicit user approval before reprioritizing any process with renice.

## Output

Chat message listing recommended process actions with explanations. (format: chat_message)

## Source

Summarized in our own words from [Show HN: Replacing my OS process scheduler with an LLM](https://news.ycombinator.com/item?id=46435142) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/intelligent-process-inspector/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
