1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Reference: commands
## `sidekicks`
```text
sidekicks [--config <file>]
```
| Option / variable | Effect |
| --- | --- |
| `--config <file>` | Configuration file to use. Takes precedence over everything else. |
| `SIDEKICKS_CONFIG` | Configuration file when `--config` is not given. |
| (none) | `<user config dir>/sidekicks/config.yaml`, created with comments when missing. |
The order is detailed in the [configuration reference](configuration.md#location).
## `make` targets
| Target | Effect |
| --- | --- |
| `help` | Lists the targets. |
| `install` | `pnpm install` in `frontend/` (macOS and Linux native binaries). |
| `bindings` | Regenerates `frontend/bindings` from the Go services and events (`wails3 generate bindings -clean=true -ts -i`). |
| `frontend` | `install`, then builds `frontend/dist`. |
| `dev` | `wails3 dev`: the application with hot reload. |
| `build` | `wails3 build`: `bin/sidekicks`. |
| `package` | `wails3 package`: on macOS `bin/sidekicks.app`. |
| `package-linux` | `scripts/package.sh linux`: `.deb`, `.rpm`, `.AppImage` and `.tar.gz` for the machine's architecture, into `dist/`. Needs `file` (AppImage) and `rpm`. |
| `package-windows` | `scripts/package.sh windows amd64` then `arm64`: NSIS installer and `.zip` for each, cross-built, into `dist/`. Needs `makensis` and `zip`. |
| `release-build` | `scripts/build-release.sh`: on the Mac, every release package (macOS arm64, Windows amd64 and arm64) into `dist/` and `SHA256SUMS`. |
| `release-check` | `local-ci-01-check.sh`: `make verify`. |
| `release-package` | `local-ci-02-build.sh`: builds, signs and notarizes into `release/<TAG>/`. |
| `package-macos` | `scripts/package.sh macos`: `.dmg` and `.zip` for Apple Silicon (arm64, signed ad hoc; no Intel build), into `dist/`. macOS only. |
| `install-test-config` | `scripts/install-test-config.sh`: writes `examples/test-agents.yaml` at the default configuration location with absolute paths to the repository: each agent is `mm -acp -config agent.yaml` started in its folder, with `afterStop: [<repo>/scripts/agents.sh, unload, <agent>]` to unload its model when it stops, `mm` written with its absolute path (`MM_BIN`, or the one in `PATH`), and the current `PATH` in each agent's `env`; an existing file is kept as `config.yaml.<date>.bak`. |
| `check` | `lint` then `test`. |
| `verify` | `check` then `bindings-check`: what to run before merging (there is no CI). |
| `check-linux` | `scripts/check-linux.sh`: `make check` in the Linux container of `scripts/linux-packages.Dockerfile` (`LINUX_ARCH`, default the Mac's architecture), the repository mounted at `/src`. Needs Docker. |
| `test` | `test-go`, `test-frontend`, `test-scripts`. |
| `test-go` | `go test ./...` (builds `frontend/dist` first if missing). |
| `test-frontend` | `vitest run` in `frontend/`. |
| `test-scripts` | `scripts/agents_test.sh`, `scripts/check-license-headers_test.sh`, `scripts/package_test.sh`. |
| `test-real` | `go test -tags realagents -count=1 ./...` — needs `mm` and llmman. |
| `lint` | `lint-go`, `lint-frontend`, `lint-headers`. |
| `lint-go` | golangci-lint v2.14.0 (`tools/go.mod`), configuration `.golangci.yml`. |
| `lint-frontend` | `svelte-check`. |
| `lint-headers` | `scripts/check-license-headers.sh`. |
| `bindings-check` | `bindings`, then fails if `frontend/bindings` differs from the index (`git diff`) or holds files git does not know. |
## `scripts/check-license-headers.sh`
```text
scripts/check-license-headers.sh [repository root]
```
Lists the source files (`.go .ts .js .svelte .css .html .sh .py .yml .yaml`, `Makefile`) known to git whose first three lines do not contain `Sidekicks Source-Available License`, and exits 1 if there is one. Not checked: `frontend/bindings`, Wails' `build/` and `Taskfile.yml`, `*.d.ts`, `pnpm-lock.yaml`, `vite.config.ts`, `svelte.config.js`, `agents/`, `*/testdata/*`, `git.sh`, `new.*.sh`, `tag-step.sh`, `.claude/`, `.tickets/`.
## `scripts/package.sh`
```text
scripts/package.sh linux | windows [amd64|arm64] | macos
scripts/package.sh names <system> <arch>
scripts/package.sh release-names
scripts/package.sh version
```
| Command | Effect |
| --- | --- |
| `linux`, `windows`, `macos` | Builds the packages of that system into `dist/` (see the `package-*` targets), then lists `dist/`. |
| `names <system> <arch>` | Prints the file names a build produces, one per line; builds nothing. |
| `release-names` | Prints the files of a release: the names of each target of `RELEASE_TARGETS` (`macos/arm64 windows/amd64 windows/arm64`), then `SHA256SUMS`. Used by `local-ci-02-build.sh`. |
| `version` | Prints `info.version` of `build/config.yml`. |
| System | Files (`<v>` = version) |
| --- | --- |
| `linux` | `sidekicks_<v>_linux_<arch>.deb`, `.rpm`, `.tar.gz`, `Sidekicks-<v>-<x86_64\|aarch64>.AppImage` |
| `windows` | `Sidekicks-<v>-windows-<amd64\|arm64>-installer.exe`, `sidekicks_<v>_windows_<amd64\|arm64>.zip` |
| `macos` | `Sidekicks-<v>-macos-arm64.dmg`, `Sidekicks-<v>-macos-arm64.zip` |
## `scripts/build-release.sh`
```text
[WINDOWS_ARCHES="amd64 arm64"] [LINUX_ARCHES="amd64"] [SKIP="macos windows"] scripts/build-release.sh
```
Checks every prerequisite first, then empties `dist/` and builds: macOS with `scripts/package.sh macos` (macOS only), Windows with `scripts/package.sh windows <arch>` for each of `WINDOWS_ARCHES` (default `amd64 arm64`; needs `makensis` and `zip`), and, only when `LINUX_ARCHES` is set (empty by default: no Linux in the releases for now), Linux with `scripts/package.sh linux` in a container per architecture, built from `scripts/linux-packages.Dockerfile` (`ubuntu:26.04`, Go of `go.mod`, pnpm of `frontend/package.json`, Wails CLI) with the repository mounted at `/src` and the Go module cache in the volume `sidekicks-gomod-<arch>`. Finally writes `dist/SHA256SUMS`. `SKIP` leaves the systems it names out. Fails, before building anything, when a prerequisite is missing (macOS host, `makensis`, `zip`, Docker for Linux).
## `scripts/sync-build-assets.sh`
```text
scripts/sync-build-assets.sh [--check]
```
Runs `wails3 task common:update:build-assets` (regenerates the Info.plist, Windows and Linux files from `build/config.yml`), puts `LSMinimumSystemVersion` back to `13.0.0` in `build/darwin/Info.plist` and `Info.dev.plist`, then checks that both plists carry `info.version` and `13.0.0`. `--check` only checks. Run by `local-ci-02-build.sh`. Why: [How to set the version](../how-to/set-the-version.md).
## `local-ci-*.sh`
The local CI, at the root of the repository (procedure: [RELEASING.md](../../../RELEASING.md)). All read `.release.env` (`TAG`, `ABOUT`, `OWNER`, `REPO`, `SIGN_IDENTITY`, `NOTARY_PROFILE`; another file with `LOCAL_CI_ENV_FILE`) and, for Rickub, `CI_TOKEN` in `.ci.cd.token.env`.
| Script | What it does |
| --- | --- |
| `local-ci-00-common.sh` | Shared by the others (sourced). |
| `local-ci-01-check.sh` | `make verify`. |
| `local-ci-02-build.sh` | `scripts/build-release.sh`, then, with `SIGN_IDENTITY`, signs, notarizes and staples the app and the `.dmg`; stages `release/<TAG>/` and its `SHA256SUMS`. `TAG` must be `v` + `info.version`, or `v9.9.9…` (test). |
| `local-ci-03-create-draft.sh` | Creates the tag and a draft prerelease with notes. Refuses a working tree with changes, a `HEAD` that is not the remote's `main`, a `HEAD` with `.github/workflows`. `LOCAL_CI_PRINT_NOTES=1` prints the notes only; `LOCAL_CI_SKIP_GIT_CHECK=1` skips the git checks. |
| `local-ci-04-upload.sh` | Pushes a temporary orphan branch `local-ci-publish-<TAG>` whose one-job workflow uploads the files of `SHA256SUMS` to the draft, waits for the job, deletes the branch. |
| `local-ci-05-publish.sh` | Publishes the draft as a prerelease after you type the tag, downloads and compares the public files. |
| `local-ci-06-promote.sh [tag]` | Removes the pre-release label after you type the tag. |
|