Feature request for product/service
Cursor CLI
Describe the request
I run cursor-agent headless (--print --output-format stream-json, prompt on stdin, explicit
--resume) from a local tool that automates coding tasks on Windows 11. Every run needs a fixed,
checkable permission profile: file tools inside the workspace only — no shell, no web tools, no
MCP servers, no hooks, no plugins — while our organization’s managed team policy stays in force.
If I cannot establish that profile, the tool does not launch Cursor at all.
With build 2026.09.26-dd393fe I could not establish it:
- Plugins enabled for the account in the dashboard still appear to load, even with a fresh
CURSOR_CONFIG_DIRand home directory. --disable-project-configsonly skips.cursor/cli.json; projecthooks.json,mcp.json,
thepluginskey in.cursor/settings.jsonand third-party imports still apply.- The CLI accepts hidden
--allowed-tools/--exclude-toolsoptions marked “internal only”.
They are sent as request headers, and it is not documented whether they are enforced,
including for subagents. - On Windows there is no filesystem sandbox; the file tools have built-in exceptions outside the
workspace (temporary files, generated artifacts,.cursorrule files in the home directory),
and permission patterns appear to match case-sensitively. - With a fresh config directory, the team falls back to the server default.
What would solve it
- One documented switch for a locked-down headless session, e.g.
--locked-down: no user
or project hooks, no MCP servers, no plugins (local, marketplace, dashboard-enabled), no
third-party imports, no subagent definitions — while instruction files (AGENTS.md,
.cursor/rules, skills) and team-managed policy still apply. - A documented, enforced tool allowlist, e.g.
--tools read,list,glob,grep,edit,write,delete:
nothing else is offered to the model or executed by the client — including shell, web
search/fetch, image generation, semantic search and subagents (or at least subagents pinned
to the requested model). - A workspace-only file boundary on Windows in that mode: checked on resolved paths
(symlinks, junctions), case-insensitive, no exceptions outside the workspace, and a visible
error result instead of a prompt or a hang. - A way to inspect the effective configuration without a model turn, e.g.
cursor-agent config --effective --json: plugins, hooks, MCP servers, permissions and the
active team for an account and workspace. - A flag or environment variable that pins the team for headless runs, reported in
system/init.
Nice to have: a documented stream-json schema (tool-call variants, interaction_query, usage);
--new-session-id and the storage-root variables (CURSOR_CONFIG_DIR, CURSOR_ CURSOR_AGENT_STORE_DIR) as supported options; and a guarantee that an explicit –model` never
falls back to another model.
Why it matters
Headless automation needs runs that are predictable and auditable. Today the eff
capabilities of a run depend on dashboard settings, project files and server defaults that the
caller can neither pin nor inspect. A locked-down mode would let teams automate
while their managed policy stays authoritative.
Operating System: Windows 11 (cursor-agent 2026.09.26-dd393fe)
Happy to test preview builds and report back.
Operating System (if it applies)
Windows 10/11