feat(flue): add initial flue issue triage agent - #15059
Conversation
|
|
Review posted successfully to PR #15059. I reviewed PR #15059 (
The |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
dario-piotrowicz
left a comment
There was a problem hiding this comment.
Looks good to me 😄
(as we chatted offline, a README.md file in the .flue dir would probably be nice here 😊)
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
| message: { | ||
| attributes: { | ||
| deliveryId: delivery.deliveryId, | ||
| ...(installation === undefined | ||
| ? {} | ||
| : { installationId: String(installation.id) }), | ||
| issueNumber: String(issueRef.issueNumber), | ||
| owner: issueRef.owner, | ||
| repo: issueRef.repo, | ||
| sender: sender.login, | ||
| title: issue.title, | ||
| }, | ||
| body: `Issue description:\n${issue.body ?? "(No description provided.)"}`, | ||
| kind: "signal", | ||
| type: "github.issue.opened", | ||
| }, |
There was a problem hiding this comment.
🟨 Untrusted issue content is fed to an agent that can execute code in a sandbox and comment as the bot
The webhook handler forwards the raw issue body and title from any user-opened GitHub issue into the agent message (packages/auto-triage-bot/src/channels/github.ts:52-66), and the agent prompt instructs the model to clone and run the repository's setup and tests inside a sandbox (packages/auto-triage-bot/src/agents/issue-triage.ts:42-50). A crafted issue can attempt prompt injection to steer the agent's sandbox commands or the content of the comment it posts with the bot's GitHub token.
Was this helpful? React with 👍 or 👎 to provide feedback.
Adds a Flue-powered issue triage Worker that responds to newly opened GitHub issues and attempts to reproduce the reported behavior in an isolated Cloudflare Sandbox.
The Worker includes the GitHub webhook channel, issue triage agent, Cloudflare runtime and container configuration, environment template, and monorepo workspace integration.
Flow
NuroDev/triage-playground, verifying that newly opened issues trigger reproduction attempts and GitHub comments. The workspace build, typecheck, lint, and formatting checks also pass locally.A picture of a cute animal (not mandatory, but encouraged)
🐬