Repository navigation
ship manager-friendly default built-in template (PREFERENCES.md + STATUS.html) - #25
Merged
SawyerHood merged 1 commit intoMay 19, 2026
Conversation
SawyerHood
force-pushed
the
bb/ship-manager-friendly-default-built-in-template-thr_wthq39u85j
branch
from
May 19, 2026 00:23
f9a333d to
47a5ecd
Compare
….md + STATUS.html) Replaces the deliberately minimal starter content shipped by #24 with two richer files reflecting the manager flow that prompted this work: - PREFERENCES.md captures the delegator workflow and the STATUS.html conventions. Worker defaults (provider / reasoning level / permission mode / model) are an open question for the user, not prescribed by the template. The Workflow section also stays neutral about how changes land: a `Landing changes` bullet describes two common modes (PRs, with `gh pr create --draft` by default; or local merge with push-on-request) and tells the manager to ask once and record the choice in the file itself. STATUS.html mode and refresh triggers follow from that recorded choice. - STATUS.html is the canonical status surface (no STATUS.md): a styled zero-state dashboard. The HTML comment block at the bottom is a snippet library covering PR-mode patterns (PR row, active worker row, optional sections) and a clearly-marked no-PR-mode group with `In progress` and `Ready for review` section patterns. Tokens mirror the bb app theme; see `bb guide styling`. ASYNC.md is intentionally not part of the default seed — a manager can write its own `ASYNC.md` from the meet-and-greet when it wants schedules. Files live alongside the source as real files and are read at module init via `import.meta.url`; the prod build copies them next to `dist/index.js` (mirroring the drizzle migrations pattern). The install/seeding logic from #24 is unchanged — existing `<dataDir>/manager-templates/default/` directories are still not overwritten. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
SawyerHood
force-pushed
the
bb/ship-manager-friendly-default-built-in-template-thr_wthq39u85j
branch
from
May 19, 2026 00:36
47a5ecd to
5150056
Compare
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
default/now ships exactlyPREFERENCES.mdandSTATUS.html— noSTATUS.mdand noASYNC.md.STATUS.mdwould conflict withSTATUS.html; the manager prompt requires one or the other, not both.ASYNC.mdis intentionally not part of the default seed. A manager can write its ownASYNC.mdfrom the meet-and-greet when it wants schedules.Landing changesWorkflow bullet describes two common modes — Open PRs (withgh pr create --draftas the default, switchable to non-draft) and No PRs — local merge, push on request — and tells the manager to ask the user once and record the chosen mode in the bullet itself.STATUS.html modebullet explains that STATUS.html tracks open PRs in PR mode, and switches to two sections (In progressandReady for review) in no-PR mode.STATUS.html(extra sections, custom info, integrations).STATUS.htmlsnippet library now has a clearly-marked no-PR-mode group with copy/paste blocks forIn progress · NandReady for review · Nsections, in addition to the existing PR-mode patterns.ensureBuiltInManagerTemplatesInstalledstill only writes thedefault/directory when it is absent, never overwriting a user-edited one.What changes
apps/server/src/services/threads/default-template/{PREFERENCES.md, STATUS.html}— new asset files (the canonical source of truth for the bundled default).PREFERENCES.md—Identityplaceholder,Workflow(delegator pattern, fresh-main-before-spawn,Landing changeswith two modes,STATUS.html mode,STATUS.html refresh,STATUS.html styling), andOpen questions to resolve when natural(incl. worker defaults and STATUS.html extras).STATUS.html— zero-state dashboard with header/section/row/pill primitives styled from the bb design tokens, plus an inlined snippet library: refresh timestamp, Open-PRs section + PR row, active-worker row, empty states, pill variants, inline status annotation, a no-PR-mode group (In progress + Ready for review sections), and optional extras (active workers with meta, dev-instance callout, recently completed feed). Tokens mirrorapps/app/src/components/ui/theme.css; seebb guide styling.apps/server/src/services/threads/manager-storage-templates.ts—BUILT_IN_MANAGER_TEMPLATE_SETSlists exactlyPREFERENCES.mdandSTATUS.html, and loads each file's contents viareadFileSyncfrom a directory resolved offimport.meta.url. The install/seeding logic itself is untouched.apps/server/package.json— build script gains--copy-dir src/services/threads/default-template dist/default-template, mirroring the existing drizzle copy so the prod bundle finds the assets next todist/index.js.apps/server/test/threads/manager-storage-templates.test.ts— assertions updated to match the new content:PREFERENCES.mdcontains both## Open questions to resolve when naturalandLanding changes;STATUS.htmlcontains theOpen PRs · 0sect-title; the bundle ships neitherSTATUS.mdnorASYNC.md.Test plan
pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/templatespnpm exec turbo run test --filter=@bb/server --filter=@bb/templates(668 server tests pass)pnpm exec turbo run test --filter=@bb/cli --filter=@bb/app --filter=@bb/host-daemon— all passpnpm exec turbo run build --filter=@bb/server— confirmsdist/default-template/contains exactlyPREFERENCES.mdandSTATUS.html(noASYNC.md, noSTATUS.md);Landing changesand the no-PR-mode snippet group are present in distgit diff --check— cleanPREFERENCES.md,STATUS.html) land in<dataDir>/manager-templates/default/. Then create a new manager thread and confirm storage is seeded from them.🤖 Generated with Claude Code