mirror of
https://github.com/anthropics/claude-code.git
synced 2026-05-07 15:23:03 +00:00
Compare commits
11 Commits
oct/gh-wra
...
claude/rem
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35b5fe658a | ||
|
|
1f48d799b9 | ||
|
|
7ec9125c54 | ||
|
|
644d6eb37f | ||
|
|
e67079be1f | ||
|
|
016734047d | ||
|
|
d6ab0eafec | ||
|
|
76c0cbaeb5 | ||
|
|
23edca9c9b | ||
|
|
ed58789da7 | ||
|
|
ee4ff289f0 |
@@ -1,40 +0,0 @@
|
|||||||
---
|
|
||||||
allowed-tools: Bash(gh issue list:*), Bash(gh issue view:*), Bash(gh issue edit:*), TodoWrite
|
|
||||||
description: Triage GitHub issues and label critical ones for oncall
|
|
||||||
---
|
|
||||||
|
|
||||||
You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention and apply the "oncall" label.
|
|
||||||
|
|
||||||
Repository: anthropics/claude-code
|
|
||||||
|
|
||||||
Task overview:
|
|
||||||
|
|
||||||
1. First, get all open bugs updated in the last 3 days with at least 50 engagements:
|
|
||||||
```bash
|
|
||||||
gh issue list --repo anthropics/claude-code --state open --label bug --limit 1000 --json number,title,updatedAt,comments,reactions | jq -r '.[] | select((.updatedAt >= (now - 259200 | strftime("%Y-%m-%dT%H:%M:%SZ"))) and ((.comments | length) + ([.reactions[].content] | length) >= 50)) | "\(.number)"'
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Save the list of issue numbers and create a TODO list with ALL of them. This ensures you process every single one.
|
|
||||||
|
|
||||||
3. For each issue in your TODO list:
|
|
||||||
- Use `gh issue view <number> --repo anthropics/claude-code --json title,body,labels,comments` to get full details
|
|
||||||
- Read and understand the full issue content and comments to determine actual user impact
|
|
||||||
- Evaluate: Is this truly blocking users from using Claude Code?
|
|
||||||
- Consider: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken"
|
|
||||||
- Does it prevent core functionality? Can users work around it?
|
|
||||||
- Be conservative - only flag issues that truly prevent users from getting work done
|
|
||||||
|
|
||||||
4. For issues that are truly blocking and don't already have the "oncall" label:
|
|
||||||
- Use `gh issue edit <number> --repo anthropics/claude-code --add-label "oncall"`
|
|
||||||
- Mark the issue as complete in your TODO list
|
|
||||||
|
|
||||||
5. After processing all issues, provide a summary:
|
|
||||||
- List each issue number that received the "oncall" label
|
|
||||||
- Include the issue title and brief reason why it qualified
|
|
||||||
- If no issues qualified, state that clearly
|
|
||||||
|
|
||||||
Important:
|
|
||||||
- Process ALL issues in your TODO list systematically
|
|
||||||
- Don't post any comments to issues
|
|
||||||
- Only add the "oncall" label, never remove it
|
|
||||||
- Use individual `gh issue view` commands instead of bash for loops to avoid approval prompts
|
|
||||||
1
.github/workflows/claude-dedupe-issues.yml
vendored
1
.github/workflows/claude-dedupe-issues.yml
vendored
@@ -17,7 +17,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
issues: write
|
issues: write
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
1
.github/workflows/claude-issue-triage.yml
vendored
1
.github/workflows/claude-issue-triage.yml
vendored
@@ -18,7 +18,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
issues: write
|
issues: write
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
118
.github/workflows/oncall-triage.yml
vendored
118
.github/workflows/oncall-triage.yml
vendored
@@ -1,118 +0,0 @@
|
|||||||
name: Oncall Issue Triage
|
|
||||||
description: Automatically identify and label critical blocking issues requiring oncall attention
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- add-oncall-triage-workflow # Temporary: for testing only
|
|
||||||
schedule:
|
|
||||||
# Run every 6 hours
|
|
||||||
- cron: '0 */6 * * *'
|
|
||||||
workflow_dispatch: # Allow manual trigger
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
oncall-triage:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
issues: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup GitHub MCP Server
|
|
||||||
run: |
|
|
||||||
mkdir -p /tmp/mcp-config
|
|
||||||
cat > /tmp/mcp-config/mcp-servers.json << 'EOF'
|
|
||||||
{
|
|
||||||
"mcpServers": {
|
|
||||||
"github": {
|
|
||||||
"command": "docker",
|
|
||||||
"args": [
|
|
||||||
"run",
|
|
||||||
"-i",
|
|
||||||
"--rm",
|
|
||||||
"-e",
|
|
||||||
"GITHUB_PERSONAL_ACCESS_TOKEN",
|
|
||||||
"ghcr.io/github/github-mcp-server:sha-7aced2b"
|
|
||||||
],
|
|
||||||
"env": {
|
|
||||||
"GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Run Claude Code for Oncall Triage
|
|
||||||
timeout-minutes: 10
|
|
||||||
uses: anthropics/claude-code-action@v1
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
allowed_non_write_users: "*"
|
|
||||||
prompt: |
|
|
||||||
You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention.
|
|
||||||
|
|
||||||
Important: Don't post any comments or messages to the issues. Your only action should be to apply the "oncall" label to qualifying issues.
|
|
||||||
|
|
||||||
Repository: ${{ github.repository }}
|
|
||||||
|
|
||||||
Task overview:
|
|
||||||
1. Fetch all open issues updated in the last 3 days:
|
|
||||||
- Use mcp__github__list_issues with:
|
|
||||||
- state="open"
|
|
||||||
- first=5 (fetch only 5 issues per page)
|
|
||||||
- orderBy="UPDATED_AT"
|
|
||||||
- direction="DESC"
|
|
||||||
- This will give you the most recently updated issues first
|
|
||||||
- For each page of results, check the updatedAt timestamp of each issue
|
|
||||||
- Add issues updated within the last 3 days (72 hours) to your TODO list as you go
|
|
||||||
- Keep paginating using the 'after' parameter until you encounter issues older than 3 days
|
|
||||||
- Once you hit issues older than 3 days, you can stop fetching (no need to fetch all open issues)
|
|
||||||
|
|
||||||
2. Build your TODO list incrementally as you fetch:
|
|
||||||
- As you fetch each page, immediately add qualifying issues to your TODO list
|
|
||||||
- One TODO item per issue number (e.g., "Evaluate issue #123")
|
|
||||||
- This allows you to start processing while still fetching more pages
|
|
||||||
|
|
||||||
3. For each issue in your TODO list:
|
|
||||||
- Use mcp__github__get_issue to read the issue details (title, body, labels)
|
|
||||||
- Use mcp__github__get_issue_comments to read all comments
|
|
||||||
- Evaluate whether this issue needs the oncall label:
|
|
||||||
a) Is it a bug? (has "bug" label or describes bug behavior)
|
|
||||||
b) Does it have at least 50 engagements? (count comments + reactions)
|
|
||||||
c) Is it truly blocking? Read and understand the full content to determine:
|
|
||||||
- Does this prevent core functionality from working?
|
|
||||||
- Can users work around it?
|
|
||||||
- Consider severity indicators: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken"
|
|
||||||
- Be conservative - only flag issues that truly prevent users from getting work done
|
|
||||||
|
|
||||||
4. For issues that meet all criteria and do not already have the "oncall" label:
|
|
||||||
- Use mcp__github__update_issue to add the "oncall" label
|
|
||||||
- Do not post any comments
|
|
||||||
- Do not remove any existing labels
|
|
||||||
- Do not remove the "oncall" label from issues that already have it
|
|
||||||
|
|
||||||
Important guidelines:
|
|
||||||
- Use the TODO list to track your progress through ALL candidate issues
|
|
||||||
- Process issues efficiently - don't read every single issue upfront, work through your TODO list systematically
|
|
||||||
- Be conservative in your assessment - only flag truly critical blocking issues
|
|
||||||
- Do not post any comments to issues
|
|
||||||
- Your only action should be to add the "oncall" label using mcp__github__update_issue
|
|
||||||
- Mark each issue as complete in your TODO list as you process it
|
|
||||||
|
|
||||||
7. After processing all issues in your TODO list, provide a summary of your actions:
|
|
||||||
- Total number of issues processed (candidate issues evaluated)
|
|
||||||
- Number of issues that received the "oncall" label
|
|
||||||
- For each issue that got the label: list issue number, title, and brief reason why it qualified
|
|
||||||
- Close calls: List any issues that almost qualified but didn't quite meet the criteria (e.g., borderline blocking, had workarounds)
|
|
||||||
- If no issues qualified, state that clearly
|
|
||||||
- Format the summary clearly for easy reading
|
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
||||||
claude_args: |
|
|
||||||
--mcp-config /tmp/mcp-config/mcp-servers.json
|
|
||||||
--allowedTools "mcp__github__list_issues,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue"
|
|
||||||
23
CHANGELOG.md
23
CHANGELOG.md
@@ -1,5 +1,28 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.1.62
|
||||||
|
|
||||||
|
- Fixed prompt suggestion cache regression that reduced cache hit rates
|
||||||
|
|
||||||
|
## 2.1.61
|
||||||
|
|
||||||
|
- Fixed concurrent writes corrupting config file on Windows
|
||||||
|
|
||||||
|
## 2.1.59
|
||||||
|
|
||||||
|
- Claude automatically saves useful context to auto-memory. Manage with /memory
|
||||||
|
- Added `/copy` command to show an interactive picker when code blocks are present, allowing selection of individual code blocks or the full response.
|
||||||
|
- Improved "always allow" prefix suggestions for compound bash commands (e.g. `cd /tmp && git fetch && git push`) to compute smarter per-subcommand prefixes instead of treating the whole command as one
|
||||||
|
- Improved ordering of short task lists
|
||||||
|
- Improved memory usage in multi-agent sessions by releasing completed subagent task state
|
||||||
|
- Fixed MCP OAuth token refresh race condition when running multiple Claude Code instances simultaneously
|
||||||
|
- Fixed shell commands not showing a clear error message when the working directory has been deleted
|
||||||
|
- Fixed config file corruption that could wipe authentication when multiple Claude Code instances ran simultaneously
|
||||||
|
|
||||||
|
## 2.1.58
|
||||||
|
|
||||||
|
- Expand Remote Control to more users
|
||||||
|
|
||||||
## 2.1.56
|
## 2.1.56
|
||||||
|
|
||||||
- VS Code: Fixed another cause of "command 'claude-vscode.editor.openLast' not found" crashes
|
- VS Code: Fixed another cause of "command 'claude-vscode.editor.openLast' not found" crashes
|
||||||
|
|||||||
Reference in New Issue
Block a user