Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/pr-review-pipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}'
Expand Down
3 changes: 3 additions & 0 deletions examples/pr-review-pipeline/pr-review-pipeline.flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export default flow<PrReviewInput>(
LENSES.map((lens) =>
f
.agent(`${lens}-reviewer`, {
// Pinned: a Cloud sandbox has no flows.json to resolve the CLI from.
cli: "claude",
Comment on lines +76 to +77

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Project CLI configuration ignored

With Codex configured, cli pins every review agent and the stale-issue triage to Claude. resolveCli gives step declarations precedence over project configuration. Local runs fail without Claude and ignore the configured harness when Claude is available.

Learn more

A step-level CLI declaration overrides named-agent, flow-level, and project-level settings in resolveCli. These pins fix Cloud because its sandbox lacks flows.json, but they also affect local execution. The same override was added to the stale-issues triage. The README still documents {"cli":"codex"} as a supported local selection, but that value can no longer select Codex.

Example: A developer has Codex installed and flows.json contains {"cli":"codex"}. Before this change, the review agents use Codex. After this change, preflight resolves Claude from each step and the run fails if Claude is unavailable.

Recommended fix: Preserve project-level selection for local runs while supplying Claude through Cloud's deployment environment. The Cloud executor can materialize the deployment's declared harness as flows.json, or the runtime can expose a Cloud-only default below explicit project configuration. Apply the same resolution strategy to both examples.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

task:
`Review this diff for ${lens} issues ONLY — ignore everything else. ` +
`Write every finding, or an explicit "no issues found", to ` +
Expand All @@ -90,6 +92,7 @@ export default flow<PrReviewInput>(
// 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 ` +
Expand Down
3 changes: 2 additions & 1 deletion examples/stale-issues/stale-issues.flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default flow<Input>("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;

Expand Down
Loading