Skip to content

Declare the Cursor agent CLI as ai-flow's own dependency - #72

Open
JPDuchesne wants to merge 2 commits into
mainfrom
jpd/declare-cursor-agent
Open

JPDuchesne wants to merge 2 commits into
mainfrom
jpd/declare-cursor-agent

Conversation

@JPDuchesne

@JPDuchesne JPDuchesne commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

The dispatcher spawns cursor-agent, so the CLI is ai-flow's runtime dependency — declared in the :app group (Gemfile convention: the default group is what the software needs to run, and the dispatcher spawns the agent binary exactly like it loads sorbet-runtime). Converging this checkout (dev up) is what makes a box agent-capable, which every runner does by construction.

The CLI is dual-homed by design: the d3mlabs host baseline (d3mlabs/knowledge#42, converged by dev#133's machinery) also carries the cask as org-wide human dev tooling. Neither home substitutes for the other — the baseline serves people's machines, this declaration serves the dispatcher's runtime.

  • Installed via the upstream cursor-cli homebrew-cask: world-readable under /opt/homebrew, so the isolated agent user reads it with no shared-root machinery; AI_FLOW_AGENT_BIN points at the Caskroom's stable bin/cursor-agent symlink.
  • darwin-gated (group :app, host: :darwin): agent jobs route to Mac runners; Linux hosts skip it at install.

Test plan

  • dev update-deps — lock carries cursor-cli: {integration: brew, group: app, cask: true, host: darwin}
  • dev up on a host with the cask present: idempotent skip

Made with Cursor

…dency

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Gemfile convention: the default group is what the software needs to
run, and the dispatcher spawns cursor-agent at runtime exactly like it
loads sorbet-runtime. Also records the dual-home decision: the org
baseline carries the same cask as org-wide human dev tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant