Skip to content

Commit 7ad1de3

Browse files
patnikoCopilot
andcommitted
Clone runtime repo for local search, rename to SDK Runtime Triage
- Add steps: to clone copilot-agent-runtime onto the runner - Add bash tools (grep, find, cat) so agent searches locally - Update prompt to reference local filesystem paths - Rename workflow to SDK Runtime Triage Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 811f835 commit 7ad1de3

File tree

2 files changed

+61
-17
lines changed

2 files changed

+61
-17
lines changed

.github/workflows/cross-repo-issue-analysis.lock.yml

Lines changed: 45 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/cross-repo-issue-analysis.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@ permissions:
1313
contents: read
1414
issues: read
1515
pull-requests: read
16+
steps:
17+
- name: Clone copilot-agent-runtime
18+
run: git clone --depth 1 https://x-access-token:${{ secrets.RUNTIME_TRIAGE_TOKEN }}@github.com/github/copilot-agent-runtime.git /home/runner/work/copilot-agent-runtime
1619
tools:
1720
github:
1821
toolsets: [default]
1922
github-token: ${{ secrets.RUNTIME_TRIAGE_TOKEN }}
2023
edit:
24+
bash:
25+
- "grep:*"
26+
- "find:*"
27+
- "cat:*"
28+
- "head:*"
29+
- "tail:*"
30+
- "wc:*"
31+
- "ls:*"
2132
safe-outputs:
2233
github-token: ${{ secrets.RUNTIME_TRIAGE_TOKEN }}
2334
allowed-github-references: ["repo", "github/copilot-agent-runtime"]
@@ -42,7 +53,7 @@ safe-outputs:
4253
timeout-minutes: 20
4354
---
4455

45-
# Copilot CLI Runtime Triage
56+
# SDK Runtime Triage
4657

4758
You are an expert agent that analyzes issues filed in the **copilot-sdk** repository to determine whether the root cause and fix live in this repo or in the **copilot-agent-runtime** repo (`github/copilot-agent-runtime`).
4859

@@ -62,17 +73,17 @@ Use GitHub tools to fetch the full issue body, comments, and any linked referenc
6273

6374
### Step 2: Analyze Against copilot-sdk
6475

65-
Search the copilot-sdk codebase (this repo) to understand whether the reported problem could originate here:
76+
Search the copilot-sdk codebase on disk to understand whether the reported problem could originate here. The repo is checked out at the default working directory.
6677

67-
- Check the relevant SDK language implementation (`nodejs/src/`, `python/copilot/`, `go/`, `dotnet/src/`)
78+
- Use bash tools (`grep`, `find`, `cat`) to search the relevant SDK language implementation (`nodejs/src/`, `python/copilot/`, `go/`, `dotnet/src/`)
6879
- Look at the JSON-RPC client layer, session management, event handling, and tool definitions
6980
- Check if the issue relates to SDK-side logic (type generation, streaming, event parsing, client options, etc.)
7081

7182
### Step 3: Investigate copilot-agent-runtime
7283

73-
If the issue does NOT appear to be caused by SDK code, or you suspect the runtime is involved, investigate the **copilot-agent-runtime** repo:
84+
If the issue does NOT appear to be caused by SDK code, or you suspect the runtime is involved, investigate the **copilot-agent-runtime** repo. It has been cloned to `/home/runner/work/copilot-agent-runtime`.
7485

75-
- Use GitHub tools to read relevant files from `github/copilot-agent-runtime`
86+
- Use bash tools (`grep`, `find`, `cat`) to search the runtime codebase directly on disk
7687
- Look at the server-side JSON-RPC handling, session management, tool execution, and response generation
7788
- Focus on the areas that correspond to the reported issue (e.g., if the issue is about streaming, look at the runtime's streaming implementation)
7889

0 commit comments

Comments
 (0)