Skip to content

Add cloud start hygiene that removes Cursor commit attribution - #12

Draft
real-limitless wants to merge 1 commit into
COREfrom
cursor/zero-cursor-attribution-3cef
Draft

real-limitless wants to merge 1 commit into
COREfrom
cursor/zero-cursor-attribution-3cef

Conversation

@real-limitless

Copy link
Copy Markdown
Owner

Cloud VMs install commit-msg.cursor.co-author under /home/ubuntu/.cursor/agent-hooks. The IDE Attribution setting does not apply to cloud agents, so that file has to be removed at start.

This PR adds a start-only .cursor/environment.json (no install stack, no terminals) that runs .cursor/no-cursor-attribution.sh on every agent boot.

What start does

  1. Deletes every commit-msg.cursor.co-author and *co-author* file under /home/ubuntu/.cursor/agent-hooks.
  2. Installs commit-msg.cursor.zz-strip-attribution so those trailers are stripped even if a co-author hook runs earlier in the same commit.
  3. Starts a small background reaper (2s) so a rewritten hook file does not stay on disk.
  4. If the workspace git identity is still the cloud-agent default, retargets it to Chen Chiu so new commits are not authored as the agent.

Proof on this VM (after running start)

  • Recreated the hook files, ran bash .cursor/no-cursor-attribution.sh, then find … *co-author* returned nothing.
  • Reaper deleted a replanted hook in ~3s.
  • A commit that injected agent trailers through the dispatcher stored a clean message.
  • This PR commit is Author: Chen Chiu <chenchiu9@gmail.com> with no agent trailer.

Hunch check
A throwaway commit after deleting the hook did not recreate commit-msg.cursor.co-author. The reaper stays anyway because cloud setup may write that file again on a later boot or tool path.

No product install, snapshot, or terminals were added. After merge, new agents on this revision pick up the repo start command automatically.

Open in Web Open in Cursor 

Run a start script on every agent boot to delete agent-hooks
co-author files, install a commit-msg stripper, and keep a
small reaper in case those files are rewritten.
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