MacOS Agent
Installation
1. Install Python Dependencies
Follow the instructions in the uv documentation to install uv.
2. Clone and Setup the Repository
# Clone the repository
git clone https://github.com/yourusername/MacOS-Agent.git
cd MacOS-Agent
# Install project dependencies
uv sync
3. Install Playwright
4. Configure Accessibility Permissions
To enable system automation, you need to grant accessibility permissions:
- Open System Settings > Privacy & Security > Accessibility
- Click the "+" button to add your code editor
- Navigate to Applications and select your editor
- Enable the permission by checking the box



Usage
Executing the agent
use uv to run the agent
Checkoutexamples/tasks/task1.json
for an example task. Below is an example task:
Development Setup
Pre-commit Hooks
This project uses pre-commit hooks to ensure code quality before each commit. The setup includes:
- ruff: A fast Python linter and formatter
- pylint: A comprehensive Python code analyzer
Configuration Files
.pre-commit-config.yaml
: Defines the pre-commit hooks and their configurationsruff.toml
: Configures ruff linting rulespylintrc
: Configures pylint analysis rules
Setup Process
-
Install pre-commit using uv:
-
Install the git hooks:
-
Run checks manually on all files:
- When you do git commit, the pre-commit hooks will run automatically. If you want to skip the hooks, you can use
git commit --no-verify
.
Customization
- ruff is configured to auto