How deedy/mac_computer_use works
Project type and purpose
• This is a full‑stack, locally‑hosted “agent” application for macOS.
• It exposes a web UI (via Streamlit) that takes user prompts, sends them to an LLM (Anthropic, Bedrock, or Vertex), then executes the model’s responses as native macOS commands (screen capture, mouse/keyboard control, file edits, etc.).
File structure
• Top‑level files:
• Dockerfile (legacy container support)
• streamlit.py (Streamlit app entry point)
• loop.py (agent orchestration loop)
• setup.sh / requirements.txt (installation)
• tools/ (Python modules that wrap different OS‑interaction commands)
• The tools package contains submodules for each class of action (bash, edit, run, computer [mouse/keyboard], collection, base).
• No database or external storage—state flows through memory and the OS file system.
README for additional insights
• Purpose: Replace the Dockerized demo with a native macOS version.
• Key technologies: Python 3.12, Streamlit, cliclick, native screencapture, Anthropic LLM API (with optional Bedrock/Vertex).
• Operational flow: UI → LLM API → OS command execution → UI.