Skip to content

Releases

v2.36.0: Public URLs for proxy slugs, named dependencies and declared daemon URLs

Choose a tag to compare

@jdx jdx released this 21 Nov 01:59
Immutable release. Only release title and notes can be modified.
e4467f2

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 optional public_url, either through --public-url on pitchfork proxy add or in the config:

    # PUBLIC_URL is your tunnel's https origin
    pitchfork proxy add shop --daemon web --public-url "$PUBLIC_URL"

    This saves public_url on the slug's entry in [slugs], next to dir and daemon. Requests for the slug's own hostname reach the daemon with Host, X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Port set from that URL.

    • These values come only from your config. The proxy still discards any X-Forwarded-* headers sent by the client.
    • public_url must be an http or https origin with no path, query or credentials. proxy add rejects 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 add again without --public-url, the existing public URL is kept. That means one command can move the public address to another checkout.
    • proxy status and its JSON output show the public URL.
  • 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 in depends work as before. An as name 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 url when the proxy doesn't serve it (#1146) by @jdx. Some daemons get no proxy URL: those with proxy = 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 declared url. If a declared url fails 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 reads daemons.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 $PORT for the final value.
    • {{ proxy_url }} still holds only the proxy URL. For a daemon that declares url, 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

Choose a tag to compare

@jdx jdx released this 16 Nov 20:14
Immutable release. Only release title and notes can be modified.
04e30ca

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, working and blocked reports are cleared when the process exits. done and error reports stay until the next run starts.
    • Only the root record is tracked, so reports with an id are ignored. Reports with an invalid msg (control characters, bad base64, or anything over the spec limits) are also ignored.
    • list --json and status --json now include an optional program_status object, and the web API includes a program_status string.
    • The new guide is at docs/guides/program-status.md.

Fixed

  • pitchfork stop --all asks before stopping daemons outside the current project (#1123, fixes #1122) by @jdx. Before, running stop --all to 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 y or yes. Without a terminal it refuses and exits non-zero. The new -f/--force flag, 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, --group or 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=1 still 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, usage and api-schema start without spinning up a worker thread pool.

Breaking Changes

  • Scripts, CI jobs and agents that run pitchfork stop --all without a terminal now fail if daemons from other projects are running. To keep the old machine-wide behavior, use pitchfork stop --all --force. To stop only the current project's daemons, use pitchfork 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

Choose a tag to compare

@jdx jdx released this 09 Nov 20:35
Immutable release. Only release title and notes can be modified.
ea9d7d1

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_cert and web.tls_key (or PITCHFORK_WEB_TLS_CERT / PITCHFORK_WEB_TLS_KEY) so the web UI port serves HTTPS with HTTP/2 and HTTP/1.1. This keeps X-Pitchfork-Token encrypted 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 status reports 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 start that 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.
  • 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 with SO_REUSEPORT both 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 if bump is set, and otherwise fails with port N is reserved by daemon <id>. A standalone ready_port is 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

Choose a tag to compare

@jdx jdx released this 03 Nov 18:27
Immutable release. Only release title and notes can be modified.
734743d

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

Choose a tag to compare

@jdx jdx released this 01 Nov 10:33
Immutable release. Only release title and notes can be modified.
b7dd1e9

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 with Space are italic, instead of being highlighted with a background color.
    • Built-in themes: catppuccin_latte, catppuccin_frappe, catppuccin_macchiato and catppuccin_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 its base, which can be auto (the default) or any other theme. Colors can be #rrggbb, ANSI names such as red or bright_black, reset, or a palette index from 0 to 255. pitchfork reports invalid colors, unknown themes and base cycles when the TUI starts.
    • With theme = "auto", you can set light_theme and dark_theme to choose a theme based on the terminal's background. pitchfork asks the terminal for its background color when the TUI starts, and falls back to auto if 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 (default auto, or set PITCHFORK_TUI_THEME), tui.light_theme and tui.dark_theme (both empty by default).

Changed

  • The TUI's default look has changed (#1082). The old fixed RGB colors are no longer the default because auto follows your terminal's colors. The pitchfork title is now two colors (orange pitch, red fork) instead of a gradient, so it can follow the active theme. If you want a fixed palette, set tui.theme to one of the Catppuccin themes.

Fixed

  • Linux: daemons with port or ready_port no longer fail to start when nothing is using the port (#1086) by @neilconway. This could happen when several daemons started at once and failed with port ... 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

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

Choose a tag to compare

@jdx jdx released this 29 Oct 10:35
Immutable release. Only release title and notes can be modified.
c00b176

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 /C with 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 b is 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 quote filter 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.

    • boot status checks each registry root separately, so a disabled entry in one root no longer hides an enabled entry in the other. boot disable removes entries from both roots, and running boot enable more 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 = true and user settings (#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 set pty = false and set both the daemon user and settings.supervisor.user to 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

Choose a tag to compare

@jdx jdx released this 26 Oct 10:42
Immutable release. Only release title and notes can be modified.
c29e93d

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 = N could intermittently fail with EADDRINUSE because a log sink or another daemon held port N open. This happened when it was started while the supervisor was checking that port. A ready_port check 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 same depends. This change covers daemons, log sinks, ready_cmd probes, lifecycle hooks and log archive hooks. Processes started while a pty = true daemon 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

Choose a tag to compare

@jdx jdx released this 23 Oct 10:40
Immutable release. Only release title and notes can be modified.
9cbbab2

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).... With eval "$(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

Choose a tag to compare

@jdx jdx released this 20 Oct 19:32
Immutable release. Only release title and notes can be modified.
62e3242

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-webpki 0.103.16 and webpki-root-certs 1.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

Choose a tag to compare

@jdx jdx released this 18 Oct 10:37
Immutable release. Only release title and notes can be modified.
8667a14

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 501 instead.
    • The setting is ignored when proxy_tls = "passthrough".
    • Closes #1047.
  • pitchfork mcp --local limits the MCP server to the current project (#1049) by @jdx. With -l / --local (alias --project, the same as pitchfork 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 to global if there is none.

    { "mcpServers": { "pitchfork": { "command": "pitchfork", "args": ["mcp", "--local"] } } }
    • pitchfork_status, and pitchfork_logs called 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.