Overview of Pitchfork features
mainPitchfork is a process manager for developers designed to manage 'daemons' (background processes). Key capabilities include:
- Idempotent Starts: Starts daemons only if they are not already running.
- Automatic Restarts: Configurable retry limits and exponential backoff on failure.
- Smart Ready Checks: Verifies daemon readiness via delays, output patterns, HTTP endpoints, TCP ports, or custom commands.
- Shell Integration: Auto-start/stop daemons when entering or leaving project directories.
- Dependency Management: Topological start ordering based on declared dependencies.
- File Watching: Auto-restarts on file changes using glob patterns with debouncing.
- Scheduling: Cron-style scheduling with configurable retrigger modes (
finish,always,success,fail). - Observability: Terminal TUI (with Vim keybindings) or a web dashboard for monitoring.
- AI Integration: Built-in MCP server for managing daemons via AI assistants like Claude or Cursor.
- Resource Management: Enforces memory and CPU limits per daemon.
- Container Support: Designed to run as PID 1 in Docker with zombie reaping and signal forwarding.
- Lifecycle Hooks: Execute commands on
ready,fail,retry,stop, andexitevents.