Add Drush AI Command

Created on 16 May 2025, 17 days ago

Problem/Motivation

While using the web chat interface is fine, I'm most often in the command line interface. It would be great to be able to interact with the AI module from Drush.

Steps to reproduce

  1. Open up your terminal prompt
  2. Run drush ai "Hello?"
  3. Expect to see a response

Proposed resolution

Add a Drush command to the AI module to engage the chat.

Remaining tasks

Consider additional features...

  • AI Assistant integration
  • Streaming responses
  • Allow chatting through an interactive shell
  • Enable tooling capabilities from Drush to allow the AI to run Drush commands?
    • User interface changes

      There is now a drush ai command...

$ drush help ai

Send a message through to an AI provider.

Examples:
 drush ai:chat "Hello, how are you?" Sends a message to your chat provider. 

Arguments:
 input The message to send to the chat. 

Options:
 --provider[=PROVIDER] Indicates a provider to use other than the default.          
 --model[=MODEL]       Indicates which model to use, other than the default.        
 --system[=SYSTEM]     Indicates the system message to use, other than the default.               

Aliases: chat, ai
Feature request
Status

Active

Version

1.1

Component

AI Core module

Created by

🇨🇦Canada RobLoach Earth

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024