# Add used Commands to beforeSubmitPrompt hook

**URL:** <https://forum.cursor.com/t/add-used-commands-to-beforesubmitprompt-hook/141475>\
**Category:** Feature Requests\
**Created:** [November 6, 2025, 9:12pm UTC](https://forum.cursor.com/t/add-used-commands-to-beforesubmitprompt-hook/141475 "2025-11-06T21:12:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddelarueb](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@ddelarueb](https://forum.cursor.com/u/ddelarueb)\
**Post date:** [November 6, 2025, 9:12pm UTC](https://forum.cursor.com/t/add-used-commands-to-beforesubmitprompt-hook/141475/1 "2025-11-06T21:12:19Z")

</div>

### Feature request for product/service

Cursor IDE

### Describe the request

I have found [Cursor hooks](https://cursor.com/docs/agent/hooks) to be quite useful, especially for internal metrics tracking of feature usage. As part of `beforeSubmitPrompt` I think it would be useful to add a new `type` for `command` that refers to the command filename that was used within the prompt. Right now the `beforeSubmitPrompt` logs don’t show the context that gets injected and only show `/<command-name>`
