feat: context parity across cloud vendors + cloud env configs (ARN-415) - #474
Open
rita-aga wants to merge 1 commit into
Open
feat: context parity across cloud vendors + cloud env configs (ARN-415)#474rita-aga wants to merge 1 commit into
rita-aga wants to merge 1 commit into
Conversation
The distilled AGENTS.md only reached the global layer to Claude (via a .claude/ SessionStart hook). Cursor and Codex cloud agents read the repo AGENTS.md and never saw it. Fix: - Vendor the stack global into AGENTS.md as a marked, regenerated block (stack/vendor-global.sh; single source stays arni-labs/stack). All three harnesses read AGENTS.md, so all three now get the same global. - Remove the now-redundant Claude-only hook + .claude/global.md (CLAUDE.md symlinks to AGENTS.md, so Claude reads the global there). Kept the stack plugin for Claude-cloud skill delivery. - scripts/cloud-setup.sh: clones the stack and installs its skills, so a cloud agent's machine reaches laptop parity for the shared skills. - .cursor/environment.json: Cursor Background Agents run cloud-setup on build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VLPhB9kjLeE48kLUyAXXq2
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "//": "Cursor Background Agent environment. install runs once on snapshot build.", | |||
| "install": "bash scripts/cloud-setup.sh && make setup 2>/dev/null || true", | |||
There was a problem hiding this comment.
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.
Distillation only delivered the global layer to Claude (a .claude/ hook). Cursor and Codex cloud agents read the repo AGENTS.md and never saw the global rules. This vendors the stack global into AGENTS.md (one path all three harnesses read, single source stays arni-labs/stack via stack/vendor-global.sh), removes the redundant Claude-only hook, and adds cloud-setup.sh + .cursor/environment.json so a cloud agent's machine installs the shared stack skills.
Authored by Fable 5 via Claude Code.
Greptile Summary
This PR moves shared global agent guidance into the repository-wide AGENTS.md, removes the Claude-only injection hook, and adds cloud environment bootstrapping for shared stack skills and repository dependencies.
.claude/global.mdand its SessionStart hook.Confidence Score: 4/5
The setup failure masking should be fixed before merging because it can accept an incomplete cloud environment and defer failures until agent work begins.
The new Cursor installation command and cloud bootstrap suppress failures from required dependency and skill installation, so snapshot creation cannot distinguish a usable environment from a partially configured one.
Files Needing Attention: .cursor/environment.json and scripts/cloud-setup.sh
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR Snapshot[Cursor snapshot build] --> Install[environment.json install] Install --> Stack[cloud-setup.sh] Stack --> Clone[Clone or update stack] Clone --> Sync[Run stack sync.sh] Sync --> Repo[make setup] Repo --> Ready[Configured cloud environment] Stack -. masked failure .-> Incomplete[Incomplete environment accepted] Repo -. masked failure .-> IncompleteReviews (1): Last reviewed commit: "feat: context parity across cloud vendor..." | Re-trigger Greptile