Skip to content

meta: set up Cursor Cloud dev environment#1264

Draft
szokeasaurusrex wants to merge 3 commits into
masterfrom
cursor/setup-dev-environment-72ae
Draft

meta: set up Cursor Cloud dev environment#1264
szokeasaurusrex wants to merge 3 commits into
masterfrom
cursor/setup-dev-environment-72ae

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jul 24, 2026

Copy link
Copy Markdown
Member

Set up and document the Cursor Cloud development environment for the sentry-rust workspace.

  • Rust stable (>= MSRV 1.88) is the default toolchain with rustfmt + clippy; system libs libssl-dev/pkg-config are provisioned. Update script is cargo fetch --locked.
  • pre-commit is installed and the repo's commit-msg hook is wired through Cursor's core.hooksPath dispatcher so it runs on every commit (it expands issue footers via scripts/commit-msg-expand-issues.py).
  • Commit messages are reused verbatim as PR title/description (no .github/pull_request_template.md).

These notes live in .cursor/rules/cloud-environment.mdc (a Cursor-only alwaysApply rule) rather than AGENTS.md, since AGENTS.md is shared with other agents used against this repo and this content is Cursor-Cloud specific — mirroring how the repo already keeps CLAUDE.md for Claude.

Verified: cargo fmt/clippy clean, cargo check --all-features, full cargo test (all-targets + doc) passing, and message-demo sending a real event envelope end-to-end to a local mock ingest server.

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 24, 2026 15:33
Co-authored-by: Daniel Szoke <szokeasaurusrex@users.noreply.github.com>
Configure the dev environment so that commits run pre-commit hooks and so
that PRs reuse commit messages instead of the repo PR template.

- `pre-commit` is installed in the environment and the repo's `commit-msg`
  hook is installed at `.git/hooks/commit-msg`. Cursor's hook dispatcher
  (`core.hooksPath`) chains to the repo hooks, so the pre-commit
  `commit-msg` hook (which expands issue footers via
  `scripts/commit-msg-expand-issues.py`) runs on every commit.
- Document in `AGENTS.md` how the hook is wired up, how to reinstall it
  when `core.hooksPath` blocks `pre-commit install`, and the convention
  that commit messages are reused verbatim as PR title/description with no
  template.

Co-authored-by: Daniel Szoke <szokeasaurusrex@users.noreply.github.com>
@cursor cursor Bot changed the title meta: Add AGENTS.md with Cursor Cloud dev environment instructions meta: set up Cursor Cloud dev environment Jul 24, 2026
`AGENTS.md` is a cross-agent file, but these notes are Cursor-Cloud
specific (snapshot provisioning, Cursor's `core.hooksPath` dispatcher).
Keeping them in `AGENTS.md` adds noise for the other agents used against
this repo.

Move the content to `.cursor/rules/cloud-environment.mdc` (an
`alwaysApply` Cursor rule) so it stays available to Cursor agents without
affecting other agents, mirroring how the repo already keeps `CLAUDE.md`
for Claude. No behavior change to the toolchain, tests, or hooks.

Co-authored-by: Daniel Szoke <szokeasaurusrex@users.noreply.github.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.

2 participants