Skip to content

docs(provider): a setup prompt for AI agents (one Mac or a two-Mac pair), for 0.10.8 - #1775

Merged
jonathan308 merged 4 commits into
devfrom
docs/agent-setup-prompt
Nov 4, 2026
Merged

jonathan308 merged 4 commits into
devfrom
docs/agent-setup-prompt

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds docs/provider/agent-setup.md, a setup prompt a person hands to their own AI agent: install and check the signed
release, log in with the person's help, serve on one Mac or pair two Macs over Thunderbolt 5, then prove it serves
(darkbloom status, darkbloom cluster status --json and a self-routed test request) instead of trusting a setup
screen. It lists the steps only the person can do, the agent's safety rules and STOP points, troubleshooting by
message, and darkbloom uninstall. It describes provider 0.10.8 as the PRs below make it.

Linked issue

None filed: an agent-led setup guide requested for the 0.10.8 release.

Test plan

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — described above and matching side updated

Documentation impact

  • Canonical documentation updated: new how-to docs/provider/agent-setup.md, indexed in docs/README.md and
    pointed to from README.md. Facts are linked to their canonical pages (cli-reference.md, two-mac-cluster.md,
    troubleshooting.md) rather than restated.
  • No documentation needed — reason:

Changelog

  • Added or updated this PR's unique changelog.d/<topic>.md fragment and ran make changelog-check
    (changelog.d/provider-agent-setup-guide.md).
  • No user-visible change, or an explicitly authorized release/history change.

Notes for reviewers

Re-checked against the final PRs (8bf65d80ff)

Before And After

flowchart LR
  subgraph Before
    R1[README.md] --> I1[provider/installation.md]
    D1[docs/README.md] --> I1
    D1 --> T1[provider/two-mac-cluster.md]
    X1["An agent assembles install, login, pairing and checks from several pages and trusts the setup screen"]
  end
  subgraph After
    R2[README.md] --> G[provider/agent-setup.md]
    D2[docs/README.md] --> G
    G --> I2[installation.md]
    G --> T2["two-mac-cluster.md: #free-disk, #pairing-again, #stopping-and-starting-again"]
    G --> C2["cli-reference.md: #darkbloom-cluster-status, #darkbloom-uninstall"]
    G --> S2["troubleshooting.md: #a-two-mac-cluster-says-not-serving-yet, #two-mac-pairs"]
  end
Loading
flowchart TB
  subgraph Before
    B1[agent] --> B2["darkbloom cluster screens, read by the person"] --> B3["'✓ Serving … Done.' taken as proof"]
  end
  subgraph After
    A1[agent] --> A2["install · signature check · login · doctor"]
    A2 --> A3{one Mac or two?}
    A3 -->|one| A4["darkbloom start --model"] --> A5["darkbloom status: Daemon, Traffic, Warm models"] --> A9[self-routed test request]
    A3 -->|two| A6["person in Terminal: darkbloom cluster (pair, code, model, start)"] --> A7{"darkbloom cluster status --json"}
    A7 -->|"exit 0, state serving"| A9
    A7 -->|"3 / 4 / 5 / 6 / 7"| A8["act on reason and next, or STOP and ask"]
  end
Loading

Refactor Pass

A dedicated refactor subagent reviewed the guide (d-inference AGENTS.md, "Required Refactor Pass") and added one
signed commit, c493c7fd38, on 4e1da80f8c. It changes clarity and accuracy only. No rule, STOP point, command,
flag, exit status or JSON key changed: 29 STOP points and 11 rules, as before.

Checked and left as is:

Lines that repeat as separate ways in (the up-front lists, the step, the troubleshooting lookup) were kept.

Gates on c493c7fd38:

  • make docs-check: 207 files OK.
  • make docs-impact-check BASE=origin/dev: coverage OK.
  • make changelog-check: 39 valid fragments.
  • git diff --check: clean.
  • git merge-tree: clean against each of the 12 PR heads.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jonathan308 and others added 3 commits November 3, 2026 16:29
…c pair)

docs/provider/agent-setup.md is the file a person hands to their own AI agent
("point your agent at this file"). It walks the agent from install to a Mac,
or a two-Mac Thunderbolt pair, that serves through Darkbloom: the official
installer and signature check, login, doctor, one-Mac start, cable/link check,
pairing, model choice (tensor parallel vs pipeline), start, and verification
that does not trust the setup screen alone (status lines, the pair's log, a
self-routed test request). It lists the human-only actions up front, explicit
STOP points, the agent's safety rules, troubleshooting signals (App Attest
safeguard, the pre-0.10.8 link isolation false alarm, stale pairings, memory,
login), reporting and uninstall. Lines that describe 0.10.8 behavior still on
unmerged branches carry <!-- 0.10.8: confirm after merge --> markers.

