aitools: expose supports_project_scope in aitools list --output json - #6339
Open
misha-db wants to merge 2 commits into
Open
aitools: expose supports_project_scope in aitools list --output json#6339misha-db wants to merge 2 commits into
aitools list --output json#6339misha-db wants to merge 2 commits into
Conversation
Adds a `supports_project_scope` boolean to every agent entry in the `agents` list of `databricks aitools list --output json`. - New `SupportsProjectScope bool \`json:"supports_project_scope"\`` field on `agentEntry` in `cmd/aitools/list.go`, populated in `buildAgentEntries` directly from the registry's `agents.Agent.SupportsProjectScope`. - The field is always emitted (no `omitempty`), matching the existing `managed` and `detected` bools, so the JSON shape stays stable.
misha-db
marked this pull request as ready for review
August 21, 2026 13:23
rugpanov
approved these changes
Aug 21, 2026
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.
Changes
Adds a
supports_project_scopeboolean to every agent entry in theagentslistof
databricks aitools list --output json.SupportsProjectScope bool \json:"supports_project_scope"`field onagentEntryincmd/aitools/list.go, populated inbuildAgentEntriesdirectly from the registry'sagents.Agent.SupportsProjectScope`.omitempty), matching the existingmanagedand
detectedbools, so the JSON shape stays stable.The value is
truefor the project-scope-capable agents (Claude Code, Pi,Gemini CLI, Goose) and
falsefor the rest.Why
(can the CLI install a plugin) and
detected(is the agent present), but nothingtold a consumer whether an agent is allowed to have project-scoped skills. That
capability lived only on the internal
agents.Agent.SupportsProjectScopefield.The only project-scope signal in the JSON was a
"project"key inside an agent'sinstalledmap, which appears only when something is already installed there — soconsumers could infer capability positively but never learn it up front. Exposing
supports_project_scopelets the extension offer a project-scoped install withouthardcoding the agent list, mirroring how
managedsurfacesPlugin != nil.Tests
Extended the existing unit tests in
cmd/aitools/list_test.go:TestRenderListJSONWithAgents— asserts the JSON key round-trips (trueforthe claude-code fixture,
falsefor the cursor entry), locking the contract.TestBuildAgentEntries— asserts the value is wired from the real registry:truefor claude-code,falsefor codex (managed, global-only) and cursor(skills-only, global-only), so the test tracks reality if an agent's capability
changes.