News

PowerShell Team Eyes AI LLM Integration in Shell

PowerShell seems to be one of Microsoft's few software holdouts that doesn't have its own Copilot AI assistant, but that might change this year.

In fact, "Intelligence in the shell" is being eyed by the dev team, which this week outlined PowerShell investments in 2024 along with OpenSSH plans.

"We are observing and being thoughtful about what it will mean to integrate the experiences provided by large language models [LLMs] into shell experience," said Steve Lee of the PowerShell team. "Our current outlook is to think beyond natural language chat to deep integration of learning opportunities."

How that would work -- or what it means -- isn't explained.

The team's AI plans were foreshadowed as Microsoft continues to infuse Copilot AI assistants across the entire breadth of its products and services, even the Windows OS.

With Copilots springing up everywhere, there have been other efforts to pair PowerShell with AI, such as Microsoft guidance to "Automate Text Summarization with OpenAI and PowerShell" and "PowerShell and AI: Using ChatGPT with PowerShell to Automate Tasks." There's even an AI Tools & PowerShell thread on Reddit. Another thread, PowerShell + GitHub Copilot = Better Together, was started by Doug Finke, who also created the PowerShell AI Assistant project on GitHub, resulting in the PowerShellAI offering available in the PowerShell Gallery..

What's more, Microsoft's Scott Hanselman last year publicized the "GitHub Copilot for CLI for PowerShell" and pointed to the GitHub Next project, Copilot for CLI.

Copilot for CLI
[Click on image for larger view.] Copilot for CLI (source: GitHub).

"Now it's not perfect, but hopefully it will make the point to the Copilot CLI team that PowerShell needs love also," Hanselman said.

In the meantime, Microsoft's PowerShell dev team is taking matters into its own hands and planning some AI self love, though somewhat amorphously.

"We also believe there are lots of improvements to the interactivity of PowerShell that does not require a large language model," Lee continued in this week's post about PowerShell and OpenSSH plans. "This includes some more subtle improvements to the interactive experience of PowerShell that would help increase productivity and efficiency at the command line."

So far, that's all we know about any possible PowerShell Copilot.

Other PowerShell and OpenSSH plans for 2024 include "pseudo-terminal support," described as "an experimental feature to leverage pseudoterminals to enable PowerShell to capture the output of native commands while still allowing the native command to seemingly write directly to the console."

As far as platform support, the engineering team this year will focus on:

  • Making tests reliable so the team only expends manual effort investigating real issues when test fails
  • Simplify the addition of new platforms to the team's test matrix so new distro requests can be fulfilled more quickly
  • More actively track the lifecycle of supported platforms
  • Automate publishing the supported platforms list to ensure up-to-date documentation

Other plans include tackling artifact management on several fronts along with work concerning configuration, remoting, the help system, fixing bugs and handling community pull requests, and maintaining other projects including:

  • VSCode extension
  • PSScriptAnalyzer module
  • ConsoleGuiTools module
  • TextUtility module
  • PSReadLine module
  • SecretManagement module

Stay tuned to find out what the team means by thinking "beyond natural language chat to deep integration of learning opportunities."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube