Repository navigation
feat(bob): support global subagents via ~/.bob/settings/custom_modes.yaml - #3918
Merged
Merged
Conversation
Both the Bob IDE and Bob Shell custom-modes pages now name ~/.bob/settings/custom_modes.yaml as the user-level file, so the bob subagents adapter supports --global. The Roo-style modes base class now threads the global flag through to getSettablePaths when generating and importing. Refs #3074 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
~/.bob/settings/custom_modes.yaml is unversioned and Bob IDE's "Edit Global Modes" writes it too, so a global generate now merges the generated modes into it by slug, keeping every other mode, and the orphan sweep no longer deletes it. The project file stays wholly owned by rulesync. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…merge The global custom modes merge now writes the generated modes back into the parsed document, so other top-level keys survive, and drops later duplicates of a generated slug with a warning instead of leaving a stale copy behind. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…b-global-modes # Conflicts: # src/generated/docs-content.ts
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.
Refs #3074
Summary
Both Bob custom-modes pages now give the same user-level file,
~/.bob/settings/custom_modes.yaml. The Bob Shell page used to say~/.bob/custom_modes.yamland now matches the Bob IDE page. That disagreement was the only thing keeping thebobsubagents adapter project-only, so this PR adds global scope:BobSubagent.getSettablePaths({ global: true })returns.bob/settings/custom_modes.yaml. The project file.bob/custom_modes.yamlis unchanged.RooSubagent.fromRulesyncSubagents/fromRulesyncSubagent/fromFilenow pass theglobalflag through togetSettablePaths. Roo and Zoo Code still return.for both scopes and stay project-only, so their behavior does not change.supportsGlobal: trueforbobin the subagents processor.slug: generated modes replace their counterparts in place, every other mode is kept as written, and new modes are appended. The file is never deleted, so--deleteleaves it alone. A file that cannot be read as acustomModesdocument is an error rather than being overwritten. Project-scope behavior is unchanged.docs/reference/file-formats.md(including the global merge behavior), the generated docs content, and the supported-tools table.Remaining in #3074
PermissionRequest/PermissionResolvedhook events (Bob IDE 2.3.0): watch item. The lifecycle-hooks pages do not document their payload, matcher or decision output yet.plugins/subdirectory: watch item, still documented only in the changelog.Tests
~/.bob/settings/custom_modes.yaml(bob-subagent.test.ts).bobis added to the processor's global target list.bobis added to the global subagents generate matrix. A global generate keeps an existing hand-written mode, and a globalgenerate --deletewith no bob-targeted subagent leaves the file in place.pnpm cicheckpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4