Skip to content
Back to skills

Beads Remote

ASecurity

Set up beads (bd) in a repo so its issues sync through a git remote on any host (GitLab, GitHub, Gitea, a bare repo on disk), or bring an existing remote's beads into a fresh clone. Use when the user wants beads shared across machines, a Box or a factory, asks to "sync beads", "add a beads remote", "bd init with a remote", or when bd sync/push fails on a repo that has no Dolt remote yet.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
toolsgobashgitdatabase

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add zach-source/claude-factory --skill beads-remote --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Beads Remote?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Beads Remote
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zach-source-beads-remote/badge)](https://www.skillsdirectory.com/skills/zach-source-beads-remote)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: beads-remote
description: Set up beads (bd) in a repo so its issues sync through a git remote on any host (GitLab, GitHub, Gitea, a bare repo on disk), or bring an existing remote's beads into a fresh clone. Use when the user wants beads shared across machines, a Box or a factory, asks to "sync beads", "add a beads remote", "bd init with a remote", or when bd sync/push fails on a repo that has no Dolt remote yet.
---

# beads-remote

Dolt stores beads in the repo's own git remote under `refs/dolt/data` (plus a `__dolt_remote_info__`
branch), so no extra server or account is needed: whoever can push the code can push the beads.

## Set up or join

Run the script from anywhere inside the repo:

```bash
scripts/beads-remote.sh                     # the repo's origin, prefix = directory name
scripts/beads-remote.sh --prefix web        # choose the prefix of a new database
scripts/beads-remote.sh --url git@github.com:org/repo.git
scripts/beads-remote.sh --cache-dir /var/tmp/cache/dolt-remote/web   # repo on EFS/NFS
```

It does only what is missing, so it is safe to run again:

1. Normalizes the URL for Dolt: `https://`, `http://`, `ssh://` and `file://` get `git+`; `git@host:path`
   becomes `git+ssh://git@host/path`; a path becomes `git+file://`.
2. No `.beads` yet: if the remote already has `refs/dolt/data`, clones those beads (their prefix wins);
   else `bd init --stealth` (beads files stay out of git via `.git/info/exclude`).
3. Adds the Dolt remote (`--allow-git-origin`, since sharing the code remote is the point) and sets
   `sync.remote`. A remote of the same name pointing elsewhere is an error, never overwritten.
4. With `--cache-dir`, moves Dolt's `git-remote-cache` there (embedded databases only).
5. Pulls when the remote has beads, pushes, then checks `refs/dolt/data` exists on the remote.

`scripts/test.sh` runs the whole round trip against a bare repo in a temp dir.

## Gotchas

- **Auth is plain git auth.** Whatever makes `git ls-remote <url>` work (SSH key, credential helper,
  a URL rewrite such as a broker's `insteadOf`) makes the push work. Check that first.
- **"ensure non-interactive auth is configured for GCM" can be a timeout, not auth.** Dolt reports a
  killed push that way. On a network filesystem the cache inside `.dolt` makes pushes slow: use
  `--cache-dir` on local disk, and recreate that directory at login if the disk is wiped on reboot
  (a dangling cache symlink breaks every push).
- **Shared Dolt server mode** (`BEADS_DOLT_SHARED_SERVER=1`) keeps the database outside `.beads`;
  `--cache-dir` is skipped there.
- **Protected branches:** the remote must accept a push of `refs/dolt/data` and the
  `__dolt_remote_info__` branch. Push rules that restrict branch names or refs block it.
- **Not stealth?** The script always uses `--stealth`. To commit `.beads/` config with the code, run
  `bd init` yourself first; the script then only adds the remote.

Files in this skill

  • SKILL.md2.9 KB
  • scripts/beads-remote.sh3.2 KB
  • scripts/test.sh1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.