Add cloud start hygiene that removes Cursor commit attribution - #12
Draft
real-limitless wants to merge 1 commit into
Draft
real-limitless wants to merge 1 commit into
real-limitless wants to merge 1 commit into
Conversation
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.
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.
Cloud VMs install
commit-msg.cursor.co-authorunder/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.shon every agent boot.What start does
commit-msg.cursor.co-authorand*co-author*file under/home/ubuntu/.cursor/agent-hooks.commit-msg.cursor.zz-strip-attributionso those trailers are stripped even if a co-author hook runs earlier in the same commit.Proof on this VM (after running start)
bash .cursor/no-cursor-attribution.sh, thenfind … *co-author*returned nothing.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
startcommand automatically.