Skip to content

0.7.0: live shell output, the November 2026 API, unified accounts and the Projects API - #13

Merged
yoch merged 6 commits into
mainfrom
feat/unified-account-nov-2026
Nov 25, 2026
Merged

yoch merged 6 commits into
mainfrom
feat/unified-account-nov-2026

Conversation

@yoch

@yoch yoch commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

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)

  • Privacy refusal: Cursor's 400 validation_error "Blocked by privacy setting" is now PERMISSION with a recovery, instead of "Parameters rejected.". Seen on cursor_list_environments with a grok_ key on November 10 while a crsr_ key of the same user was accepted. The same call answered 200 on November 12; the classification stays for the case it comes back.
  • Key type: cursor_get_account adds api_key_type (crsr, grok, other), read from the configured key's prefix; the key itself is never echoed.
  • Unrecorded usage: no_usage_recorded marks runs with zero tokens in cursor_get_usage, and agents with such an ended run in cursor_supervise(usage=true), where the fleet total becomes a lower bound.
  • Max Mode: default_max_mode and max_mode_variants in cursor_list_models, model.max_mode and a warning on creations and follow-ups. The default variant of 20 models out of 47 is flagged.
  • Environment filters: query, owner, named, repositories on cursor_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 (202 steered or queued), bare body, never resent. The API's body validation for it was observed live; an accepted steer was not.
  • env_vars and forward_env on a follow-up run.
  • WAITING_FOR_BACKGROUND_WORK as a known, non-terminal run status.
  • CURSOR_SANDBOX refused 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 a crsr_ and a grok_ 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_project on 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 one GET /v1/projects, cached for 60 s, errors included; when that list cannot be read the rows are simply unmarked.
  • Left out on purpose: creating, renaming and archiving a Project. A coordinator is paid and starts agents outside this server's cost guards, and creation cannot be verified while POST /v1/agents is refused (below).
  • failure_note replaces 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.py gains a Projects probe; scripts/smoke_live.py a free cursor_list_projects check that only forgives PERMISSION. It has not run yet: the last smoke predates it.
  • Both spec files are kept locally and git-ignored, so the next re-read has a real diff.

Also

  • scripts/smoke_live.py: its "SHA refused locally" check had been sending a real POST since full SHAs stopped being refused locally; it now uses a ref no Git accepts.
  • Docs: docs/api-contract.md, dated sections in docs/verification.md, the agent guide, README, skill and AGENTS.md.

Behaviour changes for callers

  • run_id and status of cursor_create_run are now optional: both are absent on a queued steer. An ordinary follow-up still returns them.
  • cursor_supervise(usage=true) omits charged_cents for an agent flagged no_usage_recorded when nothing was charged.
  • The privacy refusal changes error code, from VALIDATION to PERMISSION.
  • The server lists twenty tools instead of nineteen.
  • cursor_list_agents, cursor_get_agent and cursor_supervise read GET /v1/projects (up to five pages of 100, cached for 60 s) and may add coordinator_of_project to a row.

Not fixed here

Both are on Cursor's side and described in docs/verification.md:

  • a 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/agents is refused with usage_limit_exceeded (QUOTA, prepaid balance): both key types on November 10, the crsr_ 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 skills
  • Wheel check as CI does (uv build --wheel, fresh venv, scripts/wheel_smoke.py, 20 tools)
  • Real stdio server with a crsr_ and a grok_ key, free reads only (Projects, the marker in all three tools)
  • scripts/smoke_live.py with its new free Projects check
  • Real run: an accepted steer, per-run env_vars, the new run status
  • Creating, renaming or archiving a Project, and archiving a coordinator: not tried

🤖 Generated with Claude Code

yoch and others added 5 commits November 10, 2026 19:48
"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>
@yoch yoch changed the title Follow the November 2026 API and unified Cursor and Grok accounts Follow the November 2026 API, unified accounts and the Projects API Nov 16, 2026
- 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>
@yoch yoch changed the title Follow the November 2026 API, unified accounts and the Projects API 0.7.0: live shell output, the November 2026 API, unified accounts and the Projects API Nov 25, 2026
@yoch
yoch merged commit e70ba87 into main Nov 25, 2026
2 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.

1 participant