One pointer line each in docs/README.md and README.md; changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter status --json, uninstall)

Resolves the guide's 22 "0.10.8: confirm" markers against the PRs' own code
(#1761-#1770, #1772, #1774) and removes them:

- Verify a pair with `darkbloom cluster status --json` (schema 1, exit
  0/3/4/5/6/7, #1774) instead of an interactive re-run and the rank.log
  grep: the `Pair:` line is written on whichever Mac runs rank 0.
- On a paired Mac, `darkbloom start/stop/restart/status` act on the pair
  (rule 11, Manage it later, #1774); `--solo`, `cluster stop --service`
  and `--local-only`, `cluster --help`, and `link --remove`'s question.
- Script `darkbloom start`: saved model, 10-minute wait, result block,
  exit 0/3/4/5 or 1 (#1774 code; `waitUntilServing`).
- Login check, loading rows, 15-minute pair wait, the ✗ block and its
  choices (#1764); Pair again, Start over, the silent other Mac (#1770);
  free disk now plus 2.1 GB (#1766); memory with apps closed and the GPU
  limit (#1767, #1768); App Attest keeps an attestation across a stop
  (#1763) and refreshes LaunchServices after an update (#1765); no false
  link-isolation FAIL (#1761); one late request fails alone (#1762); the
  update record corrected after an install.sh reinstall (#1769);
  `darkbloom uninstall` modes, --dry-run, --yes, exit 64 (#1772).
- After setup, `darkbloom cluster` on the leader is written to the
  cluster-clarity owner direction (model list with the current model
  selected, result block); those lines are listed in the PR notes.

Code citations name only files that exist on dev; symbols from files the
PRs add are cited without a path, so docs-check passes before they merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keys, cluster stop --service)

The required refactor pass (AGENTS.md) over the agent setup guide. Clarity and accuracy only:

- Step 7.1: the login check's choices in plain sentences. Log in on this Mac runs `darkbloom login` in the terminal;
  Check again takes its place when only the other Mac lacks a login (`ClusterOnboardingDriver.checkLogins`).
- Verify: `service.running` and `service.starts_at_login`, so `service` is not read as a string
  (`ClusterPairSummary.JSON.Service`).
- Manage it later: `darkbloom cluster stop --service` stops the pair first, as #1774 now documents
  (46df80f: two-mac-cluster.md, cluster-always-on.md; `Cluster.Stop.pairStop`).
- Changelog fragment: the person-only steps and the safety rules read as examples rather than full lists, the model
  choice is named, and the read-only `cluster status --json` is no longer said to act on both Macs.

No rule, STOP point, command, flag, exit status or JSON key changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 requested a review from davidtai November 4, 2026 01:50
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 4, 2026 3:12am UTC
d-inference-console-ui-dev Error Error Nov 4, 2026 3:12am UTC
d-inference-landing Ready Ready Preview Nov 4, 2026 3:12am UTC
darkbloom-status Ready Ready Preview Nov 4, 2026 3:12am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 4, 2026 3:12am UTC

Request Review

…1772

Re-checked the lines that waited on the cluster-clarity redesign against #1778
(a148285), and the guide's #1774 (04dfdde) and #1772 (1821a01) facts:

- After setup, the pair's model list is the screen ("The pair's model list"):
  Enter on the serving model sends one test request (✓ Already serving …;
  test response in N s, the ✗ block, or no local API to test from); another
  model asks once; " · not enough free disk" is refused; the local/Darkbloom
  switch and Start over (unpair and set up again) are list lines.
- The success ending is the ✓ block and the pair's card (Model, Macs, Serves
  or Local, Logs, Starts by itself at login), then the shell.
- The joining Mac follows the first start ("Waiting for the other Mac (…) to
  choose the model and start…", "Choose Retry on the other Mac (…)"); the
  offered line replaces "registered with, or offered to"; the follower says
  "This Mac runs its part by itself." and offers Close / Start over.
- #1774: stop says "Stopped on both Macs." only once both parts end, else
  "Asked both Macs to stop; …" (exit 1); restart doesn't start again while a
  part still holds memory; single-Mac options are refused by name (exit 64);
  --solo only while the pair is stopped (rule 11 and the --solo row were
  wrong); a leftover cluster service is "not in a cluster".
- #1772: sudo refused (exit 64), "not removed: <why>" exits 1, Remove
  everything asks once more on the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

2 failed and 3 active deployments
Preview – eigen-homepages-darkbloom — 8bf65d80 Deployed Nov 4, 2026 by vercel[bot]
Preview – d-inference-landing — 8bf65d80 Deployed Nov 4, 2026 by vercel[bot]
Preview – darkbloom-status — 8bf65d80 Deployed Nov 4, 2026 by vercel[bot]
Preview – d-inference — 8bf65d80 Deployed Nov 4, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 8bf65d80 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant