Repository navigation
fix(ai): detect Cursor's Made-with trailer - #643
Conversation
Cursor marks the commits it writes with a `Made-with: Cursor` trailer, which every policy let through. It now counts as Cursor's own mark, like Copilot's Agent-Logs-Url: forbid rejects it, and disclose asks for the project's disclosure trailer next to it. Other Made-with values are left alone.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #643 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 14 14
Lines 2429 2429
Branches 470 470
=========================================
Hits 2429 2429 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance1 warning
Performance Changes
Comparing Footnotes
|
Brings the site in step with v2.19.4, published 2026-10-29 ([release](https://github.com/commit-check/commit-check/releases/tag/v2.19.4), on PyPI). ## Before / After `python -m pytest tests/ -q` with `commit-check==2.19.4` installed: | | Result | |---|---| | Before (`main`) | ❌ 2 failed, 16 passed: `test_pinned_revisions_match_the_released_version`, `test_documented_defaults_match_the_runtime` | | After (this branch) | ✅ 18 passed | What a reader sees: | Page | Before | After | |---|---|---| | pre-commit snippets (configuration, example, pre-commit guide ×3) | `rev: v2.19.3` | `rev: v2.19.4` | | Configuration → `allow_branch_types` default | `… "copilot", "cursor", "dependabot", "renovate"` | `… "copilot", "cursor", "agents", "dependabot", "renovate"`, and the description names `agents` (the prefix VS Code's Agents window uses) | | Rules → CC201 options | default list without `agents` | names `agents` among the defaults | | Rules → CC013, Policy guides | trailers listed up to Copilot's `Agent-Logs-Url:` | also Cursor's `Made-with: Cursor` | | Changelog | latest entry v2.19.3 | v2.19.4 (2026-10-29) entry and a Highlights row | ## Changes - Pins: `docs/configuration.md`, `docs/example.md`, `docs/guides/pre-commit.md` (blog posts untouched, as AGENTS.md asks). - `agents` in the default branch types, from commit-check/commit-check#645: `docs/configuration.md` (Every option) and `docs/rules.md` (CC201). The spec-strict config on CC201 is unchanged: the Conventional Branch spec does not list `agents` yet. - Cursor's `Made-with: Cursor` trailer, from commit-check/commit-check#643, which noted the site could name it once released: `docs/rules.md` (CC013) and `docs/guides/policies.md`. - `docs/changelog.md`: v2.19.4 entry with its release date, and a Highlights row, since the release changes what passes. `mkdocs build --strict` passes locally (no warnings). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Documentation** * Updated the changelog and policy guidance to describe recognition of Cursor’s `Made-with:` trailer. It is rejected when the `forbid` policy is enabled and corrected to `Assisted-by: Cursor` under `disclose`; other `Made-with:` values are unaffected. * Updated configuration and rule documentation to show `agents` as an accepted default branch prefix. * Updated pre-commit examples to use Commit Check v2.19.4. <!-- end of auto-generated comment: release notes by coderabbit.ai -->



Summary
Cursor marks the commits it writes with a
Made-with: Cursortrailer (Cursor forum). Every policy let it through. It now counts as Cursor's own mark, the same way Copilot'sAgent-Logs-Urldoes:forbidrejects it, anddiscloseasks for the project's disclosure trailer next to it. OtherMade-withvalues (Made-with: love) are left alone.Before vs after
Message:
forbidCC013 ai-attribution check failed ==> CursordiscloseCC014 ai-disclosure check failed ==> Made-with: CursorSuggest: Disclose the tool with "Assisted-by: Cursor"fixunderdiscloseAssisted-by: CursorChanges
commit_check/ai_signatures_data.py: aMade-with: Cursorstamp trailer on the Cursor entry.Made-with: love,Made-with: Cursors and arrows), the grouped scan, thedisclosefix, andforbidin the validator.Testing
pytest: 1448 pass. One failure,test_load_config_file_permission_error, comes from running as root locally and is unrelated.ruff checkandruff format --checkare clean.The site's CC013 description ("Amp's
Amp-Thread-ID:trailer or theAgent-Logs-Url:trailer…") can nameMade-with: Cursoronce this ships in a release.Summary by CodeRabbit
Made-with: Cursortrailer, including in grouped attribution scans.Made-with: Cursortrailer and appendAssisted-by: Cursor.Made-with: loveandMade-with: Cursors and arrowsare not incorrectly detected as AI signatures.