---
name: helix-update
description: "Bring the user's local Helix fork up to date: fetch, rebase their stack onto new upstream tips, rebuild with Steel, push to their fork."
title: helix-update
canonical_url: https://skilld.dev/gh/david-crespo/dotfiles/helix-update
last_updated: 2026-10-27T15:12:45.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install david-crespo/dotfiles/helix-update`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/helix-update`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/david-crespo/dotfiles/helix-update) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/helix-update`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/helix-update --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/helix-update --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

The user runs a custom Helix build in `/Users/david/repos/helix` (a jj repo). The stack:

- A merge commit, "merge in search position PR", whose parents are:
  - `search_position` (remote `useche`): adds a match counter limit
  - `steel-event-system` (remote `steel`, mattwparas/helix): Steel scripting, itself based on helix-editor/master
- Their own commits on top of the merge, currently the `auto-reload` bookmark (poll for external file changes and reload buffers).

Remotes: `origin` is helix-editor/helix, `mine` is the user's fork (david-crespo/helix), `steel` is mattwparas, `useche` is useche.

## Steps

1. Fetch: `jj git fetch --remote origin --remote steel --remote useche --remote mine` (needs `github.com` in `allowed_domains`). Report what moved, e.g. `jj log -r '<old steel tip>..steel-event-system'`, and check the old tip is still an ancestor (a force-push changes how to rebase).
2. Push upstream master to the fork: `jj git push --remote mine --bookmark master`. If it errors about a non-tracking `master@mine`, run `jj bookmark track master@mine` first.
3. Find the merge commit (`jj log` shows it under the user's commits) and rebase it with everything on top:
   ```
   jj rebase --ignore-immutable -s <merge-change-id> -d search_position -d steel-event-system
   ```
   `--ignore-immutable` is needed because the user's commits are authored under their work email, which `mine()` doesn't match, so jj treats them as immutable. Rebasing them is what the user asked for.
4. If there are conflicts: `jj resolve --tool mergiraf`, inspect with `jj diff`, and confirm with the user before squashing the resolution into the conflicted commit. If mergiraf can't resolve everything, stop and show the user the conflicted files rather than guessing.
5. Build and install. `steel` is not a default feature of `helix-term`, so pass it explicitly or the build has no Steel:
   ```
   killall hx; cargo install --path helix-term --locked --features steel
   ```
   The plain release profile is enough. The `opt` profile (fat LTO, `target-cpu=native`) builds much slower for no noticeable speedup in an editor.
   Run it in the background with the sandbox disabled (it installs into `~/.cargo/bin`). `killall hx` closes the user's open editors; they expect that.
6. Verify: `hx --version` shows the new commit hash. Start `hx` with no file argument in a hidden Rex session (see the `helix-interact` skill) and check the status line shows no Steel error and the custom statusline from `init.scm` renders. Check `~/.cache/helix/helix.log` for Steel errors.
7. `cargo clean` (the target dir is about 1 GiB).
8. Push the user's bookmark: `jj git push --remote mine --bookmark auto-reload`.

`jj git push` needs the sandbox disabled: the `gh` credential helper reads `~/.config/gh`, which the sandbox denies.

## Steel version

The Steel embedded in `hx` is the `steel-core` git rev pinned in `Cargo.lock` on steel-event-system, and `--locked` keeps it. Getting newer Steel into `hx` means `cargo update -p steel-core`, which moves past the rev mattwparas tested and adds a `Cargo.lock` change to the stack; only do it if asked.

`cargo xtask steel` does not change the embedded Steel. It installs the standalone `steel` CLI, `steel-language-server`, `cargo-steel-lib` and `forge` from Steel's git HEAD, runs `forge pkg refresh`, writes `helix/*.scm` API stubs into `$STEEL_HOME/cogs/helix` for the language server, and reinstalls `hx`. Skip it unless the user asks; it only matters for the steel LSP and CLI.
