Merged
Conversation
Add built-in presets for different user personas: - junior-dev: code, MRs, basic issue tracking - senior-dev: + code review, pipeline monitoring - devops: CI/CD, pipelines, variables, infrastructure - team-lead: planning, milestones, oversight - pm: planning, tracking, documentation (no code ops) - ci: minimal tools for automation - gitlab-com: rate-limit friendly for gitlab.com Each preset is optimized for its role to minimize LLM context usage while providing sufficient tools. Closes #55
📊 Test Coverage ReportOverall Coverage: 87.67% Coverage Details
Coverage Report: View detailed coverage report
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR adds 7 new role-based presets to provide optimized tool access patterns for different user personas (junior-dev, senior-dev, devops, team-lead, pm, ci, gitlab-com). The presets use feature flags and action restrictions to minimize LLM context usage while providing appropriate tools for each role.
Changes:
- Add 7 new preset YAML files with role-specific tool restrictions and feature flags
- Add comprehensive test suite with 67 tests validating schema conformance, security requirements, and role-specific configurations
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/profiles/builtin-presets.test.ts | Comprehensive test suite validating all builtin presets for schema conformance, security (no host/auth), regex validity, and role-specific feature restrictions |
| src/profiles/builtin/team-lead.yaml | Team lead preset with planning/oversight focus, blocks sensitive variables and webhooks |
| src/profiles/builtin/senior-dev.yaml | Senior developer preset with code review and pipeline monitoring, blocks pipeline control |
| src/profiles/builtin/pm.yaml | Project manager preset focused on planning/tracking, blocks code operations |
| src/profiles/builtin/junior-dev.yaml | Junior developer preset for core development tasks, blocks pipelines and admin features |
| src/profiles/builtin/gitlab-com.yaml | Rate-limit friendly preset optimized for gitlab.com public instance |
| src/profiles/builtin/devops.yaml | DevOps engineer preset focused on CI/CD and infrastructure, blocks development workflow tools |
| src/profiles/builtin/ci.yaml | CI/CD bot preset with minimal automation tools, blocks workflow operations |
Fix denied_tools_regex patterns to properly anchor at start: - Use ^manage_(a|b|c) instead of ^manage_a|^manage_b|^manage_c - The latter incorrectly matches 'manage_b' anywhere in the string Also simplify junior-dev description to match preset name.
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
Add 7 built-in role-based presets for different user personas:
junior-devsenior-devdevopsteam-leadpmcigitlab-comEach preset is optimized for its role to minimize LLM context usage while providing sufficient tools.
Changes
src/profiles/builtin/Test plan
Closes #55