### Install example plugin Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/plugins.mdx Installs a plugin from GitHub shorthand, updates, shows config dir, lists plugins, and lists actions. ```bash herdr plugin install ogulcancelik/herdr-plugin-examples/agent-telegram-notify herdr plugin update herdr plugin config-dir examples.agent-telegram-notify herdr plugin list herdr plugin action list --plugin examples.agent-telegram-notify ``` -------------------------------- ### Agent onboarding prompt for Herdr Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/index.mdx Paste this prompt into an AI coding agent to have it read the Herdr agent guide and walk you through setup step by step. The guide covers concepts, setup, configuration, and common fixes. ```text Help me understand and set up Herdr. Read https://herdr.dev/agent-guide.md first, then walk me through it step by step. ``` -------------------------------- ### Install static library and headers Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Installs the static library and headers for libghostty-vt. The first command installs the static library file, the second installs the header directory. ```cmake install(FILES "${GHOSTTY_VT_STATIC_LIBRARY}" TYPE LIB) ``` ```cmake install(DIRECTORY "${ZIG_OUT_DIR}/include/ghostty" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") ``` -------------------------------- ### Add a machine with herdr machine add Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/connecting-machines.mdx Run setup in an interactive terminal so Herdr can ask before installing or replacing anything. It discovers running sessions, selects the only one or lets you choose, and uses 'default' if none are found. ```bash herdr machine add workbox ``` -------------------------------- ### Run standalone setup command for non-authentication Attention Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/connecting-machines.mdx Run this command in an interactive terminal when a machine shows non-authentication Attention (e.g., `! error`). Use your profile's target; if you chose a named session when adding it, include the optional `--session ` here too. Follow the requested setup prompts; open clients retry automatically. `machine reconnect` does not install or update Herdr. ```bash herdr --remote workbox ``` -------------------------------- ### Install ghostty-vt shared library with symlinks Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Installs the shared library. On Windows, installs the DLL and PDB to bin/ and the import library to lib/. On other platforms, installs the library and creates symlinks for the real name and soname using CMAKE_COMMAND. ```cmake include(GNUInstallDirs) # Install shared library if(WIN32) # On Windows, install the DLL and PDB to bin/ and the import library to lib/ install(FILES "${GHOSTTY_VT_SHARED_LIBRARY}" "${ZIG_OUT_DIR}/bin/ghostty-vt.pdb" TYPE BIN) install(FILES "${ZIG_OUT_DIR}/lib/${GHOSTTY_VT_IMPLIB}" TYPE LIB) else() install(FILES "${GHOSTTY_VT_SHARED_LIBRARY}" TYPE LIB) # Install symlinks install(CODE " execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink \"${GHOSTTY_VT_REALNAME}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${GHOSTTY_VT_SONAME}\") execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink \"${GHOSTTY_VT_SONAME}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${GHOSTTY_VT_LIBNAME}\") ") endif() ``` -------------------------------- ### Show herdr CLI help Source: https://github.com/herdrdev/herdr/blob/master/skills/herdr/SKILL.md The installed binary is the authority for command syntax. Start discovery with this command. Do not run bare `herdr` for discovery because it launches or attaches the TUI. ```bash herdr --help ``` -------------------------------- ### Noninteractive Windows cross-compilation setup with --accept-license Source: https://github.com/herdrdev/herdr/blob/master/CONTRIBUTING.md Use this noninteractive setup only after accepting the license. The SDK is stored in `~/.local/share/herdr/windows-cross/` and reused across worktrees. ```bash just setup-windows-cross --accept-license ``` -------------------------------- ### Check integration with herdr pane get and agent list Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/add-herdr-support.mdx Run these commands after starting your agent in a Herdr pane to verify what Herdr sees. To test restore, use a separate named session: start with `herdr --session my-agent-test`, stop it, then restart to confirm the resume command runs. ```bash herdr pane get "$HERDR_PANE_ID" herdr agent list ``` -------------------------------- ### Build and install libghostty-vt with CMake Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/dist/cmake/README.md Commands to configure, build, and install Ghostty's CMake wrapper, normally before using find_package in your project. ```shell-session cd /path/to/ghostty cmake -B build cmake --build build cmake --install build --prefix /usr/local ``` -------------------------------- ### Install Herdr on Linux and macOS with curl Source: https://github.com/herdrdev/herdr/blob/master/distribution/agent-guide.md Downloads and runs the install script from herdr.dev, then launches herdr. Direct installs use the stable channel by default and update with `herdr update`. ```bash curl -fsSL https://herdr.dev/install.sh | sh herdr ``` -------------------------------- ### Make Linux binary executable and move to PATH Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx On Linux or macOS, make the downloaded binary executable and move it to ~/.local/bin/herdr. The example uses the Linux x86_64 asset name. ```bash chmod +x herdr-linux-x86_64 mv herdr-linux-x86_64 ~/.local/bin/herdr ``` -------------------------------- ### Install repository hooks with just install-hooks Source: https://github.com/herdrdev/herdr/blob/master/CONTRIBUTING.md Install the repository hook once before running checks. This is required before opening or updating a pull request. ```bash just install-hooks ``` -------------------------------- ### Build and install libghostty-vt with CMake Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Build and install libghostty-vt within the Ghostty repository. Requires zig on the PATH; consult Ghostty docs for the required Zig version. ```cmake cmake -B build cmake --build build cmake --install build --prefix /usr/local ``` -------------------------------- ### Check Herdr version and session status Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/troubleshooting.mdx Run these commands to start diagnosing common problems. They output the installed Herdr version and current session status. ```bash herdr -V herdr status ``` -------------------------------- ### List and upgrade Nix profile entries Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx For a profile install, list profile entries and upgrade the Herdr entry by its index or name. ```bash nix profile list nix profile upgrade ``` -------------------------------- ### Start agent inside Herdr Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-skill.mdx Starts the Herdr CLI and then launches Claude Code inside a Herdr pane so the `HERDR_ENV=1` environment variable is available to the agent process. Any other coding agent can be used in a Herdr pane instead of `claude`. ```bash herdr claude ``` -------------------------------- ### Install Herdr on Windows with Command Prompt fallback Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Alternative Windows installation method when endpoint security blocks the fileless PowerShell command. Downloads the installer script, runs it, and deletes the script afterward. ```cmd curl.exe -fsSLo install.cmd https://herdr.dev/install.cmd && install.cmd && del install.cmd ``` -------------------------------- ### Install Herdr on Windows with PowerShell Source: https://github.com/herdrdev/herdr/blob/master/distribution/agent-guide.md Runs the install script via PowerShell's Invoke-Expression. If endpoint security blocks this fileless command, use the Command Prompt alternative. ```powershell powershell -ExecutionPolicy Bypass -c "irm https://herdr.dev/install.ps1 | iex" herdr ``` -------------------------------- ### Install Qwen Code hook: herdr integration install qwen Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Qwen Code integration hook. The SessionStart hook reports only Qwen Code's session identity for native restore; lifecycle state remains under Herdr's screen manifest detection. Herdr uses ~/.qwen by default, or QWEN_HOME when set, and the config directory must already exist. Install writes hooks/herdr-agent-session.sh (or .ps1 on Windows) and adds a Herdr entry to settings.json; uninstall removes only the matching entry and managed script. ```bash herdr integration install qwen ``` -------------------------------- ### agent start Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-automation.mdx Starts an agent. On success, returns the current agent object. ```APIDOC ## [CLI] agent start ### Description Starts an agent. On success, returns the current agent object. ### Method CLI command ### Endpoint `agent start` ### Response #### Success Response - Returns the current agent at `.result.agent`. #### Error Handling - On server error or timeout, prints JSON error to stderr and exits with status 1. - Invalid CLI syntax exits with status 2. ``` -------------------------------- ### Run, build, and install Herdr with Nix flake Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Use the Herdr flake to run, build, or profile-install Herdr from source. Replace v0.x.y with the latest release tag; omitting the tag tracks master, but release tags are recommended for normal installs. ```bash nix run github:herdrdev/herdr/v0.x.y nix build github:herdrdev/herdr/v0.x.y nix profile install github:herdrdev/herdr/v0.x.y ``` -------------------------------- ### Install Herdr on Windows with Command Prompt Source: https://github.com/herdrdev/herdr/blob/master/distribution/agent-guide.md Downloads the install.cmd script, runs it, and deletes it. Use this when endpoint security blocks the fileless PowerShell command. ```cmd curl.exe -fsSLo install.cmd https://herdr.dev/install.cmd && install.cmd && del install.cmd herdr ``` -------------------------------- ### Install Herdr integrations for all supported agents Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run these commands to install integrations for agents found on your PATH. Herdr detects supported agents automatically; installing an integration lets Herdr resume the same session after a server restart and some integrations report the agent's state directly. You can also install recommended integrations via the integrations tab in Herdr settings. ```bash herdr integration install pi herdr integration install omp herdr integration install claude herdr integration install codex herdr integration install copilot herdr integration install devin herdr integration install droid herdr integration install kimi herdr integration install opencode herdr integration install kilo herdr integration install hermes herdr integration install qodercli herdr integration install qwen herdr integration install letta herdr integration install cursor herdr integration install mastracode herdr integration install antigravity-cli herdr integration install grok ``` -------------------------------- ### List and invoke plugin actions Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/cli-reference.mdx Action management commands. `plugin action invoke` starts the manifest command for an installed, enabled, platform-compatible plugin action and prints the started command log record in the JSON response. Use the qualified action id (`plugin.id.action`) when more than one plugin uses the same action id; local action ids cannot contain dots, so qualified ids remain unambiguous even when plugin ids contain dots. ```bash herdr plugin action list [--plugin ID] herdr plugin action invoke [--plugin ID] ``` -------------------------------- ### Set update channel to stable Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Switch a direct install back to the stable update channel. Stable is recommended for normal Windows use; preview can regress. Existing Windows preview installs remain on preview until switched explicitly. ```bash herdr channel set stable ``` -------------------------------- ### Install OMP integration Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the OMP integration. Herdr writes the bundled extension to ~/.omp/agent/extensions/herdr-omp-agent-state.ts. It refuses the install if Pi and OMP resolve to the same extension directory. ```bash herdr integration install omp ``` -------------------------------- ### Install Letta Code hook: herdr integration install letta Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Letta Code integration hook. Installation is experimental and CLI-only; it is not listed in the Settings integration screen or the JSON integration API, and herdr integration status reports it as letta (experimental). The quiet SessionStart hook reports the conversation ID for native restore, while Letta Code state still comes from Herdr's screen manifest detection. Herdr uses ~/.letta, which must already exist; install writes hooks/herdr-agent-session.sh (or .ps1 on Windows) and adds a Herdr entry to settings.json. ```bash herdr integration install letta ``` -------------------------------- ### CMakeLists.txt: Using zig cc as the C/CXX compiler Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/dist/cmake/README.md Shows the required setup for cross-compiling with zig cc. The GhosttyZigCompiler.cmake module must be included before project(), so it cannot be consumed via FetchContent. ```cmake cmake_minimum_required(VERSION 3.19) include(cmake/GhosttyZigCompiler.cmake) ghostty_zig_compiler(ZIG_TARGET x86_64-linux-gnu) project(myapp LANGUAGES C CXX) FetchContent_MakeAvailable(ghostty) ghostty_vt_add_target(NAME linux-amd64 ZIG_TARGET x86_64-linux-gnu) add_executable(myapp main.c) target_link_libraries(myapp PRIVATE ghostty-vt-static-linux-amd64) ``` -------------------------------- ### Set update channel to preview Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Opt into preview builds from the `master` branch for direct installs on Linux, macOS, and Windows. Changing channels checks the selected channel and installs its latest binary; if that fails, run `herdr update` to retry from the configured channel. ```bash herdr channel set preview ``` -------------------------------- ### Install, update, list, uninstall, enable, disable plugins Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/cli-reference.mdx Core plugin management commands. `plugin install` accepts GitHub shorthand only (e.g., `ogulcancelik/herdr-plugin-examples/worktree-bootstrap`), uses `git`, shows a trust preview in interactive terminals, and stores GitHub installs in a Herdr-managed directory. Use `--yes` for noninteractive installs. `plugin update` refreshes every GitHub-managed plugin when no targets are given, preserves each install's requested ref, skips unchanged commits, and ignores locally linked plugins during bulk updates. `plugin list` is human-readable by default; pass `--json` for the raw API response. ```bash herdr plugin install /[/subdir...] [--ref REF] [--yes] herdr plugin update [...] [--yes] herdr plugin list [--plugin ID] [--json] herdr plugin uninstall herdr plugin enable herdr plugin disable ``` -------------------------------- ### Install Pi integration Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the Pi integration. Herdr writes the bundled extension to ~/.pi/agent/extensions/herdr-agent-state.ts, or to $PI_CODING_AGENT_DIR/extensions/herdr-agent-state.ts if PI_CODING_AGENT_DIR is set. Uninstall removes only that extension file. ```bash herdr integration install pi ``` -------------------------------- ### Switch to preview channel and update Source: https://github.com/herdrdev/herdr/blob/master/AGENTS.md Opt-in to the preview update channel for direct Herdr installs. Run these commands to set the channel to preview and apply the update. ```bash herdr channel set preview herdr update ``` -------------------------------- ### Start agent with herdr agent start Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-automation.mdx Starts an agent in a specified pane using the codex kind and passes arguments after -- to the executable. Returns only after Herdr detects the agent and marks it ready; if detection reports blocked, returns agent_not_ready immediately. Startup waits 30 seconds by default; --timeout must be greater than 3000 and no more than 300000 milliseconds. ```bash herdr agent start reviewer --kind codex --pane "$review_pane" -- -m gpt-5.4 ``` -------------------------------- ### Install OpenCode plugin Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the OpenCode integration plugin. Supports OpenCode V1 1.18.29 or later and OpenCode V2 (tested with beta 19242). Requires an existing OpenCode config directory. Installs plugin files and registers TUI plugins in `tui.jsonc` (V1) and `cli.json` (V2). Restart the OpenCode TUI after installation. ```bash herdr integration install opencode ``` -------------------------------- ### agent start Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-automation.mdx Starts a supported agent in an existing pane. This command resolves the live agent and rejects the operation if that agent no longer controls the pane. ```APIDOC ## agent start ### Description Starts a supported agent in an existing pane. This command resolves the live agent and rejects the operation if that agent no longer controls the pane. ### Method CLI command ### Endpoint `agent start` ### Parameters No parameters documented. ### Request Example No request body documented. ### Response No response schema documented. ``` -------------------------------- ### Install Qoder CLI hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the Qoder CLI hook. Herdr uses `~/.qoder` by default, or `QODER_CONFIG_DIR` when set; the Qoder config directory must already exist. Install writes `hooks/herdr-agent-state.sh` and updates `settings.json` with Herdr hook entries. ```bash herdr integration install qodercli ``` -------------------------------- ### agent start Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-automation.mdx Starts an agent in a specified pane with a given kind and optional arguments. Returns when the agent is detected and ready, or immediately if detection reports blocked. ```APIDOC ## agent start ### Description Starts an agent in a specified pane with a given kind and optional arguments. Returns when the agent is detected and ready, or immediately if detection reports blocked. ### Command `herdr agent start --kind --pane [--timeout ] [-- ]` ### Parameters - **name** (string) - Required - Unique live agent name matching `[a-z][a-z0-9_-]{0,31}`. - **--kind** (string) - Required - Supported agent kind (e.g., `codex`, `claude`, `pi`). - **--pane** (string) - Required - Pane ID (e.g., `w1:p2`) hosting the agent. - **--timeout** (integer) - Optional - Startup timeout in milliseconds (default 30000, must be >3000 and <=300000). - **--** (string) - Optional - Arguments passed unchanged to the agent executable. ### Example ```bash herdr agent start reviewer --kind codex --pane "$review_pane" -- -m gpt-5.4 ``` ### Response - On success: returns after agent is detected and ready. - If detection reports `blocked`: returns `agent_not_ready` immediately. - Name remains available for `agent read` and `agent send-keys`; becomes ready for prompts after detection reports `idle`. ``` -------------------------------- ### Install a plugin from GitHub Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/marketplace.mdx Use this command to install a plugin from a public GitHub repository that has a herdr-plugin.toml manifest at its root or in a subdirectory. The repository must be tagged with the herdr-plugin topic to be listed in the marketplace. ```bash herdr plugin install owner/repo[/subdir...] ``` -------------------------------- ### CMakeLists.txt: Using find_package for ghostty-vt Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/dist/cmake/README.md Use after installing libghostty-vt. Finds the package, adds an executable, and links it against the ghostty-vt::ghostty-vt target. ```cmake find_package(ghostty-vt REQUIRED) add_executable(myapp main.c) target_link_libraries(myapp PRIVATE ghostty-vt::ghostty-vt) ``` -------------------------------- ### Install Herdr on Windows with PowerShell Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Downloads and runs the official Herdr installer for Windows using a fileless PowerShell command. If endpoint security blocks this command, use the Command Prompt fallback instead. ```powershell powershell -ExecutionPolicy Bypass -c "irm https://herdr.dev/install.ps1 | iex" ``` -------------------------------- ### Generate and install CMake package config Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Generates and installs CMake package configuration files for find_package(). Uses configure_package_config_file and write_basic_package_version_file with SameMajorVersion compatibility. ```cmake include(CMakePackageConfigHelpers) configure_package_config_file( "${CMAKE_CURRENT_SOURCE_DIR}/dist/cmake/ghostty-vt-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/ghostty-vt-config.cmake" INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ghostty-vt" ) write_basic_package_version_file( "${CMAKE_CURRENT_BINARY_DIR}/ghostty-vt-config-version.cmake" VERSION "${PROJECT_VERSION}" COMPATIBILITY SameMajorVersion ) install( FILES "${CMAKE_CURRENT_BINARY_DIR}/ghostty-vt-config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/ghostty-vt-config-version.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ghostty-vt" ) ``` -------------------------------- ### Install GitHub Copilot CLI hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the GitHub Copilot CLI integration hook. Requires the Copilot config directory to already exist; uses `~/.copilot` or `COPILOT_HOME`. Writes `hooks/herdr-agent-state.sh` and updates `settings.json` with a `SessionStart` hook entry. ```bash herdr integration install copilot ``` -------------------------------- ### Format Nix modules with Alejandra Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Format Nix modules with Alejandra for non-Nix users. Install Alejandra first and ensure the version matches devShell.nix. ```bash alejandra . ``` -------------------------------- ### Install Herdr with mise Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Installs Herdr using the mise version manager. If mise reports 'herdr not found in mise tool registry', update mise or use the temporary fallback 'mise use -g github:herdrdev/herdr'. ```bash mise use -g herdr ``` -------------------------------- ### Plugin directory structure Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/plugins.mdx A plugin starts with a directory containing herdr-plugin.toml and an executable script or program. ```text my-plugin/ herdr-plugin.toml index.js ``` -------------------------------- ### Clone Ghostty repository Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Clone the Ghostty repository and change into the directory to start development. This is the first step before building from a Git checkout. ```shell git clone https://github.com/ghostty-org/ghostty cd ghostty ``` -------------------------------- ### Set up Windows cross-compilation with cargo install xwin and just setup-windows-cross Source: https://github.com/herdrdev/herdr/blob/master/CONTRIBUTING.md Set up the Windows cross-compilation target once. `xwin` downloads the Windows SDK and CRT directly and prompts for license acceptance. The SDK is stored in `~/.local/share/herdr/windows-cross/` and reused across worktrees. ```bash cargo install xwin --locked just setup-windows-cross ``` -------------------------------- ### Start or attach to local Herdr session Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/how-to-work.mdx Run from the project directory to start or attach to your local background session. Panes keep running after detaching with ctrl+b q. ```bash herdr ``` -------------------------------- ### Integrate libghostty-vt with find_package Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Alternative integration using find_package after installing to a prefix. Links the shared library via the ghostty-vt::ghostty-vt target. ```cmake find_package(ghostty-vt REQUIRED) target_link_libraries(myapp PRIVATE ghostty-vt::ghostty-vt) # shared ``` -------------------------------- ### Start a coding agent in a pane Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/quick-start.mdx Runs the Claude agent; Herdr detects it automatically. Other supported agents include codex, pi, and opencode. ```bash claude ``` -------------------------------- ### Ghostty configuration file syntax example Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/src/build/mdgen/ghostty_5_header.md Shows the basic key = value syntax, comments, blank lines, keybindings, and palette color definitions. Whitespace around the equals sign is ignored. Blank lines are ignored. Palette entries define the 16 colors with regular and bold variants. ```text # The syntax is "key = value". The whitespace around the equals doesn't matter. background = 282c34 foreground= ffffff # Blank lines are ignored! keybind = ctrl+z=close_surface keybind = ctrl+d=new_split:right # Colors can be changed by setting the 16 colors of `palette`, which each color # being defined as regular and bold. # # black palette = 0=#1d2021 palette = 8=#7c6f64 # red palette = 1=#cc241d palette = 9=#fb4934 # green palette = 2=#98971a palette = 10=#b8bb26 # yellow palette = 3=#d79921 palette = 11=#fabd2f # blue palette = 4=#458588 palette = 12=#83a598 # purple palette = 5=#b16286 palette = 13=#d3869b # aqua palette = 6=#689d6a palette = 14=#8ec07c # white palette = 7=#a89984 palette = 15=#fbf1c7 ``` -------------------------------- ### Install Claude Code hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the Claude Code hook. The hook reports session identity to the local Herdr socket on session start. Reinstall after upgrading to migrate the previous wildcard matcher. ```bash herdr integration install claude ``` -------------------------------- ### Disable onboarding with onboarding = false Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/configuration.mdx Set `onboarding = false` to skip the first-run setup flow. Missing or true triggers first-run setup; continuing writes this value and opens settings on the integrations tab. ```toml onboarding = false ``` -------------------------------- ### Run checks and release a stable version Source: https://github.com/herdrdev/herdr/blob/master/AGENTS.md Stable releases start from an isolated checkout at the selected published preview tag. Run `just check` and then `just release` with the target version and preview build ID. The `Preview` and `Previous-Stable` trailers are required provenance. ```bash just check just release 0.x.y preview- ``` -------------------------------- ### Start helper, assign work, and wait for settlement Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-automation.mdx Splits the current pane to create a review pane, starts a Codex agent on it, prompts the agent to review the current diff, and reads its recent output. Use when you need to delegate a task and wait for completion. ```bash split=$(herdr pane split --current --direction right --no-focus) review_pane=$(printf '%s\n' "$split" | jq -r '.result.pane.pane_id') herdr agent start reviewer --kind codex --pane "$review_pane" -- -m gpt-5.4 herdr agent prompt reviewer "Review the current diff" --wait --timeout 120000 herdr agent read reviewer --source recent-unwrapped --lines 120 ``` -------------------------------- ### Switch Xcode version with xcode-select Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Use this command to select the correct Xcode version when building Ghostty on macOS. Run it with sudo to switch the active Xcode installation to /Applications/Xcode.app. ```shell-session sudo xcode-select --switch /Applications/Xcode.app ``` -------------------------------- ### Herdr plugin manifest example (herdr-plugin.toml) Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/plugins.mdx Defines a plugin's metadata, build steps, startup hook, actions, event hooks, panes, and link handlers. Top-level id, name, version, and min_herdr_version are required; platforms and other fields are optional. Commands are argv arrays run without a shell. ```toml id = "example.layout" name = "Layout" version = "0.1.0" min_herdr_version = "0.7.0" description = "Apply project layouts" platforms = ["linux", "macos", "windows"] [[build]] command = ["npm", "ci"] [[build]] command = ["npm", "run", "build"] platforms = ["linux", "macos"] [[startup]] command = ["node", "dist/restore.js"] [[actions]] id = "apply" title = "Apply layout" contexts = ["workspace"] command = ["node", "dist/apply.js"] [[events]] on = "worktree.created" command = ["herdr", "workspace", "list"] [[panes]] id = "board" title = "Project board" placement = "overlay" command = ["herdr-board"] [[link_handlers]] id = "github-issue" title = "Open GitHub issue" pattern = "^https://github\\.com/[^/]+/[^/]+/(issues|pull)/[0-9]+$" action = "apply" ``` -------------------------------- ### Install Cursor Agent CLI hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Herdr integration hook for Cursor Agent CLI. The hook reports session identity via Cursor's `sessionStart` hook when Cursor runs inside a Herdr pane. Herdr uses `~/.cursor` by default, or `CURSOR_CONFIG_DIR` if set; the config directory must already exist. Install writes `herdr-agent-state.sh` (`herdr-agent-state.ps1` on Windows) and adds a `sessionStart` entry to `hooks.json`. Uninstall removes the hook entry and deletes the script. After a session start event, Herdr can resume the pane with `cursor-agent --resume `, but `cursor-agent` must be on `PATH`. ```bash herdr integration install cursor ``` -------------------------------- ### Start agent with native arguments after -- Source: https://github.com/herdrdev/herdr/blob/master/skills/herdr/SKILL.md Pass native agent arguments after the -- separator. Use the kind requested by the user; run `herdr agent` to inspect installed kinds and options. ```bash herdr agent start reviewer --kind codex --pane -- ``` -------------------------------- ### Define and run a custom Ghostty NixOS VM with flake.nix Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Create a custom Ghostty VM by defining a flake.nix that imports the ghostty flake and uses its create-gnome-vm function. The module option can be a path to a configuration.nix or an inline module; here it adds btop to systemPackages. Run the generated VM with the nix run command; a ghostty.qcow2 file persists changes and can be deleted to reset the VM. ```nix { inputs = { nixpkgs.url = "nixpkgs/nixpkgs-unstable"; ghostty.url = "github:ghostty-org/ghostty"; }; outputs = { nixpkgs, ghostty, ... }: { nixosConfigurations.custom-vm = ghostty.create-gnome-vm { nixpkgs = nixpkgs; system = "x86_64-linux"; overlay = ghostty.overlays.releasefast; # module = ./configuration.nix # also works module = {pkgs, ...}: { environment.systemPackages = [ pkgs.btop ]; }; }; }; } ``` ```shell nix run .#nixosConfigurations.custom-vm.config.system.build.vm ``` -------------------------------- ### Set shell startup mode with terminal.shell_mode Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/configuration.mdx Controls whether newly created interactive pane shells start as login shells. `"auto"` starts login shells on macOS (so login-only PATH setup runs) and keeps non-login behavior elsewhere. Use `"login"` to force login-shell startup or `"non_login"` to force non-login startup. Command panes, detached custom command keybindings, and explicit argv launches keep their existing execution paths. ```toml [terminal] shell_mode = "auto" ``` -------------------------------- ### Build Ghostty for system packages Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/PACKAGING.md First fetch dependencies into a cache directory (requires internet). Then build Ghostty offline, installing to /tmp/ghostty with prefix /usr. The build uses the offline cache and disables network access. ```sh ZIG_GLOBAL_CACHE_DIR=/tmp/offline-cache ./nix/build-support/fetch-zig-cache.sh ``` ```sh DESTDIR=/tmp/ghostty \ zig build \ --prefix /usr \ --system /tmp/offline-cache/p \ -Doptimize=ReleaseFast \ -Dcpu=baseline ``` -------------------------------- ### Install Herdr with Homebrew Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Installs Herdr using the Homebrew package manager on macOS or Linux. Requires Homebrew to be already installed. ```bash brew install herdr ``` -------------------------------- ### Install Herdr on Linux or macOS with curl Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Downloads and runs the official Herdr installer script for Linux and macOS. The installer places the release binary on your PATH and uses the stable update channel for new direct installs. ```bash curl -fsSL https://herdr.dev/install.sh | sh ``` -------------------------------- ### Install Herdr skill with npx skills Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agent-skill.mdx Installs the Herdr agent skill globally using the `npx skills` command. The `-g` flag installs globally for supported agents; omit it to install into the current project. Rerun this command if the skill was previously installed at the repository root, as it replaces the oversized copy and records the new location. ```bash npx skills add herdrdev/herdr --skill herdr -g ``` -------------------------------- ### Use local Ghostty checkout with FETCHCONTENT_SOURCE_DIR_GHOSTTY Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Use a local Ghostty checkout instead of fetching by setting FETCHCONTENT_SOURCE_DIR_GHOSTTY to the local path. ```cmake cmake -B build -DFETCHCONTENT_SOURCE_DIR_GHOSTTY=/path/to/ghostty ``` -------------------------------- ### Update Herdr manually Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Run `herdr update` to manually update Herdr. Use this only for installs managed by Herdr's own installer; update Homebrew, mise, and Nix installs through their package managers instead. ```bash herdr update ``` -------------------------------- ### CMakeLists.txt: FetchContent integration for ghostty-vt Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/dist/cmake/README.md Add to your project's CMakeLists.txt to fetch and build Ghostty, then link target to ghostty-vt. Headers are added to the include path automatically. ```cmake include(FetchContent) FetchContent_Declare(ghostty GIT_REPOSITORY https://github.com/ghostty-org/ghostty.git GIT_TAG main ) FetchContent_MakeAvailable(ghostty) add_executable(myapp main.c) target_link_libraries(myapp PRIVATE ghostty-vt) ``` -------------------------------- ### Using a local checkout of Ghostty Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/dist/cmake/README.md Commands to configure and build a CMake project that uses a local Ghostty source checkout via FETCHCONTENT_SOURCE_DIR_GHOSTTY. ```shell-session cmake -B build -DFETCHCONTENT_SOURCE_DIR_GHOSTTY=/path/to/ghostty cmake --build build ``` -------------------------------- ### Link local plugin for development Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/plugins.mdx Links a local plugin directory, then configures, lists actions, invokes an action, opens a pane, and lists logs. ```bash herdr plugin link /path/to/plugin herdr plugin config-dir example.layout herdr plugin action list --plugin example.layout herdr plugin action invoke example.layout.apply herdr plugin pane open --plugin example.layout --entrypoint board herdr plugin log list --plugin example.layout ``` -------------------------------- ### Format with Prettier Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Run Prettier from the repo root to format docs and resources (excluding Zig code) before committing. A CI check fails builds with improper formatting, so run this locally first. ```bash prettier --write . ``` -------------------------------- ### Install Hermes Agent plugin Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the Hermes Agent plugin. Herdr writes `plugins/herdr-agent-state/` under the Hermes home directory and enables `herdr-agent-state` in its `config.yaml`. The Hermes config directory must already exist; restart Hermes after installing so the plugin loads. ```bash herdr integration install hermes ``` -------------------------------- ### Autostart Elvish ghostty-integration in rc.elv Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/src/shell-integration/README.md Autostart the Elvish ghostty-integration module from rc.elv. Detects Ghostty by checking the TERM environment variable and safely ignores errors if the module is unavailable. ```elvish if (eq $E:TERM "xterm-ghostty") { try { use ghostty-integration } catch { } } ``` -------------------------------- ### herdr integration コマンド(install/uninstall/status) Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/ja/cli-reference.mdx herdr CLI のインテグレーション管理コマンド。install と uninstall で各ツール(pi, omp, claude, codex, copilot, devin, droid, kimi, opencode, kilo, hermes, mastracode, qodercli, qwen, letta, cursor)を追加・削除し、status で現在の状態を確認できる。status には --outdated-only オプションを指定可能。 ```bash herdr integration install pi herdr integration install omp herdr integration install claude herdr integration install codex herdr integration install copilot herdr integration install devin herdr integration install droid herdr integration install kimi herdr integration install opencode herdr integration install kilo herdr integration install hermes herdr integration install mastracode herdr integration install qodercli herdr integration install qwen herdr integration install letta herdr integration install cursor herdr integration uninstall pi herdr integration uninstall omp herdr integration uninstall claude herdr integration uninstall codex herdr integration uninstall copilot herdr integration uninstall devin herdr integration uninstall droid herdr integration uninstall kimi herdr integration uninstall opencode herdr integration uninstall kilo herdr integration uninstall hermes herdr integration uninstall mastracode herdr integration uninstall qodercli herdr integration uninstall qwen herdr integration uninstall letta herdr integration uninstall cursor herdr integration status [--outdated-only] ``` -------------------------------- ### Install Antigravity CLI integration hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Antigravity CLI hook. Herdr uses `~/.gemini/config/` by default, or `ANTIGRAVITY_CLI_CONFIG_DIR` when set; the directory must already exist. Install writes `hooks/herdr-agent-state.sh` (or `.ps1` on Windows) and adds a Herdr-owned `herdr` block to `hooks.json`, leaving other hooks untouched. Uninstall removes the block and script. ```bash herdr integration install antigravity-cli ``` -------------------------------- ### Explain Agent State with herdr agent explain Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/agents.mdx Commands to explain why a pane shows a certain state. The first targets a live pane; the second uses a screen file and agent name, outputting JSON. Live explain reflects the active manifest cache. ```bash herdr agent explain herdr agent explain --file screen.txt --agent codex --json ``` -------------------------------- ### Build libghostty-vt for WebAssembly with zig Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/PACKAGING.md Build commands for libghostty-vt targeting WebAssembly. The first produces the default wasm module with all features and SIMD enabled. The second compiles out optional features to reduce binary size, keeping only the render-state API for a read-only terminal viewer. ```sh zig build -Demit-lib-vt -Dtarget=wasm32-freestanding -Doptimize=ReleaseSmall ``` ```sh zig build -Demit-lib-vt -Dtarget=wasm32-freestanding \ -Doptimize=ReleaseSmall -Dvt-features=-all,+render-state ``` -------------------------------- ### herdr integration install Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/cli-reference.mdx Installs a specified integration. The command is invoked with the integration name as an argument. ```APIDOC ## [CLI] herdr integration install ### Description Installs a specified integration. The command is invoked with the integration name as an argument. ### Command `herdr integration install ` ### Parameters #### Positional Arguments - **integration** (string) - Required - The name of the integration to install. Supported values: `pi`, `omp`, `claude`, `codex`, `copilot`, `devin`, `droid`, `kimi`, `opencode`, `kilo`, `hermes`, `qodercli`, `qwen`, `letta`, `cursor`, `mastracode`, `grok`. ``` -------------------------------- ### Install Codex hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Codex integration hook. Requires the Codex config directory to already exist; uses `~/.codex` or `CODEX_HOME`. Writes `herdr-agent-state.sh`, updates `hooks.json`, and ensures `[features] hooks = true` in `config.toml`. ```bash herdr integration install codex ``` -------------------------------- ### Install Grok CLI integration hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Grok CLI hook. Herdr uses `~/.grok` by default, or `GROK_HOME` when set; the config directory must already exist. Install writes a self-contained `hooks/herdr.json` with the Herdr `SessionStart` entry next to `hooks/herdr-agent-state.sh` (or `.ps1` on Windows) and never edits other hook files. Uninstall removes exactly those two Herdr-owned files. ```bash herdr integration install grok ``` -------------------------------- ### Install Kilo Code CLI plugin Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Run this command to install the Kilo Code CLI plugin. Herdr writes the plugin to `~/.config/kilo/plugin/herdr-agent-state.js`; the Kilo config directory must already exist. Uninstall removes only that plugin file. ```bash herdr integration install kilo ``` -------------------------------- ### CMakeLists.txt for ghostty-vt library Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt CMakeLists.txt for the ghostty-vt library. Sets the minimum CMake version, project name, and a cache variable for extra Zig build flags. Maps CMake build types to Zig optimization levels, storing the result in _GHOSTTY_ZIG_OPT_FLAG and appending it to GHOSTTY_ZIG_BUILD_FLAGS when set. ```cmake cmake_minimum_required(VERSION 3.19) project(ghostty-vt VERSION 0.1.0 LANGUAGES C) # --- Options ---------------------------------------------------------------- set(GHOSTTY_ZIG_BUILD_FLAGS "" CACHE STRING "Additional flags to pass to zig build") # Map CMake build types to Zig optimization levels. The result is stored in # _GHOSTTY_ZIG_OPT_FLAG so both the native build and ghostty_vt_add_target() # can reuse it without duplicating the mapping logic. set(_GHOSTTY_ZIG_OPT_FLAG "") if(CMAKE_BUILD_TYPE) string(TOUPPER "${CMAKE_BUILD_TYPE}" _bt) if(_bt STREQUAL "RELEASE" OR _bt STREQUAL "MINSIZEREL" OR _bt STREQUAL "RELWITHDEBINFO") set(_GHOSTTY_ZIG_OPT_FLAG "-Doptimize=ReleaseFast") endif() unset(_bt) endif() if(_GHOSTTY_ZIG_OPT_FLAG) list(APPEND GHOSTTY_ZIG_BUILD_FLAGS "${_GHOSTTY_ZIG_OPT_FLAG}") endif() ``` -------------------------------- ### Install Devin CLI hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Devin CLI integration hook. Requires the Devin config directory to already exist; uses `$XDG_CONFIG_HOME/devin`, `~/.config/devin`, or `%APPDATA%\devin`. Writes `herdr-agent-state.sh` on Unix or `herdr-agent-state.ps1` on Windows and updates `config.json`. ```bash herdr integration install devin ``` -------------------------------- ### Check server launch context with launchctl managername Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/troubleshooting.mdx Run this command in a Herdr pane to check the server launch context. Output 'Background' is normal for automatically started macOS servers and does not by itself indicate a Keychain problem. ```bash launchctl managername ``` -------------------------------- ### Install Droid hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Droid integration hook. Requires an existing Factory config directory (`~/.factory`). Writes `hooks/herdr-agent-state.sh`, updates `settings.json` with a Herdr `SessionStart` hook entry, and removes older Herdr Droid hook entries from `hooks.json` if present. ```bash herdr integration install droid ``` -------------------------------- ### Integrate libghostty-vt with FetchContent Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/CMakeLists.txt Recommended integration for downstream CMake projects using FetchContent. Links the shared library with ghostty-vt or the static library with ghostty-vt-static. ```cmake include(FetchContent) FetchContent_Declare(ghostty GIT_REPOSITORY https://github.com/ghostty-org/ghostty.git GIT_TAG main ) FetchContent_MakeAvailable(ghostty) target_link_libraries(myapp PRIVATE ghostty-vt) # shared target_link_libraries(myapp PRIVATE ghostty-vt-static) # static ``` -------------------------------- ### Run Valgrind memory leak check via zig build Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Builds a Ghostty executable with Valgrind support and runs Valgrind with proper flags to suppress known false positives. Combine with the same build args as `run`, such as additional configurations after a trailing `--`. ```sh zig build run-valgrind ``` -------------------------------- ### Install Kimi Code CLI hook Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/integrations.mdx Installs the Kimi Code CLI integration hook. Requires Kimi Code CLI 0.14.0 or newer and an existing Kimi Code config directory (default `~/.kimi-code` or `KIMI_CODE_HOME`). Writes `hooks/herdr-agent-state.sh` and appends Herdr-managed `[[hooks]]` entries to `config.toml`. ```bash herdr integration install kimi ``` -------------------------------- ### Declare popup placement on a plugin pane entrypoint Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/plugins.mdx Sets the pane placement to 'popup' in the manifest so the pane always opens as a transient session-modal popup. Accepts optional width and height; here width is a percentage string and height is a number. Popups receive all terminal input, close on command exit or popup.close, and are clamped to minimum dimensions. ```toml [[panes]] id = "picker" title = "Picker" platforms = ["linux", "macos"] placement = "popup" width = "80%" height = 20 command = ["sh", "picker.sh"] ``` -------------------------------- ### Start a codex agent with herdr agent start Source: https://github.com/herdrdev/herdr/blob/master/skills/herdr/SKILL.md Starts a supported agent in an available shell pane with a unique name. The command returns only after Herdr detects the agent ready; if blocked during startup it returns agent_not_ready but keeps the name available for agent read and send-keys. Startup defaults to a 30-second timeout. ```bash herdr agent start reviewer --kind codex --pane ``` -------------------------------- ### Enter Herdr development shell with Nix Source: https://github.com/herdrdev/herdr/blob/master/docs/versions/0.9.5/website/src/content/docs/install.mdx Opens the development shell exposed by the Herdr flake. Use the same Nix workflow to update Herdr. ```bash nix develop github:herdrdev/herdr ``` -------------------------------- ### Format with Prettier via Nix Source: https://github.com/herdrdev/herdr/blob/master/vendor/libghostty-vt/HACKING.md Use the Nix development shell to run Prettier with the pinned version from devShell.nix. This ensures the formatting matches the CI check. ```bash nix develop -c prettier --write . ```