Repository navigation
0.7.0: live shell output, the November 2026 API, unified accounts and the Projects API - #13
Merged
Merged
Conversation
"SHA refused locally" passed a 40-character SHA as starting_ref. Since the October 19 change the server sends a full SHA instead of refusing it, so the check reached the API. It now uses a ref no Git accepts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
From the Cursor spec of November 9, 2026 and real reads of November 10. Checked live: - "Blocked by privacy setting" (400 validation_error) is PERMISSION with a recovery, not "Parameters rejected."; seen on environments with a grok_ key while a crsr_ key of the same account was accepted. - cursor_get_account names the key type (crsr, grok, other) from the configured key's prefix, never the key. - no_usage_recorded marks runs with zero tokens in cursor_get_usage and, in cursor_supervise(usage=true), agents with such an ended run; the fleet total is a lower bound for them. - Max Mode: default_max_mode and max_mode_variants in the catalog, and model.max_mode with a warning on a creation or follow-up. A selection counts only if every variant behind it is flagged. Not journaled, so an older server sharing the journal still reads it. - cursor_list_environments takes the API's filters: query, owner, named, repositories. From the spec only, no real run could be created that day: - cursor_create_run(delivery="steer"): 202 steered or queued, bare body, never resent; 202 is a success for a steer only. run_id and status of cursor_create_run become optional (absent on a queued steer). - env_vars and forward_env on a follow-up run. - WAITING_FOR_BACKGROUND_WORK is a known active run status. - CURSOR_SANDBOX is refused in environment variable names. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
docs/api-contract.md: new spec fingerprint, steer, per-run envVars, the new run status, key types, environment filters. docs/verification.md: dated section with what each key type was answered, usage reading zero since November 9, Max Mode in the catalog, and what stayed unverified. Agent guide, README, skill and AGENTS.md follow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The OpenAPI changed the day it was read (etag 1c8bc632, 166185 bytes). The November 10 file was found again by its SHA-256, so the diff is exact: 519 lines added, 4 removed. New: the Projects API, an agent-level stream and six error codes. Nothing the existing tools use changed shape. Keys, rechecked with free GETs and the paid smoke script: nothing moved since November 12. A grok_ key still gets 403 on pools and secrets, and POST /v1/agents is still refused with QUOTA. Neither the spec nor the pricing and X Subscription pages say why or whether API-created agents bill differently. Both spec files are kept locally and git-ignored (docs/cloud-agents-openapi*.yaml, docs/openapi-headers.txt), so the next re-read has a real diff to start from. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The November 16 spec adds Projects: a coordinator agent that starts and follows other agents. Only the reads are wired, as the twentieth tool. Creating, renaming and archiving a Project are left out on purpose: a coordinator is paid and starts agents outside this server's cost guards, and creation cannot be verified while POST /v1/agents answers QUOTA. - cursor_list_projects: a page of Projects, or one Project with the agents its coordinator started. project_id takes the bc-<uuid> form. An agents page asked for with a cursor that fails is an error, not a note. A Project read by the id of the caller's own coordinator is accepted when its own id is well formed. - coordinator_of_project on the rows of cursor_list_agents, cursor_get_agent and cursor_supervise when the agent is the caller's coordinator in a Project. A marker only: the coordinator is an ordinary agent to the API, so archiving or deleting it archives the Project (per the spec, not tried). It comes from one GET /v1/projects, cached 60 s, errors included; unreadable means unmarked. - failure_note: one shared line for a failure reported inside a successful result, keeping the HTTP status, Cursor's code and the wait it asked for. - Read live with a crsr_ and a grok_ key: list, one Project, its coordinator as an agent and its last run, and the marker in all three tools. - The fixture serves a Project whose coordinator is a readable agent. The shared test Router answers GET /v1/projects with an empty page unless a test is about Projects. scripts/probe_api.py gains a Projects probe; smoke_live.py a free check that only forgives PERMISSION. Tool count 19 to 20 everywhere. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- cursor_read_run_events(include_shell_output=true): shell_output events with what a shell command prints while it runs (call_id, stdout, stderr), one event per command and stretch of output, newest part kept within tool_output_limit. It sends the stream header that cursor-sdk 1.5.0 sends (x-cursor-sdk-shell-tool-call-delta), not in the OpenAPI; checked live on November 25: the same finished run replayed with it carries shell-tool-call-delta updates, without it none. Off by default, both modes (after_event_id and tail). - November 25 spec: only files (beta) on POST /v1/projects, not wired. - Follow-up runs checked live: an agent created by hand in the Cursor interface, then driven by cursor_create_run, finished. - Skill: old agents may not answer a follow-up (seen once); wait before cancelling. Shell output in the supervision steps. Also ships the unreleased work since 0.6.0: delivery="steer", per-run env_vars, WAITING_FOR_BACKGROUND_WORK, no_usage_recorded, Max Mode flags, api_key_type, environment filters, cursor_list_projects and coordinator_of_project, PERMISSION for privacy refusals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Aligns the server with the Cursor spec of November 9, 2026, with what a unified Cursor and Grok account answered on November 10 and 12, and with the spec of November 16, which adds Projects. No version bump.
Checked against the real API (free reads)
400 validation_error"Blocked by privacy setting" is nowPERMISSIONwith a recovery, instead of "Parameters rejected.". Seen oncursor_list_environmentswith agrok_key on November 10 while acrsr_key of the same user was accepted. The same call answered200on November 12; the classification stays for the case it comes back.cursor_get_accountaddsapi_key_type(crsr,grok,other), read from the configured key's prefix; the key itself is never echoed.no_usage_recordedmarks runs with zero tokens incursor_get_usage, and agents with such an ended run incursor_supervise(usage=true), where the fleet total becomes a lower bound.default_max_modeandmax_mode_variantsincursor_list_models,model.max_modeand a warning on creations and follow-ups. The default variant of 20 models out of 47 is flagged.query,owner,named,repositoriesoncursor_list_environments.From the spec only (November 9)
No agent could be created that day, so these are tested against the spec, not a real run:
cursor_create_run(delivery="steer"): adds a prompt to the run in progress (202steeredorqueued), bare body, never resent. The API's body validation for it was observed live; an accepted steer was not.env_varsandforward_envon a follow-up run.WAITING_FOR_BACKGROUND_WORKas a known, non-terminal run status.CURSOR_SANDBOXrefused in environment variable names.November 16: the Projects API (new in this update)
The spec changed the day it was read (etag
1c8bc632…, 166185 bytes). The November 10 file was found again by its SHA-256, so the diff is exact: 519 lines added, 4 removed. New: Projects, an agent-level stream (GET /v1/agents/{id}/stream, not used) and six error codes, which fall into existing error classes by status. Nothing the existing tools use changed shape.cursor_list_projects(the twentieth tool, read-only): a page of Projects, or one Project with the agents its coordinator started. A Project is a coordinator agent. Read live with acrsr_and agrok_key: the list, one Project, its coordinator as an agent and its last run. The account's only Project has no agent under it and its old run's stream had expired, so those two cases are specified, not observed.coordinator_of_projecton agent rows (cursor_list_agents,cursor_get_agent,cursor_supervise): a marker for an agent that is the caller's coordinator in a Project. Archiving or deleting it archives the Project, per the spec (not tried). It is a marker only: nothing is refused. It comes from oneGET /v1/projects, cached for 60 s, errors included; when that list cannot be read the rows are simply unmarked.POST /v1/agentsis refused (below).failure_notereplaces four copies of the same line for a failure reported inside a successful result, and now keeps the HTTP status, Cursor's code and the wait it asked for.scripts/probe_api.pygains a Projects probe;scripts/smoke_live.pya freecursor_list_projectscheck that only forgivesPERMISSION. It has not run yet: the last smoke predates it.Also
scripts/smoke_live.py: its "SHA refused locally" check had been sending a realPOSTsince full SHAs stopped being refused locally; it now uses a ref no Git accepts.docs/api-contract.md, dated sections indocs/verification.md, the agent guide, README, skill andAGENTS.md.Behaviour changes for callers
run_idandstatusofcursor_create_runare now optional: both are absent on a queued steer. An ordinary follow-up still returns them.cursor_supervise(usage=true)omitscharged_centsfor an agent flaggedno_usage_recordedwhen nothing was charged.VALIDATIONtoPERMISSION.cursor_list_agents,cursor_get_agentandcursor_supervisereadGET /v1/projects(up to five pages of 100, cached for 60 s) and may addcoordinator_of_projectto a row.Not fixed here
Both are on Cursor's side and described in
docs/verification.md:grok_key is refused on pools (403) and secrets (403 key_not_supported, in the spec). Environments were refused on November 10 and accepted again on November 12;POST /v1/agentsis refused withusage_limit_exceeded(QUOTA, prepaid balance): both key types on November 10, thecrsr_key on November 12 and 16. Neither the spec nor the pricing pages say why or whether API-created agents bill differently. A Cursor ticket is open.Test plan
uv run pytest(232 passed)uvx ruff@0.16.10 check src tests scripts skillsuv build --wheel, fresh venv,scripts/wheel_smoke.py, 20 tools)crsr_and agrok_key, free reads only (Projects, the marker in all three tools)scripts/smoke_live.pywith its new free Projects checkenv_vars, the new run status🤖 Generated with Claude Code