Run diverse complex tasks using AI agents (1) to write code, analyze files, and browse the web. Each task is broken down and handled by specialized AI agents with optional human oversight. Built on Microsoft's MagenticOne, a generalist multi-agent system for solving complex tasks.
(1) "Agent" meaning the system described under Agents in Antropic's "Building effective agents"
- Python 3.8 or higher
- uv installed
- OpenAI API key (set as OPENAI_API_KEY environment variable)
Set up OpenAI API key first (see below).
Basic usage:
uv run m1.py "look at the contents of these pdfs and rename them based on that"With web browsing:
uv run --with-extras web m1.py "add index numbers for the songs in the album in this directory" -wWithout human oversight (disable Human-in-the-Loop):
uv run m1.py "your task" --no-hilNote: When using uv, you can run directly without downloading:
uv run https://raw.githubusercontent.com/SimonB97/MOS/main/AITaskRunner/m1.py "your task" [options]Set the OpenAI API key as an environment variable:
a) Linux/macOS:
export OPENAI_API_KEY="your-api-key"b) Windows:
- Press Win+R and run the following command (opens Environment Variables window):
rundll32 sysdm.cpl,EditEnvironmentVariables
- Under 'User variables', click 'New' and enter your API key
- (Restart the command-line interface)
Alternatively, you can set the environment variable in the command prompt:
set OPENAI_API_KEY="your-api-key"(will be set for the current session only)
- Uses specialized AI agents for different task aspects
- File system operations (enabled by default)
- Code writing and execution (enabled by default)
- Web browsing with
-w/--web(requires--with-extras web) - Human oversight mode (enabled by default, disable with
--no-hil) - Preserves file system safety with explicit approvals