Small shell helpers for installing, healing, and inspecting quadloop. All are
optional — every command here is also available directly through quadloop.
| Script | What it does | When you'd use it |
|---|---|---|
setup.sh |
One-shot install: chmod +x, symlinks quadloop onto ~/.local/bin, makes the cache dir, checks credentials. |
First time, after a fresh clone. |
build-app.sh |
swift build -c release in macos-app/ and wraps the binary into a proper Quadloop.app bundle (with Info.plist). |
You want the native macOS app. |
health-full.sh |
quadloop doctor + self-test + an HTTP probe + recent error logs. |
Something feels off. |
restart-everything.sh |
Hard-restart poller + web, then verify. | Web UI wedged or poller died. |
process-tree.sh |
Show all quadloop processes + pid files. | Suspected zombies / duplicates. |
port-check.sh |
Show what's listening on 8787 (+ nearby dev ports). | "address already in use". |
kill-port.sh |
Force-free port 8787 (SIGTERM, then SIGKILL). | port-check showed a stale holder. |
show-sessions.sh |
Pretty-print sessions + per-session mailbox sizes. | Quick state overview. |
inspect-mailboxes.sh |
Each session's mailbox: line count + last 3 lines. | quadloop wait returns stale data. |
clear-all-mailboxes.sh |
Truncate every session's mailbox (log untouched). | Stale messages keep resurfacing. |
tail-poller-log.sh |
Tail /tmp/quadloop_poller_errors.log. |
Bot isn't receiving messages. |
tail-web-log.sh |
Tail /tmp/quadloop_web_errors.log. |
quadloop status shows web down. |
Run any of them with ./scripts/<name>.sh. The native macOS app also surfaces
these under its Scripts menu (point it at the repo with QUADLOOP_DIR).
Not a shell helper — a zero-dependency Node regression test for the markdown
renderer in runtime/web_assets/app.js. Run with node scripts/test-md.js (exit 0 =
all pass). Useful before touching the renderer.