-
Notifications
You must be signed in to change notification settings - Fork 5
feat(cursor): add project-local tokensave integration #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
35d71cf
feat(cursor): enrich local install
a4d5ea3
feat(cursor): add exploration-redirect and branch-aware freshness hooks
7dd5403
merge: update local install foundation
eb4c07a
fix(cursor): ignore obvious checkout pathspecs
5037410
merge: update local install foundation
e14d8ef
Merge remote-tracking branch 'origin/master' into split/cursor-local-…
2cc1b4a
fix(format): apply rustfmt after master merge
9a589a0
ci: run same-repo PR checks on stacked branches
4385e31
fix(hooks): preserve slash branch targets
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| "hooks": { | ||
| "afterFileEdit": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-after-file-edit", | ||
| "matcher": "Write", | ||
| "timeout": 30 | ||
| } | ||
| ], | ||
| "afterShellExecution": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-after-shell", | ||
| "timeout": 60 | ||
| } | ||
| ], | ||
| "beforeSubmitPrompt": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-before-submit-prompt", | ||
| "timeout": 5 | ||
| } | ||
| ], | ||
| "sessionStart": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-session-start", | ||
| "timeout": 5 | ||
| } | ||
| ], | ||
| "subagentStart": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-subagent-start", | ||
| "timeout": 5 | ||
| } | ||
| ], | ||
| "workspaceOpen": [ | ||
| { | ||
| "command": "'/home/zack/projects/tokensave/target/debug/tokensave' hook-cursor-workspace-open", | ||
| "timeout": 60 | ||
| } | ||
| ] | ||
| }, | ||
| "version": 1 | ||
| } | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| { | ||
| "mcpAllowlist": [ | ||
| "tokensave:tokensave_search", | ||
| "tokensave:tokensave_context", | ||
| "tokensave:tokensave_callers", | ||
| "tokensave:tokensave_callees", | ||
| "tokensave:tokensave_impact", | ||
| "tokensave:tokensave_node", | ||
| "tokensave:tokensave_status", | ||
| "tokensave:tokensave_files", | ||
| "tokensave:tokensave_affected", | ||
| "tokensave:tokensave_dead_code", | ||
| "tokensave:tokensave_diff_context", | ||
| "tokensave:tokensave_module_api", | ||
| "tokensave:tokensave_circular", | ||
| "tokensave:tokensave_hotspots", | ||
| "tokensave:tokensave_similar", | ||
| "tokensave:tokensave_rename_preview", | ||
| "tokensave:tokensave_unused_imports", | ||
| "tokensave:tokensave_rank", | ||
| "tokensave:tokensave_largest", | ||
| "tokensave:tokensave_coupling", | ||
| "tokensave:tokensave_inheritance_depth", | ||
| "tokensave:tokensave_distribution", | ||
| "tokensave:tokensave_recursion", | ||
| "tokensave:tokensave_complexity", | ||
| "tokensave:tokensave_doc_coverage", | ||
| "tokensave:tokensave_god_class", | ||
| "tokensave:tokensave_changelog", | ||
| "tokensave:tokensave_port_status", | ||
| "tokensave:tokensave_port_order", | ||
| "tokensave:tokensave_commit_context", | ||
| "tokensave:tokensave_pr_context", | ||
| "tokensave:tokensave_simplify_scan", | ||
| "tokensave:tokensave_test_map", | ||
| "tokensave:tokensave_type_hierarchy", | ||
| "tokensave:tokensave_branch_search", | ||
| "tokensave:tokensave_branch_diff", | ||
| "tokensave:tokensave_branch_list", | ||
| "tokensave:tokensave_gini", | ||
| "tokensave:tokensave_dependency_depth", | ||
| "tokensave:tokensave_health", | ||
| "tokensave:tokensave_redundancy", | ||
| "tokensave:tokensave_runtime", | ||
| "tokensave:tokensave_dsm", | ||
| "tokensave:tokensave_test_risk", | ||
| "tokensave:tokensave_body", | ||
| "tokensave:tokensave_todos", | ||
| "tokensave:tokensave_callers_for", | ||
| "tokensave:tokensave_by_qualified_name", | ||
| "tokensave:tokensave_signature", | ||
| "tokensave:tokensave_impls", | ||
| "tokensave:tokensave_diagnose", | ||
| "tokensave:tokensave_derives", | ||
| "tokensave:tokensave_session_recall", | ||
| "tokensave:tokensave_read", | ||
| "tokensave:tokensave_outline", | ||
| "tokensave:tokensave_implementations", | ||
| "tokensave:tokensave_unsafe_patterns", | ||
| "tokensave:tokensave_diagnostics", | ||
| "tokensave:tokensave_config", | ||
| "tokensave:tokensave_signature_search", | ||
| "tokensave:tokensave_constructors", | ||
| "tokensave:tokensave_field_sites", | ||
| "tokensave:tokensave_call_chain", | ||
| "tokensave:tokensave_file_dependents", | ||
| "tokensave:tokensave_find_exact_symbol" | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| description: Prefer tokensave MCP tools for codebase exploration | ||
| alwaysApply: true | ||
| --- | ||
|
|
||
| # Prefer tokensave MCP tools | ||
|
|
||
| - For codebase exploration, symbol lookup, call graphs, callers/callees, impact analysis, affected files, and architectural navigation, use the tokensave MCP tools first. | ||
| - Prefer tools such as `tokensave_context`, `tokensave_search`, `tokensave_callers`, `tokensave_callees`, `tokensave_impact`, `tokensave_files`, `tokensave_affected`, and related read-only tokensave tools before broad file reads or search. | ||
| - Only fall back to regular file reads, search, or shell commands when tokensave cannot answer the question or after tokensave has identified the exact files or symbols to inspect. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.