Skip to content

Commit 4cb7e0b

Browse files
authored
ai : limit runtime of the agent (ggml-org#20816)
1 parent 149b249 commit 4cb7e0b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ai-issues.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
"bash": {
2828
"*": "deny",
2929
"gh issue*": "allow",
30-
"gh search*": "allow"
30+
"gh search issues*": "allow"
3131
},
3232
"webfetch": "deny"
3333
}
3434
run: |
3535
rm AGENTS.md
3636
rm CLAUDE.md
3737
38-
opencode run -m llama.cpp-dgx/ai-review-issues-find-similar --thinking "A new issue has been created:
38+
timeout 5m opencode run -m llama.cpp-dgx/ai-review-issues-find-similar --thinking "A new issue has been created:
3939
4040
Issue number: ${{ github.event.issue.number }}
4141
@@ -83,4 +83,5 @@ jobs:
8383
- Post at most ONE comment combining all findings.
8484
- If you didn't find issues that are related enough, post nothing.
8585
- You have access only to the 'gh' CLI tool - don't try to use other tools.
86+
- If the output from a tool call is too long, try to limit down the search.
8687
"

0 commit comments

Comments
 (0)