Skip to content

Consolidate CLI and plugin documentation into their owning references - #4992

Merged
ymichael merged 15 commits into
mainfrom
bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq
Oct 14, 2026
Merged

ymichael merged 15 commits into
mainfrom
bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq

Conversation

@ymichael

@ymichael ymichael commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

BB command and plugin documentation was duplicated across guide chapters, shipped skills, and repository docs. Updating one surface could leave conflicting instructions elsewhere, while completed plans and historical audits obscured current references.

What changed

  • Make bb guide the core CLI manual and reduce the bb-cli skill to chapter routing and agent guidance.
  • Move plugin-specific commands and settings into their owning skills, including ACP configuration, notifications, sidebar preferences, and workflows.
  • Remove the standalone automations chapter and route bb guide automation and automations to the plugins chapter.
  • Split the threads chapter by task so an agent reads only what it needs: threads (spawn, hand off, fork, edit), thread-inspection (list, inspect, wait, open), thread-messaging (tell, metadata, interactions, queue), and thread-lifecycle (stop, clear, compact, retry, archive, delete). Each is 90–175 lines instead of one 530-line page; aliases such as queue, retry, and inspect route to the right chapter.
  • Consolidate plugin API guidance and trim repository docs to living references, removing completed plans, obsolete audits, and unused assets.
  • Update documentation expectations and construct workflow test fixtures from the actual settings defaults.

The branch is rebased onto origin/main, preserving its newer documentation. Runtime changes are limited to guide chapter routing and aliases; there are no daemon wire changes.

