Process manager skill

From zeenie-ai/OpenCompany · View interactive version

Process manager skill is an AI agent skill from the GitHub repository zeenie-ai/OpenCompany. Start, stop, and manage long-running processes with full system PATH. Use for npm, python, node, dev servers, watchers, build tools. Destructive file commands blocked.

How to use this skill

Skill file

Process Manager Tool

Manage long-running processes with full system PATH access. Use this for anything that needs npm, python, node, or runs as a persistent server/watcher.

Security

The process manager refuses a set of destructive command patterns. This is not a general filesystem sandbox: allowed programs can have their own file and network effects. shell_execute also inherits PATH and starts in the workflow workspace; shell commands are not restricted to contained filesystem-helper paths. Use scoped file tools for ordinary file edits and respect the owner's access rules.

Blocked commands: rm, rmdir, del, rd, Remove-Item, format, mkfs, dd, shred, chmod 777

Allowed: npm, python, node, pip, cargo, go, servers, build tools, installers

Operations

start

Launch a process. Output streams to the Terminal tab and is saved to log files.

{"operation": "start", "name": "dev-server", "command": "python -m http.server 8080", "ports": [8080]}

stop

Kill a process and its entire process tree.

{"operation": "stop", "name": "dev-server"}

restart

Stop then re-launch with the same command.

{"operation": "restart", "name": "dev-server"}

list

Show all running processes for this workflow.

{"operation": "list"}

get_output

Read output from a process's log file. Use tail to get last N lines, stream to choose stdout or stderr.

{"operation": "get_output", "name": "dev-server", "stream": "stdout", "tail": 20}

Returns {"lines": [...], "total": 150, "file": "/path/to/stdout.log"}.

send_input

Write text to a process's stdin (newline appended automatically).

{"operation": "send_input", "name": "dev-server", "input_text": "quit"}

Shell vs Process Manager

| Need | Tool | Why |

|------|------|-----|

| ls, cat, find, grep | shell_execute | Short-lived command; inspect exit_code |

| rm, mv, cp, file ops | shell_execute | Prefer scoped file tools; shell commands have OS access |

| npm install, pip install | process_manager | Long-running or streamed process |

| python script.py | process_manager | Long-running or streamed process |

| npm run dev, flask run | process_manager | Long-running, streams output |

| Dev servers, watchers | process_manager | Persistent, log files |

Output Log Files

Processes write stdout/stderr logs below their effective working directory. By default that is the sanitized process-node folder in the workflow workspace; a cwd changes that directory, and a relative cwd resolves under the workflow workspace:

{effective_cwd}/.processes/{process_name}/
  stdout.log    # Standard output
  stderr.log    # Error output

Use get_output to read them selectively. The agent can also read these files directly with the file_read tool.

OS-Specific Commands

Commands differ by platform. Refer to:

Detect the OS first:

{"operation": "start", "name": "os", "command": "python -c \"import platform; print(platform.system())\""}

Returns Windows, Linux, or Darwin (macOS).

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.