Cursor
Cursor’s agent deploys with the same canyon CLI you use, set up once per project. Install the CLI
and sign it in first, as Try it on your laptop
or Deploy on your company’s Canyon shows.
Set it up
Section titled “Set it up”Canyon writes into the project’s .cursor directory and never creates it. In a project without
one, canyon skill install --harness cursor says so and writes nothing:
✗ Cursor is not set up here: ./.cursor does not exist, and Canyon does not create itMake it (mkdir .cursor), then, from the project’s root:
canyon skill install Looking for coding agents in this environment…
✓ Cursor ./.cursor/rules/canyon.mdc written · Canyon's session hook, in ./.cursor/hooks.json under hooks.sessionStart: {"command":"canyon manifest --harness cursor"} ✓ Cursor ./.cursor/hooks.json written · Codex, Cursor, GitHub Copilot's agent, and other agents that read AGENTS.md: canyon skill install --harness agents-md appends to ./AGENTS.md canyon skill install --harness codex Codex's own skill and hook, once Codex has made ~/.codex
Your agent can now deploy. Try asking it: "deploy this app"On a machine where Claude Code or Codex is set up too, the same command writes their files as well,
as Claude Code’s page and
Codex’s show. Cursor also reads AGENTS.md, so you don’t need the
lines it suggests: one copy of the instructions is enough.
What it writes
Section titled “What it writes”Both files are the project’s, so you can commit them and everyone who opens the project in Cursor gets them.
-
.cursor/rules/canyon.mdc: Canyon’s instructions as a Cursor project rule. Its description says when to use it (deploy, ship, share a link, fix a blocked review), andalwaysApply: falselets Cursor’s agent pull the rule in when a request matches that description:---description: Ship and re-ship this app through Canyon. Use when the user asks todeploy, ship, publish, preview, share, or send someone a link to an app — andwhenever a Canyon gate has blocked a deploy and needs fixing.alwaysApply: false---<!-- canyon:skill v:1 hash:44d567a26175 --># CanyonCanyon deploys this app, but runs a review first. The review can block. When itblocks, it tells you exactly what to fix and how. -
.cursor/hooks.json: asessionStarthook, kept beside any hooks you already have:{"hooks": {"sessionStart": [{"command": "canyon manifest --harness cursor"}]},"version": 1}It runs
canyonby name, not by a path on your machine, so it works for everyone who opens the project, as long ascanyonis on theirPATH.
Running canyon skill install again reports both files unchanged, or rewrites them for a newer
CLI. To undo it, run canyon skill uninstall --harness cursor from the project’s root: it removes
the rule and Canyon’s entry in .cursor/hooks.json, and leaves the rest of that file as it was.
How Cursor learns your org’s rules
Section titled “How Cursor learns your org’s rules”When you start a chat, Cursor runs the hook. canyon manifest --harness cursor asks the Canyon you
signed in to for your org’s current rules and prints them as additional_context, which Cursor adds
to the chat’s starting context. A rule an admin changes reaches the next chat you start.
The hook never stops a chat. When the CLI can’t reach Canyon, Cursor’s agent reads this, at most once a day:
{"additional_context":"Canyon: can't reach http://localhost:7777 (it may be down or gone). Nothing to do unless the user asks for Canyon. To use it again, start it (the demo: canyon demo up). To remove Canyon from your coding agents: canyon skill uninstall.\n"}Cursor’s cloud agents don’t run sessionStart hooks. There, the rule’s own instructions tell the
agent to run canyon manifest before it builds.
What differs from Claude Code
Section titled “What differs from Claude Code”- Per project, not per machine. Claude Code’s files live in
~/.claudeand reach every project; Cursor’s live in the project, and each project gets its own. - The hook runs
canyonby name. Claude Code’s runs the CLI by its full path, since that hook is yours alone. Cursor’s may be committed, so it relies oncanyonbeing onPATH. - The rule loads when it fits. Claude Code picks its skill by its description; Cursor does the same with the rule’s description.
Once set up, you ask for a deploy the same way: Claude Code’s page shows a whole session and what the agent read.