packages/computeruse/crates/computeruse-mcp-agent/examples/computeruse-ai-summarizer/README.md
A global hotkey tool that captures your desktop UI context and optionally summarizes it with Ollama for AI assistance.
Ctrl+Alt+J to instantly capture UI contextollama pull gemma3:1b)Install with short name from repository:
cargo install --git https://github.com/mediar-ai/computeruse --bin ai-summarizer computeruse-mcp-agent
Or install from local source:
git clone https://github.com/mediar-ai/computeruse.git
cd computeruse
cargo install --path computeruse-mcp-agent --bin ai-summarizer
After installation, run from anywhere:
ai-summarizer --help
Or install with full name:
cargo install --git https://github.com/mediar-ai/computeruse --example computeruse-ai-summarizer computeruse-mcp-agent
computeruse-ai-summarizer --help
Clone the repository:
git clone https://github.com/mediar-ai/computeruse.git
cd computeruse
Build the computeruse-mcp-agent first (required dependency):
cargo build --release --bin computeruse-mcp-agent
Build the AI summarizer example:
cargo build --example computeruse-ai-summarizer --release
Captures the UI tree and copies it directly to clipboard:
# If installed with short name
ai-summarizer
# If installed with full name
computeruse-ai-summarizer
# If built from source
./target/release/examples/computeruse-ai-summarizer
Uses Ollama to summarize the UI context:
# If installed with short name
ai-summarizer \
--ai-mode \
--model "gemma3:8b" \
--system-prompt "You are a helpful UI assistant. Summarize what's on screen."
# If installed with full name
computeruse-ai-summarizer \
--ai-mode \
--model "gemma3:8b" \
--system-prompt "You are a helpful UI assistant. Summarize what's on screen."
# If built from source
./target/release/examples/computeruse-ai-summarizer \
--ai-mode \
--model "gemma3:8b" \
--system-prompt "You are a helpful UI assistant. Summarize what's on screen."
Change the trigger combination:
# If installed as global CLI
computeruse-ai-summarizer \
--hotkey "ctrl+shift+s" \
--ai-mode
# If built from source
./target/release/examples/computeruse-ai-summarizer \
--hotkey "ctrl+shift+s" \
--ai-mode
| Option | Short | Default | Description |
|---|---|---|---|
--system-prompt | -s | [Long default prompt] | Custom prompt for AI summarization |
--model | -m | gemma3:1b | Ollama model to use for summarization |
--hotkey | -h | ctrl+alt+j | Global hotkey combination |
--ai-mode | -a | false | Enable AI summarization via Ollama |
LOG_LEVEL: Set logging level (error, warn, info, debug)COMPUTERUSE_AGENT_PATH: Custom path to computeruse-mcp-agent binaryCtrl+Alt+J)Start the tool:
# If installed with short name
ai-summarizer --ai-mode --model "gemma3:8b"
# If installed with full name
computeruse-ai-summarizer --ai-mode --model "gemma3:8b"
# If built from source
./target/release/examples/computeruse-ai-summarizer --ai-mode --model "gemma3:8b"
Navigate to any application (browser, text editor, etc.)
Press Ctrl+Alt+J - you'll see a log message confirming capture
Paste the result into your AI chat or text editor to get contextual assistance
computeruse-mcp-agent is built and in the expected pathollama listollama pull gemma3:1b# If installed globally
LOG_LEVEL=debug computeruse-ai-summarizer --ai-mode
# If built from source
LOG_LEVEL=debug ./target/release/examples/computeruse-ai-summarizer --ai-mode
# Build the MCP agent (dependency)
cargo build --release --bin computeruse-mcp-agent
# Build the summarizer
cargo build --example computeruse-ai-summarizer --release
# Install with custom short name 'ai-summarizer'
cargo install --path computeruse-mcp-agent --bin ai-summarizer
# Or install the full example name
cargo install --path computeruse-mcp-agent --example computeruse-ai-summarizer --force
# Or create an alias for a shorter command
echo 'alias ais="computeruse-ai-summarizer"' >> ~/.bashrc # Linux/macOS
computeruse-mcp-agent/examples/computeruse-ai-summarizer/
āāā src/
ā āāā main.rs # Main application logic
ā āāā utils.rs # CLI arguments & logging
ā āāā client.rs # MCP client integration
ā āāā ollama.rs # Ollama API integration
āāā README.md # This file
Contributions are welcome! Please check the main CONTRIBUTING.md for guidelines.
This project is licensed under the same license as the main ComputerUse project.