# Run Command Whitelist

**URL:** <https://forum.cursor.com/t/run-command-whitelist/33611>\
**Category:** Feature Requests\
**Created:** [December 10, 2024, 12:40am UTC](https://forum.cursor.com/t/run-command-whitelist/33611 "2024-12-10T00:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen-S-H](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/stephen-s-h/32/4622_2.png) [@Stephen-S-H](https://forum.cursor.com/u/Stephen-S-H)\
**Post date:** [December 10, 2024, 12:40am UTC](https://forum.cursor.com/t/run-command-whitelist/33611/1 "2024-12-10T00:40:43Z")

</div>

It would be great if we could have a whitelist of Run Commands that the Composer Agent could execute without waiting for approval. I often have the agent generate unit tests as it goes, run the tests, and iterate on the results. I don’t want to give the agent the ability to run **everything** without my approval, but I would like to be able to say that ‘pytest’ commands are ok to run without my approval.

Even if we needed to include the entire command in the whitelist for safety it would be helpful. Then we could have a button in the Composer to ‘Always Run’.

If thats too dangerous still, then just make the approval apply to the current Composer conversation.

Settings JSON: `{ "composerAgentRunList": ["python -m pytest tests/unit/test_process_file.py -v"] }`

---

<div class="post-metadata">

**Author:** ![positron48](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/positron48/32/15541_2.png) [@positron48](https://forum.cursor.com/u/positron48)\
**Post date:** [January 24, 2025, 1:00pm UTC](https://forum.cursor.com/t/run-command-whitelist/33611/2 "2025-01-24T13:00:12Z")

</div>

See YOLO mode, it has whitelist and blacklist - [YOLO Mode is Amazing!](https://forum.cursor.com/t/yolo-mode-is-amazing/36262)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:25am UTC](https://forum.cursor.com/t/run-command-whitelist/33611/3 "2026-06-18T10:25:30Z")

</div>

Closed on June 18, 2026, 10:25am UTC


