refactor(agents): restrict tools allowlist on research agents (#650)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
name: ce-issue-intelligence-analyst
|
||||
description: "Fetches and analyzes GitHub issues to surface recurring themes, pain patterns, and severity trends. Use when understanding a project's issue landscape, analyzing bug patterns for ideation, or summarizing what users are reporting."
|
||||
model: inherit
|
||||
tools: Read, Grep, Glob, Bash, mcp__github__*
|
||||
---
|
||||
|
||||
**Note: The current year is 2026.** Use this when evaluating issue recency and trends.
|
||||
@@ -23,7 +24,9 @@ Verify each condition in order. If any fails, return a clear message explaining
|
||||
|
||||
If `gh` CLI is not available but a GitHub MCP server is connected, use its issue listing and reading tools instead. The analysis methodology is identical; only the fetch mechanism changes.
|
||||
|
||||
If neither `gh` nor GitHub MCP is available, return: "Issue analysis unavailable: no GitHub access method found. Ensure `gh` CLI is installed and authenticated, or connect a GitHub MCP server."
|
||||
**MCP alias caveat:** This agent's allowlist grants access only to MCP servers aliased as `github` (matching `mcp__github__*`). If the user's GitHub MCP server is aliased under a different name (e.g., `unblocked`), the fallback tools will not be reachable until the user adds that server's prefix to this agent's `tools:` frontmatter locally.
|
||||
|
||||
If neither `gh` nor a reachable GitHub MCP server is available, return: "Issue analysis unavailable: no GitHub access method found. Ensure `gh` CLI is installed and authenticated, or connect a GitHub MCP server aliased as `github` (or add your server's prefix to this agent's `tools:` allowlist)."
|
||||
|
||||
### Step 2: Fetch Issues (Token-Efficient)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user