const pr = "https://github.com/acme/app/pull/42"
const [security, quality, architecture] = await Promise.all([
Box.create({ runtime: "node", agent: { harness: Agent.ClaudeCode, model: "anthropic/claude-sonnet-4-6" } }),
Box.create({ runtime: "node", agent: { harness: Agent.ClaudeCode, model: "anthropic/claude-sonnet-4-6" } }),
Box.create({ runtime: "node", agent: { harness: Agent.ClaudeCode, model: "anthropic/claude-sonnet-4-6" } }),
])
const reviews = await Promise.all([
security.agent.run({ prompt: `Security review for ${pr}` }),
quality.agent.run({ prompt: `Code quality review for ${pr}` }),
architecture.agent.run({ prompt: `Architecture review for ${pr}` }),
])
const jury = await Box.create({
runtime: "node",
agent: { harness: Agent.ClaudeCode, model: "anthropic/claude-sonnet-4-6" },
git: { token: process.env.GIT_TOKEN },
})
await jury.agent.run({
prompt: `Summarize these reviews and post a comment on ${pr}:\n${reviews.map((r) => r.result).join("\n\n")}`,
})