Cursor Agent CLI
Cursor Agent CLI configuration is managed from this repository with GNU Stow.
Install
Section titled “Install”make stow-cursorThis links dotfiles/cursor/.cursor/cli-config.json to ~/.cursor/cli-config.json.
Managed Settings
Section titled “Managed Settings”- Commit and PR attribution are off (
attribution.attributeCommitsToAgent/attributePRsToAgentbothfalse), so local Agent CLI commits and PRs do not get Cursor co-author trailers or “Made with Cursor” footers. - Display defaults to zen mode with line numbers, thinking blocks, and status indicators off.
- Terminal notifications, hints, model slash commands, and
/rewindare on. - Explore subagent model stays on Cursor’s default (
exploreSubagentModel: "default"). - Network stays on HTTP/2 for agent connections (
useHttp1ForAgent: false). Flip totrueonly if a corporate proxy requires HTTP/1.1 SSE. - Permissions start minimal (
Shell(ls)allow). Expandpermissions.allow/denyas needed; project overrides can also live in.cursor/cli.json.
Local State (Do Not Stow)
Section titled “Local State (Do Not Stow)”Keep these local under ~/.cursor/ and out of the repo:
authInfo/ login cache (CLI may rewrite intocli-config.jsonat runtime)mcp.jsonwhen it holds tokenside_state.json,agent-cli-state.json, extensions, projects, plans, worktrees
IDE Attribution
Section titled “IDE Attribution”CLI attribution is separate from the Cursor IDE toggle. In the app: Settings → Git & PRs → Attribution (or Agents → Attribution on older builds) and turn off Commit Attribution and PR Attribution.
Cloud / background agents use a different path and may still author as Cursor; that is not controlled by cli-config.json.
Checks
Section titled “Checks”make stow-cursor./scripts/ci/test-cursor-config.shConfirm the live file is the stow symlink and attribution stays off:
readlink ~/.cursor/cli-config.jsonjq '.attribution' ~/.cursor/cli-config.jsonExpected:
{ "attributeCommitsToAgent": false, "attributePRsToAgent": false}