Cursor does not currently provide a general hook event for notifying when the agent needs input. Its shell and MCP hooks run before operations, not when the agent is waiting for a response.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Midway Docs","colors":{"primary":"#FFB547","light":"#FFC96B","dark":"#D98A0B"},"logo":{"light":"https://mintcdn.com/midway/JvAmQKnjmYoGAlqZ/logo/light.svg?fit=max\u0026auto=format\u0026n=JvAmQKnjmYoGAlqZ\u0026q=85\u0026s=03d65038edf00ca02de72c734abd5d98","dark":"https://mintcdn.com/midway/JvAmQKnjmYoGAlqZ/logo/dark.svg?fit=max\u0026auto=format\u0026n=JvAmQKnjmYoGAlqZ\u0026q=85\u0026s=afe1243f21076a3b85defeae40c44cfe"},"favicon":"https://mintcdn.com/midway/JvAmQKnjmYoGAlqZ/favicon.svg?fit=max\u0026auto=format\u0026n=JvAmQKnjmYoGAlqZ\u0026q=85\u0026s=cab3038d2bbfbb5af23246be34320e98","navbar":{"primary":{"type":"github","label":"Github","href":"https://github.com/hazyio/midway"}},"footer":{"socials":{"x":"https://x.com/get_hazyio","github":"https://github.com/hazyio/midway","website":"https://hazyio.com"}},"contextual":{"options":["copy","view","chatgpt","claude","aistudio"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"midway","hasAudioNarration":false,"actualSubdomain":"midway","customDomains":["midway.hazyio.com"],"gitSource":{"type":"github","owner":"hazyio","repo":"midway","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ad3639c6c6f737d1150d924","collectionId":"0563cfb2-f002-453a-ab25-5f96f3be4e4e","liveDeploymentHistoryId":"6ad3639c6c6f737d1150d924","schemaVersion":"v3"},"entitlements":{},"buildId":"6ad36d619025ea9dcb501bf6","clientVersion":"0.0.3879","searchFilterCounts":[{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"AI Agents","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Notifications","count":6},{"language":"default","tag":"Installation","count":5},{"language":"default","tag":"Commands","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"teamspace","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"agents/cursor","slug":"/agents/cursor","pageMetadata":{"title":"Cursor","description":"Send Midway notifications from Cursor hooks","href":"/agents/cursor"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send Midway notifications from Cursor hooks\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Add a project-level `,_jsx(_components.code,{children:`.cursor/hooks.json`}),` file. Cursor’s `,_jsx(_components.code,{children:`stop`}),` hook runs when the agent loop ends:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hooks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"midway send-text -m `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Cursor agent finished`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Cursor does not currently provide a general hook event for notifying when the agent needs input. Its shell and MCP hooks run before operations, not when the agent is waiting for a response.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cursor","description":"Send Midway notifications from Cursor hooks","href":"/agents/cursor"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"midway","siteName":"Midway Docs","title":"Cursor - Midway Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-17T12:01:35.648Z","originalFileLocation":"agents/cursor.mdx"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Send Midway notifications from Cursor hooks\">\u003cmeta data-mint-head name=\"application-name\" content=\"Midway Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cursor - Midway Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send Midway notifications from Cursor hooks\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Midway Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://midway.hazyio.com/agents/cursor\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cursor - Midway Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send Midway notifications from Cursor hooks\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/midway/0DfKWD0Km_afqSnB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Midway Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFB547\">\u003clink data-mint-head rel=\"canonical\" href=\"https://midway.hazyio.com/agents/cursor\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agents/cursor.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://midway.hazyio.com/#organization\",\"name\":\"Midway Docs\",\"url\":\"https://midway.hazyio.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/midway/JvAmQKnjmYoGAlqZ/logo/light.svg?fit=max\u0026auto=format\u0026n=JvAmQKnjmYoGAlqZ\u0026q=85\u0026s=03d65038edf00ca02de72c734abd5d98\"}},{\"@type\":\"WebSite\",\"@id\":\"https://midway.hazyio.com#website\",\"name\":\"Midway Docs\",\"url\":\"https://midway.hazyio.com\",\"publisher\":{\"@id\":\"https://midway.hazyio.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://midway.hazyio.com/agents/cursor#webpage\",\"url\":\"https://midway.hazyio.com/agents/cursor\",\"name\":\"Cursor\",\"description\":\"Send Midway notifications from Cursor hooks\",\"dateModified\":\"2026-10-17T12:01:35.648Z\",\"isPartOf\":{\"@id\":\"https://midway.hazyio.com#website\"},\"breadcrumb\":{\"@id\":\"https://midway.hazyio.com/agents/cursor#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://midway.hazyio.com/agents/cursor#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://midway.hazyio.com/commands/init\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Agents\",\"item\":\"https://midway.hazyio.com/agents/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cursor\",\"item\":\"https://midway.hazyio.com/agents/cursor\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://midway.hazyio.com/agents/cursor#article\",\"headline\":\"Cursor\",\"name\":\"Cursor\",\"description\":\"Send Midway notifications from Cursor hooks\",\"url\":\"https://midway.hazyio.com/agents/cursor\",\"mainEntityOfPage\":{\"@id\":\"https://midway.hazyio.com/agents/cursor#webpage\"},\"dateModified\":\"2026-10-17T12:01:35.648Z\",\"publisher\":{\"@id\":\"https://midway.hazyio.com/#organization\"},\"isPartOf\":{\"@id\":\"https://midway.hazyio.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Midway Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Midway Docs","nav":{"global":null,"pages":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/index"},{"group":"Installation","expanded":false,"pages":[{"title":"Installation","href":"/installation/index"},{"title":"Cargo","href":"/installation/cargo"},{"title":"Release binary","href":"/installation/release-binary"},{"title":"Shell script","href":"/installation/shell-script"},{"title":"Windows","href":"/installation/windows"}]},{"title":"Configuration","href":"/config"}]},{"group":"Guides","pages":[{"group":"Commands","expanded":false,"pages":[{"title":"Initialize configuration","href":"/commands/init"},{"title":"Run a command","href":"/commands/run"},{"title":"Open Midway","href":"/commands/open"},{"title":"Send a text notification","href":"/commands/send-text"}]},{"group":"AI Agents","expanded":false,"pages":[{"title":"AI agent notifications","href":"/agents/index"},{"title":"Claude Code","href":"/agents/claude-code"},{"title":"Codex CLI","href":"/agents/codex-cli"},{"title":"GitHub Copilot","href":"/agents/github-copilot"},{"title":"Gemini CLI","href":"/agents/gemini-cli"},{"title":"Antigravity CLI","href":"/agents/antigravity-cli"},{"title":"OpenCode","description":"Send Midway notifications from OpenCode plugins","href":"/agents/opencode"},{"title":"Cursor","href":"/agents/cursor"}]},{"group":"Notifications","expanded":false,"pages":[{"title":"Local notifications","description":"Show Midway notifications on your computer","href":"/notifications/local"},{"title":"Email notifications","href":"/notifications/email"},{"title":"Slack notifications","href":"/notifications/slack"},{"title":"Ntfy notifications","href":"/notifications/ntfy"},{"title":"Discord notifications","href":"/notifications/discord"},{"title":"Telegram notifications","href":"/notifications/telegram"}]}]}]},"title":"Cursor - Midway Docs","buildId":"dpl_5UGCeHaPhSKbAExsKaHeR8dW3HyG","deploymentId":"dpl_5UGCeHaPhSKbAExsKaHeR8dW3HyG","dynamics":[],"chunks":[]}