All Toolsโ€บAssistant Desktop Controller
๐Ÿ”ง AI-Powered Personal AssistantsMay 5, 2026โœ… Tests passing

Assistant Desktop Controller

A CLI tool that uses natural language commands to control desktop applications and perform common tasks. It connects to AI assistants like Claude to interpret commands and uses Python libraries to execute these tasks, such as sending emails, managing files, or scheduling events. This tool is ideal for developers looking to integrate AI with local computer automation.

What It Does

  • Parse natural language commands using OpenAI's GPT.
  • Execute tasks like creating files and scheduling events.
  • Extendable for additional functionalities.

Installation

Install the required Python packages:

pip install openai schedule

Usage

Run the tool with a natural language command:

python assistant_desktop_controller.py --command "Create a file"

Source Code

import argparse
import schedule
import time
import openai

# Function to parse natural language commands using OpenAI
def parse_command(command):
    try:
        response = openai.Completion.create(
            engine="text-davinci-003",
            prompt=f"Interpret this command: {command}",
            max_tokens=50
        )
        return response.choices[0].text.strip()
    except Exception as e:
        return f"Error parsing command: {e}"

# Function to execute system tasks
def execute_task(parsed_command):
    try:
        if "send email" in parsed_command.lower():
            return "Email sending is not implemented in this version."
        elif "create file" in parsed_command.lower():
            filename = "example.txt"
            with open(filename, "w") as f:
                f.write("This is an example file.")
            return f"File '{filename}' created successfully."
        elif "schedule task" in parsed_command.lower():
            schedule.every(1).minutes.do(lambda: print("Scheduled task executed."))
            return "Task scheduled to run every minute."
        else:
            return "Command not recognized or not implemented."
    except Exception as e:
        return f"Error executing task: {e}"

# Main function
def main():
    parser = argparse.ArgumentParser(description="Assistant Desktop Controller")
    parser.add_argument("--command", type=str, required=True, help="Natural language command to execute")
    args = parser.parse_args()

    # Parse the command
    parsed_command = parse_command(args.command)
    print(f"Parsed Command: {parsed_command}")

    # Execute the task
    result = execute_task(parsed_command)
    print(result)

    # Run scheduled tasks if any
    while True:
        schedule.run_pending()
        time.sleep(1)

if __name__ == "__main__":
    main()

Community

Downloads

ยทยทยท

Rate this tool

No ratings yet โ€” be the first!

Details

Tool Name
assistant_desktop_controller
Category
AI-Powered Personal Assistants
Generated
May 5, 2026
Tests
Passing โœ…
Fix Loops
2

Quick Install

Clone just this tool:

git clone --depth 1 --filter=blob:none --sparse \
  https://github.com/ptulin/autoaiforge.git
cd autoaiforge
git sparse-checkout set generated_tools/2026-05-05/assistant_desktop_controller
cd generated_tools/2026-05-05/assistant_desktop_controller
pip install -r requirements.txt 2>/dev/null || true
python assistant_desktop_controller.py