Repository navigation
feat(gitlabduo): add project workspace subagents in the shared .agents/agents/ - #3981
Merged
Merged
Conversation
…s/agents/ GitLab Duo workspace subagents are GA in GitLab 19.6 and load from the project .agents/agents/ directory. The gitlabduo section joins the shared merge at the lowest precedence so every writer renders identical bytes, and warnings flag undocumented keys, missing or foreign tools, overridden values and Duo's field, file and subagent-count limits. Refs #3417 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…tlabduo-subagents # Conflicts: # src/generated/docs-content.ts
This was referenced Nov 26, 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.
Summary
Adds project-scope GitLab Duo workspace subagents. They went generally available in GitLab 19.6, with the files read from
.agents/agents/*.md(docs). This settles the last open design question on #3417 (howgitlabduoshares.agents/agents/with the Antigravity, Muse Code andagentsmdwriters) by following the Muse Code precedent from #3919.Changes
GitlabduoSubagent(src/features/subagents/gitlabduo-subagent.ts) extendsAntigravitySharedSubagentand writes toGITLABDUO_SUBAGENTS_DIR(=.agents/agents/). It is registered in the subagents processor and target tuple as project-only.gitlabduois added toAGENTS_DIR_SHARED_SUBAGENT_SECTION_KEYSat the lowest precedence, so every writer of the shared file renders identical bytes. The Antigravity global and plugin outputs still ignore it.name/description/tools)toolsis unset (Duo then gives the subagent no tools)toolscomes from amusecode/antigravity-*block (a Duo session fails to start on non-Developer-Flow tool names)gitlabduovalue is overridden by a higher blockgitlabduo, via a new genericmaxSubagentsfactory metagitlabduo:frontmatter example infile-formats.md, plus updated Antigravity, Muse Code and.agents/agents/ownership notes. Regenerated the tables anddocs-content.ts.gitlabduo-subagent.test.ts, a processor test for the count warning, and e2e generate and import entries.Design decisions
.agents/agents/whichever--targetsare set, so a separate or filtered file is not possible. Puttinggitlabduoat the bottom of the merge means a file other writers produced before is unchanged, and the only cost is a warning when a higher block overrides agitlabduovalue.gitlabduoin the run. Files other writers place in the same directory are not counted. The docs state this limit for CLI sessions only.toolsinstead of checking the names.Skipped
gitlabduo-plugintarget: https://docs.gitlab.com/user/gitlab_duo_cli/customize/ still marks Plugins as "Experiment", and whether to add the target is a maintainer scope decision.claudecode-pluginoutput already loads through Duo's.claude-plugin/compatibility path.Refs #3417
🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4