Working on assist
Run from a clone
Section titled “Run from a clone”To work on assist itself, install it from a clone instead of npm:
git clone git@github.com:staff0rd/assist.gitcd assistnpm installnpm run buildnpm install -g .From then on assist keeps the clone built and up to date (see Updating assist).
This guide is built from the clone too. It is an Astro Starlight site in docs/ with its own dependencies: npm run docs:install installs them, npm run docs:build builds the site into docs/dist/, and npm run docs:preview serves it on http://localhost:4173, reloading as pages change. Set DOCS_BASE_PATH=<path> to build for a site hosted under a sub-path.
Let assist update itself as you work
Section titled “Let assist update itself as you work”With this set up, every change a session commits ends up running in your installed assist:
- Sessions run in worktrees with trunk-based work on, so each commit pushes straight to the clone’s branch on
origininstead of raising a PR. - The installed clone sees its upstream move, pulls, and runs its
auto-buildrun entry. - Restart onto the new build from the Updates page.
Turn it on from the clone:
assist config set worktree.enabled trueassist config set worktree.trunk trueassist config set autoUpdate.enabled trueThe auto-build run entry is what an update runs after pulling. This repo’s assist.yml already defines it to run npm i, then the build script. Without one, an update pulls but does not build.
See Parallel work for how worktrees and worktree.trunk behave, and Updating assist for how updates are paused, checked and restarted.
