diff --git a/examples/pr-review-pipeline/README.md b/examples/pr-review-pipeline/README.md index a16a878e0..ada514589 100644 --- a/examples/pr-review-pipeline/README.md +++ b/examples/pr-review-pipeline/README.md @@ -5,7 +5,7 @@ One click deploys this flow to [Agent Relay Cloud](https://agentrelay.com/cloud), running on every pull request. Runs locally and on Cloud. From a checkout with a `flows.json` naming the -agent CLI (`{"cli": "claude"}` is enough — see *Running it* below): +agent CLI, or none at all — the agents pin `cli: "claude"`, which is what a Cloud sandbox (no `flows.json`) needs: ```sh flows run pr-review-pipeline.flow.ts --local-agent --input '{"diffRange":"origin/main...HEAD"}' diff --git a/examples/pr-review-pipeline/pr-review-pipeline.flow.ts b/examples/pr-review-pipeline/pr-review-pipeline.flow.ts index eae2db692..cd22b7faa 100644 --- a/examples/pr-review-pipeline/pr-review-pipeline.flow.ts +++ b/examples/pr-review-pipeline/pr-review-pipeline.flow.ts @@ -73,6 +73,8 @@ export default flow( LENSES.map((lens) => f .agent(`${lens}-reviewer`, { + // Pinned: a Cloud sandbox has no flows.json to resolve the CLI from. + cli: "claude", task: `Review this diff for ${lens} issues ONLY — ignore everything else. ` + `Write every finding, or an explicit "no issues found", to ` + @@ -90,6 +92,7 @@ export default flow( // whichever verdict is read first silently win. const consensus = await f .agent("consensus", { + cli: "claude", task: `Read ${LENSES.map(findingsPath).join(", ")}. Where two reviewers ` + `reached opposite verdicts on the same spot in the diff, resolve it ` + diff --git a/examples/stale-issues/stale-issues.flow.ts b/examples/stale-issues/stale-issues.flow.ts index a5945cabc..3f5bfcdc0 100644 --- a/examples/stale-issues/stale-issues.flow.ts +++ b/examples/stale-issues/stale-issues.flow.ts @@ -64,7 +64,8 @@ export default flow("stale-issues", { budget: { dollars: 2, wallclock: "1 `An issue is stale if it has had no update for ${staleDays}+ days and no clear owner or next step. ` + `An issue needs attention if it is recent but blocked, unanswered, or contradicts another. ` + `Return JSON { stale: [{number,title,reason}], attention: [{number,title,reason}] }; keep reasons to one sentence.`, - { output: { type: "object", required: ["stale", "attention"], additionalProperties: false, properties: { + { cli: "claude", // pinned: a Cloud sandbox has no flows.json to resolve the CLI from + output: { type: "object", required: ["stale", "attention"], additionalProperties: false, properties: { stale: { type: "array", maxItems: 50, items: FINDING_SCHEMA }, attention: { type: "array", maxItems: 50, items: FINDING_SCHEMA } } } }, ) as Triage;