Cursor terminal allowlist entry "git" also permits git push --force
11/21/2026 — 11/21, 18:17·1 sources (all)·1 reports (all)
Key takeaways
- A write-up notes that Cursor's agent edits workspace files by default while terminal commands need approval, but adding "git" to the termina…
Background & analysis
On November 21, 2026, DEV Community · AI published an article describing a security detail in how Cursor handles approvals for terminal commands. According to the piece, Cursor's agent can modify files in the workspace by default and does not ask for approval beforehand, with configuration files as the exception. Changes are written to disk immediately, and the official documentation recommends relying on version control so that edits can be rolled back. Terminal commands follow a different rule: by default they require user approval.
For users who want to stop approving commands repeatedly, the article explains that Cursor offers a run mode together with small configuration files, including .cursor/permissions.json and .cursor/sandbox, to define which commands are permitted. The central concern it raises is that adding git to the terminal allowlist does not restrict execution to safe git commands. Instead, it allows every command that begins with git, which includes git push --force. The article also walks through the correct usage of run mode and configuration files such as .cursor/permissions.json, drawing on the official documentation.
As of now, only this single report is available, and no further developments have appeared. The discussion therefore remains at the level of explaining the configuration behavior and the guidance given in Cursor's official documentation, with no additional follow-up to report.
AI-generated from 1 reports · updated 16 hours ago
Related AI tools
- Heat index
- 62
- All sources
- 1
- All reports
- 1
- First seen
- 17 hours ago
Reports on this story headlines open the original
Cursor's agent edits workspace files without approval by default, while terminal commands require approval. But a terminal allowlist entry of git does not mean only safe git commands — it approves every command starting with git, including git push --force. The article explains run modes and configuration files based on official docs.
DEV Community · AIAI score 60
Other stories people are talking about
- Heat index 154Cursor weighs dropping Chinese open-weight models as Sarvam starts selling them3 sources
- Heat index 34Cursor Agent mistakenly runs rmdir and wipes Windows C drive1 sources
- Heat index 40Guide compares Cursor rules, AGENTS.md and .cursorrules1 sources
- Heat index 32Local-first MCP memory for Claude Code and Cursor, no vector DB1 sources
- Heat index 223Gemini 4 Neon now live across Google platforms with expanded pricing4 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

