Vision-module-auto/examples/example_usage.sh
Svrnty 41cecca0e2 Initial release of Claude Vision Auto v1.0.0
Vision-based auto-approval system for Claude Code CLI using MiniCPM-V vision model.

Features:
- Automatic detection and response to approval prompts
- Screenshot capture and vision analysis via Ollama
- Support for multiple screenshot tools (scrot, gnome-screenshot, etc.)
- Configurable timing and behavior
- Debug mode for troubleshooting
- Comprehensive documentation

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Jean-Philippe Brule <jp@svrnty.io>
2025-10-29 10:09:01 -04:00

54 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Example usage scenarios for Claude Vision Auto
echo "=== Claude Vision Auto - Example Usage ==="
echo ""
# Example 1: Basic usage
echo "Example 1: Basic Interactive Session"
echo "Command: claude-vision"
echo ""
# Example 2: With prompt
echo "Example 2: With Initial Prompt"
echo "Command: claude-vision \"create a test.md file\""
echo ""
# Example 3: Debug mode
echo "Example 3: Debug Mode"
echo "Command: DEBUG=true claude-vision"
echo ""
# Example 4: Custom timing
echo "Example 4: Custom Timing (slower system)"
echo "Command: IDLE_THRESHOLD=5.0 RESPONSE_DELAY=2.0 claude-vision"
echo ""
# Example 5: Different model
echo "Example 5: Use Llama 3.2 Vision"
echo "Command: VISION_MODEL=\"llama3.2-vision:latest\" claude-vision"
echo ""
# Example 6: Remote Ollama
echo "Example 6: Remote Ollama Server"
echo "Command: OLLAMA_URL=\"http://192.168.1.100:11434/api/generate\" claude-vision"
echo ""
# Example 7: Combined configuration
echo "Example 7: Combined Custom Configuration"
cat << 'EOF'
export OLLAMA_URL="http://localhost:11434/api/generate"
export VISION_MODEL="minicpm-v:latest"
export IDLE_THRESHOLD="4.0"
export RESPONSE_DELAY="1.5"
export DEBUG="true"
claude-vision "refactor authentication module"
EOF
echo ""
echo "=== End of Examples ==="
echo ""
echo "Run any of these commands to test Claude Vision Auto"
echo "For more information, see docs/USAGE.md"