Repository navigation
Releases
v2.36.0: Public URLs for proxy slugs, named dependencies and declared daemon URLs
Proxy slugs can now forward requests under a public URL, which helps apps reached through a tunnel. Two config additions make templates easier to write: a dependency can have a local name, and a daemon the proxy doesn't serve can declare its own url.
Added
-
Forward a proxy slug under its public URL (#1141) by @jdx, originally proposed and implemented by @andersonkrs. An app reached through a tunnel (for example cloudflared with
httpHostHeader = "shop.localhost") used to see only the local slug name over plain HTTP. That broke redirects, absolute links and CSRF origin checks. A slug can now have an optionalpublic_url, either through--public-urlonpitchfork proxy addor in the config:# PUBLIC_URL is your tunnel's https origin pitchfork proxy add shop --daemon web --public-url "$PUBLIC_URL"
This saves
public_urlon the slug's entry in[slugs], next todiranddaemon. Requests for the slug's own hostname reach the daemon withHost,X-Forwarded-Host,X-Forwarded-ProtoandX-Forwarded-Portset from that URL.- These values come only from your config. The proxy still discards any
X-Forwarded-*headers sent by the client. public_urlmust be anhttporhttpsorigin with no path, query or credentials.proxy addrejects an invalid value. If an invalid value is already in the config, pitchfork logs a warning and forwards the slug under its local name.- Worktree subdomains (
<branch>.shop.<tld>) and automatic hostnames keep their local values. - If you run
proxy addagain without--public-url, the existing public URL is kept. That means one command can move the public address to another checkout. proxy statusand its JSON output show the public URL.
- These values come only from your config. The proxy still discards any
-
Give a dependency a local name with
as(#1144) by @jdx. Templates no longer have to spell out a generated or checkout-specific namespace, such as the namespaces mise creates for each checkout:[daemons.app] run = "node server.js" depends = [{ id = "search-bd9126f3bbca47d/app", as = "search" }] [daemons.app.env] SEARCH_API_URL = "{{ daemons.search.url }}"
The qualified key (
daemons["search-bd9126f3bbca47d.app"]) still works, and plain strings independswork as before. Anasname may use letters, digits,_and-. Config loading fails if the name is empty or invalid, matches a daemon in the same namespace, or points to two different dependencies. CLI and TUI saves that would cause such a clash are blocked. -
Declare a daemon
urlwhen the proxy doesn't serve it (#1146) by @jdx. Some daemons get no proxy URL: those withproxy = false, those running while the proxy is off, and non-HTTP services such as Redis. These daemons can now declare the URL they answer on as a template:[daemons.cache] run = "redis-server --port $PORT" port = 6380 proxy = false url = "redis://127.0.0.1:{{ port }}/0" [daemons.web] depends = ["cache"] run = "./web" env.REDIS_URL = "{{ daemons.cache.url }}"
{{ url }}and{{ daemons.<name>.url }}use the proxy URL when the proxy serves the daemon. Otherwise they use the declaredurl. If a declaredurlfails to render, pitchfork logs it and treats the value as null.- New self variables
{{ port }}and{{ ports }}hold the daemon's configured ports. When another daemon readsdaemons.cache.url,{{ port }}is the port the daemon actually got, including after a bump. Inside the daemon's own config it is the configured port, so use$PORTfor the final value. {{ proxy_url }}still holds only the proxy URL. For a daemon that declaresurl, it is no longer the same as{{ url }}.
Full Changelog: v2.35.0...v2.36.0
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.35.0: Daemons can report their current activity through OSC 7501; stop --all asks before stopping other projects
Daemons can now report what they are doing, and pitchfork shows it in list, status, the TUI and the web UI. pitchfork stop --all now asks before it stops daemons that belong to other projects, and progress output stays readable when stderr is redirected.
Added
-
Daemons can report their status with OSC 7501 (#1125) by @jdx. Pitchfork reads Program Status Protocol (OSC 7501) reports from daemon output and shows the most recent one in
pitchfork list,pitchfork status, the TUI and the web UI. You can see which phase a long-running job or cron job is in without reading its logs.# in a script run by a daemon printf '\033]7501;state=working:progress=40:msg=%s\033\\' "$(printf 'Syncing GitHub issues' | base64)"
$ pitchfork list Name Status nightly-sync running working 40% Syncing GitHub issues- This is always on and needs no configuration. Daemons that never emit OSC 7501 behave as before. It works for piped and PTY daemons, and a report is picked up without waiting for a newline.
idle,workingandblockedreports are cleared when the process exits.doneanderrorreports stay until the next run starts.- Only the root record is tracked, so reports with an
idare ignored. Reports with an invalidmsg(control characters, bad base64, or anything over the spec limits) are also ignored. list --jsonandstatus --jsonnow include an optionalprogram_statusobject, and the web API includes aprogram_statusstring.- The new guide is at
docs/guides/program-status.md.
Fixed
-
pitchfork stop --allasks before stopping daemons outside the current project (#1123, fixes #1122) by @jdx. Before, runningstop --allto shut down one project's daemons also stopped every other project's daemons. Now, if it would stop daemons that the current project's config doesn't define, it lists them first:$ pitchfork stop --all This will stop the following daemons outside this project: * agent-env-docker/dockerd * agent-env-files/dufs Stop all daemons? [y/N]In an interactive terminal it stops them only if you answer
yoryes. Without a terminal it refuses and exits non-zero. The new-f/--forceflag, which only works with--all, skips the check. Behavior doesn't change when every running daemon belongs to the current project, or when you use--local,--global,--groupor name the daemons. Outside any project, every daemon counts as outside. -
Progress output no longer floods logs when stderr isn't a terminal (#1127, fixes #1126) by @jdx, with the patch suggested by @neilconway. When stderr goes to CI logs, files or pipes, pitchfork now prints one plain line per status change. Before, the spinner redraws produced thousands of repeated lines full of escape codes. Interactive terminals still get the animated spinner, and
CLX_TEXT_MODE=1still forces text mode. -
Windows process stats can no longer hang on parent-PID cycles (#1130) by @jdx. Windows can report a process tree that contains cycles. Collecting CPU and memory stats now visits each process only once, so it can't loop forever or count a process twice. The same PR makes
schema,usageandapi-schemastart without spinning up a worker thread pool.
Breaking Changes
- Scripts, CI jobs and agents that run
pitchfork stop --allwithout a terminal now fail if daemons from other projects are running. To keep the old machine-wide behavior, usepitchfork stop --all --force. To stop only the current project's daemons, usepitchfork stop --local.
Full Changelog: v2.34.0...v2.35.0
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.34.0: HTTPS for the web UI and pitchfork completion --install
The web UI can now serve HTTPS directly, and pitchfork completion --install writes shell completions to the right place for you. This release also fixes two bugs that affected daemons started at the same time.
Added
-
Serve the web UI over HTTPS (#1104) by @disintegrator. Set
web.tls_certandweb.tls_key(orPITCHFORK_WEB_TLS_CERT/PITCHFORK_WEB_TLS_KEY) so the web UI port serves HTTPS with HTTP/2 and HTTP/1.1. This keepsX-Pitchfork-Tokenencrypted when you bind to a non-loopback address.[settings.web] auto_start = true bind_address = "0.0.0.0" tls_cert = "/etc/pitchfork/web.crt" # PEM, may include the chain (leaf first) tls_key = "/etc/pitchfork/web.key" # PEM: PKCS#8, PKCS#1 or SEC1
Both settings default to empty, which keeps plain HTTP. You must set both or neither. The web UI won't start if only one is set, or if a file is missing, can't be parsed, or the key doesn't match the certificate. With TLS on:
pitchfork supervisor statusreports an HTTPS URL.- Plain HTTP requests to the port are rejected, not redirected.
- If the reverse proxy is enabled, it redirects
pitchfork.<tld>to the HTTPS URL.
The standalone API server (
[settings.api]) still serves only plain HTTP. -
pitchfork completion <shell> --install(#1105) by @jdx writes the completion script to the location your shell expects, without editing any startup files. If the script is already there, running the command again does nothing or updates it. It won't replace a file it didn't write unless you add--force, which only works together with--install. Supported shells are now bash, zsh, fish, PowerShell (powershell/pwsh), Elvish and Nushell (nu/nushell).pitchfork completion fish --install pitchfork completion zsh --install --force
Fixed
-
Concurrent starts now wait for the daemon to be ready (#1108, fixes #1107) by @jrandolf.
- A
pitchfork startthat finds a daemon still running its ready check now waits for that check and returns its result. This includes retries with backoff and restarts triggered by file changes. Previously it reported "already running" right away. - Dependent daemons also wait for their dependencies to be ready during retries and restarts.
- The waiting start uses the readiness deadline of the start already in progress. Its own readiness overrides can't shorten that deadline.
- Cancelling the start that began the check no longer lets other waiting starts continue early.
- A readiness timeout is still a failure even if the daemon exits with code 0 while being stopped. If pitchfork can't stop the daemon, it reports that error and doesn't start a replacement while the old process group is still alive.
- Daemons that are already running now pass their resolved ports to the templates of daemons that depend on them.
- A
-
Concurrent starts no longer get the same port (#1114, fixes #1113) by @jdx. Two daemons expecting the same port could both be given it if they started together. One then failed with
Address already in use, or withSO_REUSEPORTboth bound it and split the traffic. The supervisor now reserves resolved ports until the daemon exits. While a port is reserved, another start moves to the next free port ifbumpis set, and otherwise fails withport N is reserved by daemon <id>. A standaloneready_portis also reserved when no expected ports are configured. These reservations only cover daemons that pitchfork starts.
Full Changelog: v2.33.1...v2.34.0
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.33.1: Maintenance release
This release has no user-facing changes.
Full Changelog: v2.33.0...v2.33.1
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.33.0: TUI color themes for light and dark terminals
The TUI now uses colors from your terminal's own palette by default, so it is readable on both light and dark terminals. You can also pick built-in or custom themes. This release also fixes a Linux race that could make daemons with port or ready_port fail to start when several daemons start together.
Added
-
TUI color themes (#1082) by @dohzya and @jdx. The TUI used to hardcode RGB colors, white text and near-black backgrounds, which made it hard to read on light terminals.
- The new default theme,
auto, uses only the terminal's ANSI palette and does not set a background. The cursor row is bold and underlined, and rows selected withSpaceare italic, instead of being highlighted with a background color. - Built-in themes:
catppuccin_latte,catppuccin_frappe,catppuccin_macchiatoandcatppuccin_mocha. These themes paint the whole screen background. - You can define custom themes under
[themes.<name>]in any config file. A custom theme only needs the keys it changes from itsbase, which can beauto(the default) or any other theme. Colors can be#rrggbb, ANSI names such asredorbright_black,reset, or a palette index from 0 to 255. pitchfork reports invalid colors, unknown themes andbasecycles when the TUI starts. - With
theme = "auto", you can setlight_themeanddark_themeto choose a theme based on the terminal's background. pitchfork asks the terminal for its background color when the TUI starts, and falls back toautoif the terminal doesn't answer.
[settings.tui] light_theme = "catppuccin_latte" dark_theme = "catppuccin_mocha" # or pin one theme: # theme = "mine" [themes.mine] base = "catppuccin_latte" selection_bg = "#ddd6fe"
New settings:
tui.theme(defaultauto, or setPITCHFORK_TUI_THEME),tui.light_themeandtui.dark_theme(both empty by default). - The new default theme,
Changed
- The TUI's default look has changed (#1082). The old fixed RGB colors are no longer the default because
autofollows your terminal's colors. Thepitchforktitle is now two colors (orangepitch, redfork) instead of a gradient, so it can follow the active theme. If you want a fixed palette, settui.themeto one of the Catppuccin themes.
Fixed
- Linux: daemons with
portorready_portno longer fail to start when nothing is using the port (#1086) by @neilconway. This could happen when several daemons started at once and failed withport ... is already in use on 127.0.0.1, but no process holding it could be found. The cause was the port-availability check. It could race with child processes the supervisor was starting at the same time, and those children briefly held a copy of the check's socket. On Unix, the check now binds the port without listening, so these copies no longer block it. Ports that are actually in use are still detected.
New Contributors
- @dohzya made their first contribution in #1082
- @neilconway made their first contribution in #1086
Full Changelog: v2.32.4...v2.33.0
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.32.4: Fix Windows quoted commands with mise and boot paths with spaces
On Windows, daemons using mise = true now keep their command quoting, and pitchfork boot now works with executable paths that contain spaces. Windows also now rejects pty = true and user settings instead of silently ignoring them. Check your configuration before upgrading if you use either setting.
Fixed
- Windows: quoted commands work with
mise = true, and boot registration handles paths with spaces (#1045) by @ofek.-
Daemons that run through
cmd /Cwith mise enabled keep quoted executable paths and arguments, shell expansion, and compound commands. Ctrl+C handling and the shell's exit code are also preserved. With this config,a bis now passed as a single argument:[settings.general] mise = true [daemons.worker] run = '"C:\Program Files\Example\worker.exe" --name "a b"'
Deferred cmd templates need mise 2026.10.10 or later. They use mise's native cmd rendering, so the
quotefilter keeps argument boundaries. -
Startup registration works with executable paths that contain spaces or Unicode, such as installs under
Program Files. When pitchfork updates an existing registration, it keeps the entry in its original registry root (HKLM or HKCU). Automatic path repair keeps the Task Manager approval state, so an entry you disabled stays disabled. If writing to HKLM fails with a permission error, pitchfork asks for elevation instead of creating a second entry under HKCU. -
bootstatus checks each registry root separately, so a disabled entry in one root no longer hides an enabled entry in the other.boot disableremoves entries from both roots, and runningboot enablemore than once has no extra effect. Automatic repair does not change malformed registrations. Instead, it prints instructions for replacing them.
-
Breaking Changes
- Windows rejects
pty = trueandusersettings (#1045). Earlier versions ignored these settings on Windows without any warning. Now pitchfork reports an error and does not start the daemon. If you force a restart and the config fails this check, the running daemon keeps running. To upgrade, remove these settings from Windows configs, or setpty = falseand set both the daemonuserandsettings.supervisor.userto empty strings.
Full Changelog: v2.32.3...v2.32.4
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.32.3: Fix intermittent EADDRINUSE when daemons start together on macOS
Processes the supervisor starts now get only their stdin, stdout and stderr and no other open file descriptors. On macOS, this fixes daemons that sometimes failed to bind their port when several started at once.
Fixed
- Spawned processes no longer inherit the supervisor's open descriptors (#1068) by @irad-gradient. On macOS, a daemon with
port = Ncould intermittently fail withEADDRINUSEbecause a log sink or another daemon held port N open. This happened when it was started while the supervisor was checking that port. Aready_portcheck could also pass incorrectly because it connected to that leaked socket. It was most likely when daemons with and without ports started together, for example several daemons that share the samedepends. This change covers daemons, log sinks,ready_cmdprobes, lifecycle hooks and log archive hooks. Processes started while apty = truedaemon is running also no longer inherit that daemon's PTY. Windows behavior is unchanged. Fixes #1067.
Full Changelog: v2.32.2...v2.32.3
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.32.2: Ready-check spinner no longer flashes on instant starts
Daemons that become ready right away no longer print a brief "waiting" line when they start. This also stops that line from landing in a new shell's prompt when shell activation autostarts a daemon.
Fixed
- Ready-check spinner appears only after 400ms (#1062) by @jdx. Previously, starting a daemon that is ready right away (for example, one with
ready_delay = 0) briefly showed a line like⠋ [global/mise-history] waiting for delay (0s).... Witheval "$(pitchfork activate zsh)"autostarting such a daemon, that line showed up in a new shell's prompt. The spinner now stays hidden until the ready check has run for 400ms. Fast starts print only the final status line, and slower starts show the spinner as before.
Changed
- The waiting, started, completed and failed progress lines now include a
pitchfork:label, so you can tell which tool printed them. For example:pitchfork: [global/mise-history] started(#1062) by @jdx.
Full Changelog: v2.32.1...v2.32.2
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.32.1: Distrust compromised eMudhra intermediate CA certificates
This release updates pitchfork's bundled TLS certificate verification so it no longer trusts eight compromised eMudhra intermediate CA certificates.
Fixed
- Updated TLS root certificates and verifier for the eMudhra CA revocation (#1060) by @jdx. The private keys of eight eMudhra intermediate CA certificates were compromised. Browsers already block them, but software that ships its own root list needs an update. pitchfork now uses
rustls-webpki0.103.16 andwebpki-root-certs1.0.10. TLS connections that depend on those intermediates will now fail, as intended.
Full Changelog: v2.32.0...v2.32.1
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.
v2.32.0: gRPC daemons behind the proxy via h2c, and project-scoped MCP server
The proxy can now forward to daemons over cleartext HTTP/2, so gRPC servers work behind it. pitchfork mcp --local limits the MCP server to the current project's daemons.
Added
-
proxy_protocol = "h2c"for gRPC daemons (#1048) by @jdx. gRPC needs HTTP/2 end to end, but until now the proxy always talked to daemons over HTTP/1.1. A daemon can now opt in to cleartext HTTP/2 (h2c) for the connection from the proxy to the daemon:[daemons.api] run = "./my-grpc-server --port 50051" port = 50051 proxy_protocol = "h2c" # default: "http1"
- With
settings.proxy.https = true, the proxy handles TLS with its own certificate and forwards to the daemon over h2c, so the daemon doesn't need a certificate. Clients can still connect over HTTP/1.1 or HTTP/2. - The default stays
http1, so existing daemons behave the same as before. - Connection-specific headers are removed from h2c requests, except
TE: trailers, which gRPC requires. - WebSocket upgrades don't work on an h2c daemon. The proxy returns
501instead. - The setting is ignored when
proxy_tls = "passthrough". - Closes #1047.
- With
-
pitchfork mcp --locallimits the MCP server to the current project (#1049) by @jdx. With-l/--local(alias--project, the same aspitchfork list --project), the MCP server only exposes daemons from the project in its working directory. pitchfork finds the project the same way it resolves short daemon IDs: it uses the nearest config file and falls back toglobalif there is none.{ "mcpServers": { "pitchfork": { "command": "pitchfork", "args": ["mcp", "--local"] } } }pitchfork_status, andpitchfork_logscalled without IDs, only return daemons from that project.- Start, stop, restart and logs requests for a daemon in another project return an error instead of acting on it.
- Before a start or restart, the server also checks the daemon's dependencies, including indirect ones. This stops it from starting daemons in another project through a dependency.
- Without the flag, the MCP server still exposes daemons from all projects.
Full Changelog: v2.31.0...v2.32.0
💚 Sponsor pitchfork
pitchfork is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If pitchfork has a place in your development workflow, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep pitchfork fast, free, and independent.