# Smart Context Auto-detect related notes based on links, tags, folder proximity, and shared frontmatter properties. ## Usage ``` Ctrl+P > "Promptfire: Copy smart context (auto-detect related notes)" ``` Requires an active note. Promptfire analyzes the note's connections and presents a ranked list of related notes. Select which ones to include, then copy. ## How Scoring Works Each note receives a relevance score based on configurable signal weights: | Signal | Description | |--------|-------------| | **Forward links** | Notes linked from the active note | | **Backlinks** | Notes that link to the active note | | **Shared tags** | Notes sharing tags with the active note | | **Folder proximity** | Notes in nearby folders | | **Shared properties** | Notes with matching frontmatter values | ## Settings Configure in **Settings > Promptfire > Intelligence**: - **Token budget** - Maximum tokens for smart context output - **Max notes** - Maximum related notes to consider - **Min score** - Notes below this threshold are excluded - **Signal weights** - Fine-tune the importance of each signal - **Link depth** - How many hops to follow forward links (1-3) - **Exclude paths** - Folders to skip during analysis - **Exclude tags** - Notes with these tags are skipped - **Property keys** - Which frontmatter keys to compare