Skip to content

Add prompt script system for tidier with Claude context injection - #22

Merged
juliarvalenti merged 1 commit into
mainfrom
feat/prompt-script-system
Feb 20, 2026
Merged

juliarvalenti merged 1 commit into
mainfrom
feat/prompt-script-system

Conversation

@juliarvalenti

Copy link
Copy Markdown
Owner

Summary

  • Replaces the single inline prompt field with a Text / Script toggle in Advanced Settings
  • Script mode: path field + Browse button + View Scripts Folder; supports .sh (bash), .py (python3), .js (node)
  • Bundles claude-context.py which seeds to ~/.config/tinywhisper/scripts/ on first launch — injects the last 10 messages from the active Claude Code session into the LLM system prompt so it can correctly infer domain-specific terms (e.g. Parakeet, Qwen) from transcription output
  • Lazy bundle access pattern: checks destination files before touching the bundle path, preventing repeated macOS Documents TCC prompts
  • Settings window height is now auto-sized to content

Test plan

  • Open Advanced Settings → Tidier section shows Text/Script radio toggle
  • Script mode shows path field, Browse, View Scripts Folder
  • ~/.config/tinywhisper/scripts/claude-context.py is seeded on first launch
  • Recording with tidier enabled uses script-generated prompt (check log for Tidied: lines)
  • No Documents folder permission prompt after first launch

🤖 Generated with Claude Code

- Tidier prompt mode toggle: Text (inline) or Script (file-based)
- Script runner supports .sh (bash), .py (python3), .js (node)
- Bundled claude-context.py seeds to ~/.config/tinywhisper/scripts/ on
  first launch, injecting recent Claude Code session context into the
  LLM system prompt so it can correct domain-specific terms like
  Parakeet and Qwen from transcription output
- Lazy bundle access: checks destinations first to avoid triggering
  macOS Documents TCC prompt after initial seed
- Settings window: Browse button, View Scripts Folder, auto-height
- config: prompt_script field defaults to claude-context.py path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@juliarvalenti
juliarvalenti merged commit 61fd91d into main Feb 20, 2026
3 checks passed
@juliarvalenti
juliarvalenti deleted the feat/prompt-script-system branch February 20, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant