Skip to content

chore: wire Ask LLM models into Cursor cloud environment config - #1676

Merged
msukkari merged 4 commits into
mainfrom
cursor/wire-ask-llm-models-e3c4
Sep 22, 2026
Merged

msukkari merged 4 commits into
mainfrom
cursor/wire-ask-llm-models-e3c4

Conversation

@msukkari

@msukkari msukkari commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Adds the Anthropic language model provider to the install-time config.json generated by .cursor/environment.json, while preserving the existing github-public connection.

The configured model is claude-sonnet-4-5 and references the runtime environment variable ANTHROPIC_API_KEY only. OpenAI is intentionally not configured because OPENAI_API_KEY is not present in the Sourcebot Cursor environment.

The Runtime Secret must be set on the Cursor environment for Ask to call Anthropic. Listing a model in config can make it appear in the Ask selector; this change does not claim that a provider call succeeds without its secret.

Validation: the extracted generated config validates against the repository v3 schema and contains an Anthropic-only models array.

Open in Web Open in Cursor 

Summary by cubic

Adds the Anthropic model provider to the install-time config.json generated by .cursor/environment.json, so Cursor cloud environments can call Ask with Claude Sonnet 4.5. OpenAI is intentionally not wired in.

  • The model reads its API key from the ANTHROPIC_API_KEY environment variable; set it as a Runtime Secret on the Cursor environment for Ask to call the provider.
  • Keeps the existing github-public connection untouched.

Written for commit 70d6078. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features
    • Added configuration support for the Anthropic Claude Sonnet 4.5 model in the environment setup.

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: ff964b7f-0d3c-4be1-8d14-46c1565b1896

📥 Commits

Reviewing files that changed from the base of the PR and between c527231 and 70d6078.

📒 Files selected for processing (1)
  • .cursor/environment.json

Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review.


Walkthrough

The environment installation script now generates an Anthropic Claude Sonnet 4.5 model configuration using ANTHROPIC_API_KEY. The existing public repository configuration remains unchanged.

Changes

Model Configuration

Layer / File(s) Summary
Configure supported models
.cursor/environment.json
The generated config.json includes the claude-sonnet-4-5 model with display name Claude Sonnet 4.5 and credentials from ANTHROPIC_API_KEY.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 70d60

The environment configuration adds the requested Anthropic model while preserving the existing repository connection, so it is ready to merge with normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding Ask LLM model configuration to the Cursor cloud environment configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

cursoragent and others added 2 commits September 22, 2026 03:53
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@msukkari
msukkari marked this pull request as ready for review September 22, 2026 04:06
@github-actions

Copy link
Copy Markdown
Contributor

@msukkari your pull request is missing a changelog!

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 70d6078. Configure here.

Comment thread .cursor/environment.json
@msukkari
msukkari merged commit a28b181 into main Sep 22, 2026
15 checks passed
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.

2 participants