Context Awareness Feature
Context awareness allows SlasshyWispr to understand and act on text you’ve selected in other applications. This powerful feature enables:- Selection rewriting: Transform selected text using voice commands
- Context-aware responses: Ask questions about selected content
- Seamless editing: Improve, rephrase, or modify text without manual copying
- Smart assistance: Get help based on what you’re currently working on
Context awareness is controlled by the
contextAwareness setting in your configuration. When enabled, SlasshyWispr monitors text selections and offers intelligent interaction options.How Context Awareness Works
When you select text in any application and activate SlasshyWispr, the app:Interprets Intent
Determines whether you want to:
- Rewrite the selected text
- Answer a question about the selection
- Use as context for your command
Processes with Context
Sends both your voice command and the selected text to the AI for context-aware processing.
Selection Context Usage
The pipeline response includes several context-related fields:Context States
Selection Pending
Selection Pending
When: You’ve selected text but haven’t yet given a voice command.Indicator:
selectionPending: trueAction: The selection is captured and waiting for your voice instruction.Selection Used
Selection Used
When: Your voice command has been processed with the selection as context.Indicator:
selectionContextUsed: trueAction: The AI used your selected text to inform its response.Selection Cleared
Selection Cleared
When: The context has been reset after use or cancellation.Indicator:
selectionContextCleared: trueAction: Previous selection context is no longer active.Selection Rewriting Workflow
Selection rewriting is the most powerful context awareness feature. Here’s how it works:Select Text
In any application (Word, browser, code editor, etc.), highlight the text you want to modify.Example: Select “This sentence needs improvement” in your document.
Activate SlasshyWispr
Press your command hotkey (default:
Ctrl+Shift+Space) or use wake word (“Hey Lily”).Give Rewrite Command
Speak your rewriting instruction:
- “Make this more professional”
- “Simplify this”
- “Fix grammar”
- “Expand this with more details”
- “Translate to Spanish”
Receive Rewritten Text
SlasshyWispr processes your command with the selected text as context and returns the rewritten version.Pipeline indicator:
selectionRewrite: trueRewrite Mode Indicators
WhenselectionRewrite: true in the pipeline response:
- The operation is specifically a text transformation
- The selected text was used as input
- The response is intended to replace the selection
Recent Selection Context
SlasshyWispr maintains recent selection context even after you’ve moved on, enabling multi-turn interactions:Context Retention
- First Interaction: Select text → Give command → Context stored
- Follow-up: Without selecting new text → Give related command → Previous context available
- Context Cleared: New selection → Manual clear → Starting fresh
Iterative Refinement
Iterative Refinement
Workflow:
- Select paragraph
- “Make this more concise”
- Review result
- “Make it even shorter”
- “Actually, add technical details”
Multi-Question Analysis
Multi-Question Analysis
Workflow:
- Select code snippet
- “Explain what this does”
- Listen to explanation
- “Are there any bugs?”
- “How can I optimize this?”
Configuration
Enable Context Awareness
Setting:contextAwareness (boolean)
Default: Check your settings
Related Settings
Use Cases and Examples
Use Case 1: Writing Enhancement
Scenario: Improving email drafts
Example:
- Original: “Hey, wanted to check in about that thing we talked about. Let me know.”
- Command: “Make this more professional”
- Result: “I wanted to follow up on our previous discussion regarding the project timeline. Please let me know your thoughts at your earliest convenience.”
Use Case 2: Code Documentation
Scenario: Adding comments to code
Example:
- Selected Code:
function validateEmail(email) { return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); } - Command: “Add JSDoc comments”
- Result: Detailed JSDoc comment block explaining parameters, return value, and usage
Use Case 3: Translation
Scenario: Translating selected text
Example:
- Selected: “The quick brown fox jumps over the lazy dog”
- Command: “Translate to Spanish”
- Result: “El rápido zorro marrón salta sobre el perro perezoso”
Use Case 4: Content Summarization
Scenario: Summarizing long passages
Example:
- Selected: [3 paragraphs of technical documentation]
- Command: “Summarize this in bullet points”
- Result: 3-5 bullet points capturing main ideas
Use Case 5: Grammar and Style Fixes
Scenario: Quick editing Commands that work well:- “Fix grammar”
- “Fix spelling”
- “Make this more concise”
- “Expand this with more details”
- “Simplify this for a general audience”
- “Use active voice”
Use Case 6: Q&A About Selection
Scenario: Understanding complex content Answer mode (vs rewrite mode):- “What does this mean?”
- “Explain this in simple terms”
- “What is the main argument here?”
- “Are there any issues with this code?”
selectionRewrite: false- Response is spoken via TTS rather than replacing selection
- Context is used to inform the answer
Best Practices
Clear Selection Boundaries
Clear Selection Boundaries
Select complete thoughts, sentences, or code blocks. Partial selections may produce unexpected results.Good: Full paragraph, complete functionAvoid: Sentence fragments, partial lines
Specific Commands
Specific Commands
Use precise voice commands that clearly state your intent.Good: “Rewrite this in active voice”, “Translate to French”Vague: “Change this”, “Make it better”
Verify Before Replacing
Verify Before Replacing
Always review AI-generated rewrites before committing them to important documents.Use
copyToClipboard: true to review before pasting manually.Context Clearing
Context Clearing
If you want to start fresh without previous selection context, make a new selection or wait for automatic context clearing.
Combine with Style Profiles
Combine with Style Profiles
Set your
styleProfile setting to influence how rewrites are performed:"professional": More formal rewrites"casual": Conversational tone"concise": Shorter, more direct"developer": Technical, code-focused
Troubleshooting
Selection Not Detected
Selection Not Detected
Problem: SlasshyWispr doesn’t recognize your selection.Solutions:
- Ensure
contextAwareness: truein settings - Verify the application allows clipboard/selection access
- Try selecting again with Ctrl+A or mouse drag
- Check that command mode is enabled
Wrong Context Used
Wrong Context Used
Problem: AI uses old selection instead of current one.Solutions:
- Make a fresh selection before activating
- Wait a moment after selecting before voice command
- Check
selectionContextUsedflag in response to verify
Rewrite vs Answer Confusion
Rewrite vs Answer Confusion
Problem: Asking a question but getting a rewrite, or vice versa.Solutions:
- Use clear question words (“What”, “Why”, “How”, “Explain”)
- For rewrites, use action verbs (“Make”, “Rewrite”, “Change”, “Fix”)
- Be explicit: “Rewrite this to…” or “Tell me what this means”
Context awareness works across most applications but may have limitations in some protected or sandboxed environments. Test in your primary workflow applications.