update-cli-config

update-cli-config is a skill for Claude Code from kensaurus/cursor-kenji. It costs 48 tokens per session (912 once invoked), scanned A, a copy of update-cli-config, MIT.

A guide for changing Cursor CLI settings stored in configuration files, including permissions, approval behavior, display options, and Vim mode.

In plain words
What is it for?
Use it to review or modify Cursor CLI permissions, editor behavior, display settings, and sandbox options.
Why use it?
It helps adjust command-line behavior without guessing which settings file or option controls it.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the cursor-kenji plugin — 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers shipped together

Good fit Use it to review or modify Cursor CLI permissions, editor behavior, display settings, and sandbox options.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kensaurus/cursor-kenji/update-cli-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kensaurus/cursor-kenji --skill update-cli-config
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code.

Or install cursor-kenji, the plugin that ships this one along with the rest of its 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-cli-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/update-cli-config/github.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/update-cli-config)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/update-cli-config"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/update-cli-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-cli-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/update-cli-config"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/update-cli-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00912
Opus 5.5 $0.00019 $0.00365
Sonnet 5.5 $0.00010 $0.00182
Haiku 4.5 $0.00005 $0.00091

Measured 2mo ago against content hash b4748d70fc23, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

update-cli-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to update-cli-config — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills-cursor/update-cli-config/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cursor CLI Configuration

This skill explains how to view and modify Cursor CLI settings stored in ~/.cursor/cli-config.json.

Config File Location

The config file is ~/.cursor/cli-config.json.

Projects can layer overrides via .cursor/cli.json files. The CLI walks from the git root to the current working directory and merges each .cursor/cli.json it finds (deeper files take precedence). Project overrides only affect the current session; they are not written back to the home config.

How to Modify

Read ~/.cursor/cli-config.json, apply changes, and write it back. The file is standard JSON. Changes take effect after restarting the CLI.

Available Settings

permissions (required)

Tool permission rules. Each entry is a string pattern.

  • allow: string[] — patterns for allowed tool calls (e.g. "Shell(**)", "Mcp(server-name, tool-name)")
  • deny: string[] — patterns for denied tool calls

editor

  • vimMode: boolean — enable vim keybindings in the CLI input
  • defaultBehavior: "ide" | "agent" — default behavior mode

display (optional)

  • showLineNumbers: boolean (default: false) — show line numbers in code output
  • showThinkingBlocks: boolean (default: false) — show model thinking/reasoning blocks
  • showStatusIndicators: boolean (default: false) — show status indicators in the UI

channel (optional)

Release channel: "prod" | "staging" | "lab" | "static"

maxMode (optional)

boolean (default: false) — enable max mode for higher-quality model responses

approvalMode (optional)

Controls tool approval behavior:

  • "allowlist" (default) — require approval for tools not in the allow list
  • "unrestricted" — auto-approve all tool calls (yolo mode)

sandbox (optional)

Sandbox execution environment settings:

  • mode: "disabled" | "enabled" (default: "disabled")
  • networkAccess: "user_config_only" | "user_config_with_defaults" | "allow_all" — controls network access from sandbox
  • networkAllowlist: string[] — domains the sandbox is allowed to reach

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +1 lines b4748d70fc23
  2. 2mo ago First seen · 85 lines · 48 tokens per session scan A 7167c767d963

Subscribe to this mod's changes

update-cli-config is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 912 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to update-cli-config, differing in 8 lines, and is treated as a copy.

Related

update-cli-config compared with skills from other repositories

update-cli-config next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
update-cli-configkensaurus/cursor-kenjiSkill92mo agoMITA48Claude Code
noteplanjaansokk/cursor_toolsSkill111d agoMITA105Claude Code
lno-task-prioritizationluisabwk/krakenSkill28mo agononeA70Cursor
dynamic-contextluisabwk/krakenSkill28mo agononeA14Cursor
cursor-delegateVanyangyang/cursor-bridgeSkill83yesterdayMITA163Claude Code, Codex
agent-work-receiptemaraschio/cursor-commandsSkill915d agoMITA60Claude Code, Cursor
code-review-codexjaansokk/cursor_toolsSkill111d agoMITA45Claude Code