feat(cursor): add prompt-aware recall and resilient transcript handling - #3492
Draft
voarsh2 wants to merge 5 commits into
Draft
feat(cursor): add prompt-aware recall and resilient transcript handling#3492voarsh2 wants to merge 5 commits into
voarsh2 wants to merge 5 commits into
Conversation
Adds automatic memory retrieval before each prompt while preserving broad session recall. Uses workspace rules as a reliable delivery path when native hook context is unavailable, and keeps native output for forward compatibility. Handles platform payload differences, workspace-derived banks, configurable query context, score filtering, and timeout behavior.
Keeps retained memories focused on conversational roles and excludes transient web previews and tool traffic by default. Preserves structured tool data when explicitly enabled, supports runtime-provided transcript paths, and gives repeated retains distinct conversation-scoped documents.
Selects a platform-appropriate Python launcher so generated plugin commands work on Windows and other environments. Allows installers to override the launcher and prompt-hook timeout without changing the packaged plugin, while leaving existing task-stop timing intact.
Verifies prompt recall, session recall, retention cleanup, workspace bank selection, configuration overrides, and rules-file behavior. Exercises platform-specific installation rendering and end-to-end context delivery so regressions surface at both unit and integration boundaries.
Explains prompt-level recall, reliable context delivery, new configuration controls, and platform-specific installation options. Keeps the public integration pages, package README, skill guidance, catalog summary, and reference copy aligned with the shipped behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
beforeSubmitPromptrecall for every substantive user prompt.{"continue": true}response.CURSOR_PROJECT_DIR, UTF-8 BOM-safe hook input, configurable API timeout, and the documentedadditional_contextfield.<external_links>previews, internal reasoning, and tool traffic by default.py -3on Windows,python3elsewhere, plus--python-commandand--hook-timeoutoverrides.Note
Cursor uses
additional_contextforsessionStart;beforeSubmitPromptonly supportscontinue, so prompt recall refreshes the workspace rules file instead. The removedadditionalContextreferences reflect the previous Cursor implementation and are not emitted by this branch.Test plan
py -3 -m pytest tests -q— 101 passed, 4 skipped.gitignorehandling, session context delivery, and end-to-end hook behavior