meta: set up Cursor Cloud dev environment#1264
Draft
szokeasaurusrex wants to merge 3 commits into
Draft
Conversation
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>
`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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set up and document the Cursor Cloud development environment for the sentry-rust workspace.
rustfmt+clippy; system libslibssl-dev/pkg-configare provisioned. Update script iscargo fetch --locked.pre-commitis installed and the repo'scommit-msghook is wired through Cursor'score.hooksPathdispatcher so it runs on every commit (it expands issue footers viascripts/commit-msg-expand-issues.py)..github/pull_request_template.md).These notes live in
.cursor/rules/cloud-environment.mdc(a Cursor-onlyalwaysApplyrule) rather thanAGENTS.md, sinceAGENTS.mdis shared with other agents used against this repo and this content is Cursor-Cloud specific — mirroring how the repo already keepsCLAUDE.mdfor Claude.Verified:
cargo fmt/clippyclean,cargo check --all-features, fullcargo test(all-targets + doc) passing, andmessage-demosending a real event envelope end-to-end to a local mock ingest server.