How you verified

  • Rebased onto origin/main at 1859b76. Main's newer guidance went into the consolidated destinations, including:
    • Settings: keepHistoryAfterContextClear, onboarding replay and bb project discover, bb settings cli-command, bb settings usage --refresh, the timelinePush experiment, and the always-on navigation rail.
    • Plugins: bb plugin prune, background plugin updates, and bb marketplace add --subdirectory.
    • Threads and providers: bb thread commands/options, usage.cost, push-notification levels, bb provider-retry explain, and OpenCode agents as ACP modes.
    • Plugin API: environment.removed, experimental_saveFile, the tokenizer-based experimental_scanPublicSdkOnly (Read plugin imports from tokens, not raw source text #5518), experimental_optionLabels, the provider bridge's 50 ms text batching, and its session-option state kinds.
  • Removed documentation of the sidebar navigation and header plugin APIs that main deleted (Make the navigation rail the only sidebar layout and remove the sidebar navigation plugin API #5229).
  • Deduplicated docs/configuration.md (one statement per setting or plugin), folded the dated sections of docs/ci-performance.md into its topical sections, and restored the core-callers notes in docs/api_to_audit.md that AGENTS.md requires.
  • Built the CLI and ran bb guide with each new chapter, the queue/retry/inspect/messaging aliases, and an unknown chapter.
  • Checked that inbound anchor links to the rewritten docs still resolve.
  • pnpm exec turbo run test --filter=@bb/templates --filter=@get-bb/plugin-sdk --filter=@bb/sdk --filter=bb-plugin-workflows: passed.
  • pnpm exec turbo run test --filter=@bb/cli --filter=@bb/server -- src/__tests__/command-output/guide.test.ts src/__tests__/plugin-guide-docs.test.ts test/services/plugins/plugin-authoring-docs.test.ts: passed.
  • oxfmt --check on every changed Markdown file: clean.

AGENT GENERATED

🤖 Generated with Claude Code

@colelawrence

colelawrence commented Oct 6, 2026 •

Copy link
Copy Markdown

I'm not sure if you'll read this, but I'd love for the guide CLI to accept synonyms like bb guide thread and bb guide threads should both match.

This is generally something I would love to see because there's no reason to not accept synonyms.

76812

https://discord.com/channels/1522478522332090528/1543971436102819870

@ymichael
ymichael force-pushed the bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq branch from 9b36562 to c4ad8f8 Compare October 6, 2026 23:26
@ymichael
ymichael force-pushed the bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq branch 2 times, most recently from b8aeb8b to 2729304 Compare October 14, 2026 22:00
ymichael and others added 15 commits October 14, 2026 15:16
…a router

The bb-cli skill's references duplicated nearly every bb guide chapter and had
drifted from it and from the code. Facts that existed only in the skill now
live in the matching guide chapter; the skill keeps agent habits, safety
rules, a chapter routing table, the command index, and the theme authoring
reference.

- Delete thread-creation, thread-operation, configuration, app-settings,
  plugins, failure-recovery, and theme-commands references.
- Fix stale or wrong statements: environment-inputs default, perf profile
  retention, --new-machine requiring --environment-provider, footer UI text.
- Remove maintainer-only content (EAS publishing, GOOGLE_SERVICES_JSON,
  source checkout startup, pnpm dev sign-in) from the guide; it already lives
  in docs/ and apps/mobile/README.md.
- Record the ownership rule in docs/cli-guide-and-skill.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… plugin skills

The guide chapters had become a catch-all: bundled-plugin manuals, a second
plugin-authoring reference, installer and server-move internals, multi-line
app UI behaviour, maintainer flags, and paragraphs appended at chapter ends.

- Plugins chapter (997 -> 295 lines): keeps install/manage commands, a short
  summary per bundled plugin, and the authoring loop. Plugin detail moved to
  each plugin's skill (new push-notifications skill); authoring detail moved
  to bb-plugin-authoring. Fixes wrong claims about plugin settings needing a
  reload, npm on PATH, and a nonexistent --stdin flag.
- Customization regrouped by topic; plugin sections, duplicated serverMove and
  message-editing text, keyboard-navigation and touch UI detail, and BB_FF_*
  tuning removed. One-line palette filter and footer notes kept.
- Machines, environments, threads, providers, agent-configuration, browser,
  projects: implementation internals cut, provider- and plugin-specific
  sections replaced with pointers to their skills, trailing paragraphs moved
  into their sections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The automations chapter documented a bundled plugin whose skill already
covers every command, flag, and update rule. The plugins chapter now lists
Automations with its commands and points to the automations skill, and
`bb guide automation(s)` resolves to the plugins chapter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cp-provider skill

The providers chapter documented the ACP providers plugin's customAgents
setting and ACP model discovery in full. The acp-provider skill now owns both;
the chapter points to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/ had accumulated plans, dated audits, PR evidence, implementation tours,
per-feature notes, and long restatements of the CLI guide and plugin skills.

- Delete server-move-plan.md, ui-split-loading-audit.md, build-performance.md,
  and unreferenced PR screenshots after moving their live facts to the owning
  docs.
- configuration.md (1,976 -> 912 lines): one entry per knob; CLI, plugin, and
  UI detail replaced with pointers. Fixes wrong statements about the terminal
  shortcut, Keep Awake on Windows, Modal settings, mobile pairing, the
  provider environment, and the legacy sidebar.* keys.
- debugging-and-qa.md (768 -> 465): debugging tooling only; per-feature notes
  and the host-daemon protocol changelog removed.
- windows-ci, ci-performance, timeline-pagination, events-table-pruning:
  internals and measurements removed. cli-guide-and-skill.md keeps only its
  rules. platform-support and repository-overview had stale mobile, desktop,
  and dependency facts.
- Guide: bb updates and install-cli-skills default to persistent machines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- bb-plugin-authoring: remove duplication between references (testing
  gotchas, dependency placement, settings reloads, standalone machines) and
  version history; fix wrong statements (thread header slot name, side-chat
  instructions, provider icons, bb-community submissions, a stale SDK area
  map, environment composition fields, root exports, event count).
- docs/provider-plugin-api.md owns provider declaration contracts and
  docs/provider-bridge-protocol.md the wire grammar; providers.md keeps the
  how-to and links to both.
- docs/api_to_audit.md (3,685 -> 2,523 lines): each entry is a short
  behaviour summary, a Docs pointer, and its open audit questions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The doc's code blocks were hand-aligned and failed oxfmt. Format them, keep an
inline code span on one line so the list item survives formatting, and update
the doc test's block heading for the added semicolon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The data tests copied migration 192's column default, which still says
retentionDays 30, while the setting and DEFAULT_WORKFLOW_SETTINGS use 7.
That migration is hash-checked and only backfilled pre-existing rows, so it
stays; the fixtures now derive from DEFAULT_WORKFLOW_SETTINGS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rebasing onto origin/main resolved conflicts toward the restructure, so
guidance main added to deleted or rewritten files is restated in each topic's
owning file: context-clear history, onboarding replay, the CLI command
installer, timeline push, the always-on navigation rail, plugin prune and
marketplace subdirectories, thread commands and session options, push
notification levels, provider-retry explain, OpenCode agents as ACP modes,
environment.removed, and the provider bridge's text batching and session
option state.

Remove documentation of the sidebar navigation and header plugin APIs that
main deleted, and restore the plugin authoring docs test to main's version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/configuration.md states each setting and plugin once, with plugin
details under their Plugins subsections. docs/ci-performance.md folds its
dated investigation sections into the topical sections that describe how CI
works now. docs/api_to_audit.md names the core callers that share each
API's path again, as AGENTS.md requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The threads chapter replaced three task-sized skill references (creation,
operation, failure recovery) with one 530-line page, so an agent answering a
narrow question read the whole thing. Split it into threads (spawn, hand off,
fork, edit), thread-inspection (list, inspect, wait, open), thread-messaging
(tell, metadata, interactions, queue), and thread-lifecycle (stop, clear,
compact, retry, archive, delete), each 90-175 lines. Task aliases such as
queue, retry, and inspect route to the matching chapter, and the bb-cli skill
table points at each one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael force-pushed the bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq branch from 34cbd63 to 8f7d959 Compare October 14, 2026 22:16
@ymichael
ymichael merged commit 6d1707c into main Oct 14, 2026
88 of 89 checks passed
@ymichael
ymichael deleted the bb/audit-recent-markdown-file-changes-and-propose-thr_cye5zf3hwq branch October 14, 2026 23:09
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.

2 participants