Repository navigation
feat(agents): add project roles and agent mentions - #1470
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/agent-definition-ui-controls
branch
2 times, most recently
from
November 29, 2026 15:13
ba1d397 to
5bda3a9
Compare
nixuuu
marked this pull request as ready for review
November 29, 2026 15:13
nixuuu
enabled auto-merge (squash)
November 29, 2026 15:13
nixuuu
marked this pull request as draft
November 29, 2026 15:14
auto-merge was automatically disabled
November 29, 2026 15:14
Pull request was converted to draft
nixuuu
marked this pull request as ready for review
November 29, 2026 15:15
nixuuu
enabled auto-merge (squash)
November 29, 2026 15:16
nixuuu
force-pushed
the
feat/agent-definition-ui-controls
branch
from
November 29, 2026 15:29
8652869 to
df05df6
Compare
This was referenced Nov 30, 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.
Change
Project roles are off by default. An owner can enable them globally and let each project inherit, opt in or opt out. Ordinary delegation and file mentions work independently of project role settings.
Define an agent role in the project's
.agents/agents/directory or import an existing plugin's Markdown definition in Settings → Projects → Agent roles. Start a thread with its role, provider, model and reasoning settings, or mention@rolein a message to ask the current agent to delegate.The agent bus lists project roles and accepts
spawn_thread.role. The gateway resolves the definition against the target checkout and retains the admitted instructions and tool policy with the thread. The worker preserves imported metadata and detects stale edits. Claude sessions can honor supported tool restrictions and required skills. Worker and linked-gateway capabilities gate these features.When a role has a native Claude tool allowlist, it cannot request an advisor consultation through MCP. Owner-configured automatic reviews still apply independently. The advisor schema now exposes the tool to Claude sessions that allow it, while the call handler continues to require a question or review.
Fixes: #1471 (Claude advisor tool discovery)
Verification
@suggestions and the missing-model state at 390 px as well as desktop layout.@, and the gateway rejected a named launch. Tested both directions of the project override and changing the inherited account default back to off. Integration tests cover settings sync, catalogue and execution gates, ordinary delegation, and compatibility with older linked computers.Copy audit
The web settings, role editor, picker, role mentions and mobile role controls use the existing Canopy terms. “Agent role” and “role” are documented in the glossary. Creation and import use action labels. Missing models, incompatible effort and conflicting edits give a recovery action. Verified descriptions with short, typical and long content and checked accessible control labels and selection states.