Feature request for product/service
Cursor IDE
Describe the request
Feature Request: Developer-Controlled Verification Mode
Reduce Agent Token Usage While Keeping the AI Autonomous
Summary:
Allow developers to execute verification commands in their own
terminal while Cursor automatically consumes the output and continues
reasoning. This reduces unnecessary agent execution, saves tokens, and
provides a much better workflow for medium and large codebases.
First, Thank You
Cursor has become my primary IDE for professional software development.
I mainly work on large enterprise applications (Laravel, .NET, Python
services, Docker, Kubernetes, React, etc.), and Agent Mode has become an
incredible productivity tool.
However, after hundreds of hours using Agent Mode, I’ve noticed one
workflow limitation that becomes increasingly expensive on larger
repositories.
The Current Workflow
Whenever the agent wants to verify its work, it executes terminal
commands itself.
Typical examples include:
pytestpython manage.py testuv run pytestnpm testpnpm testcargo testgo test ./...dotnet testdocker compose updocker compose buildkubectl applyterraform plan- Long-running AI evaluation scripts
- Integration test suites
- End-to-end Playwright/Cypress tests
Current flow:
Cursor Agent
│
▼
Needs verification
│
▼
Requests terminal access
│
▼
Executes command itself
│
▼
Waits for command to finish
│
▼
Reads stdout / stderr / exit code
│
▼
Continues reasoning
This workflow is perfectly reasonable for small projects.
The Problem on Large Projects
On enterprise repositories, a single debugging session may last 20–40
minutes.
During that session the agent might execute:
pytest6 timesdocker compose up3 timesnpm test5 timespython manage.py migratepython manage.py test- Playwright tests multiple times
Every execution requires:
- Agent reasoning
- Command approval
- Waiting for completion
- Reading the output
- Continuing the conversation
Even though my terminal is already open and I could execute those
commands instantly.
The AI doesn’t really need to execute the command.
It only needs:
- stdout
- stderr
- exit code
Proposed Feature
Developer-Controlled Verification Mode
Add a project/user preference.
Command Execution
(•) AI Executes Commands ← Current behavior
( ) Developer Executes Commands
( ) Hybrid Mode
New Workflow
Instead of this:
Agent
│
▼
Run pytest?
│
▼
Click "Run"
│
▼
Agent executes
│
▼
Reads output
│
▼
Continues
Allow this:
Cursor Agent
│
▼
Verification Required
│
▼
Displays exact command
pytest tests/api/test_users.py -v
│
▼
Agent pauses
│
▼
Developer runs command
(Own terminal / tmux / SSH /
Docker / Remote machine)
│
▼
Cursor automatically captures
✓ stdout
✓ stderr
✓ exit code
│
▼
Agent resumes automatically
The AI still reasons exactly as it does today.
The only difference is who executes the command.
Hybrid Mode
Hybrid mode could automatically execute lightweight commands while
requiring manual execution for expensive operations.
Safe to Execute Automatically
- ls
- pwd
- cat
- grep
- find
- git status
Require Developer Execution
- pytest
- uv run pytest
- python manage.py test
- python manage.py migrate
- docker compose build
- docker compose up
- npm test
- pnpm test
- cargo test
- go test ./…
- dotnet test
- kubectl apply
- terraform plan
- Playwright
- Cypress
- Long-running scripts
Benefits
Lower token usage
The agent spends less time repeatedly executing verification commands.
Faster development
Developers already have a running terminal.
They can execute commands immediately without waiting for another
approval cycle.
Better enterprise workflow
Works naturally with:
- Docker
- SSH
- Remote development
- tmux
- WSL
- Dev Containers
- Kubernetes
- Existing terminal setups
More developer control
Developers decide when expensive commands should run while the AI
focuses on reasoning.
Optional Enhancements
1. Duplicate Verification Detection
If the same verification command has already been requested recently and
the relevant files haven’t changed, avoid requesting it again.
This would eliminate unnecessary repeated test runs.
2. Resume Automatically
As soon as Cursor detects the command has finished, the agent should
continue without asking the user to manually paste the output.
Why This Matters
For small projects, the current workflow is perfectly fine.
For medium and large repositories, however, developers usually already
have:
- a running terminal
- Docker containers
- remote environments
- SSH sessions
- custom aliases
- tmux panes
The AI does not need to own command execution.
It only needs the result.
Providing this as an optional mode would reduce unnecessary agent
execution, lower token usage, and create a smoother workflow for power
users and enterprise teams.
Thank You
Thank you for considering this feature. I believe it would significantly
improve Agent Mode for developers working on larger codebases while
preserving Cursor’s existing workflow for everyone else.
Operating System (if it applies)
Windows 10/11