ChatGPS

0.2.0

Access language models in your scripts and terminal, build AI agents with PowerShell.

Minimum PowerShell version

7.4.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name ChatGPS

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name ChatGPS

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Adam Edwards.

Package Details

Author(s)

  • Adam Edwards (adamedx)

Tags

DevOps AI LLM GPT Azure OpenAI Onnx Phi Ollama Gemini Anthropic Claude

Functions

Add-ChatPlugin Add-ChatPluginFunction Build-ChatCode Clear-ChatAgentState Clear-ChatConversation Clear-ChatLog Connect-ChatSession Get-ChatConversation Get-ChatCurrentVoice Get-ChatEncryptedUnicodeKeyCredential Get-ChatFunction Get-ChatLog Get-ChatPlugin Get-ChatSession Get-ChatSettingsInfo Get-ChatVoiceName Install-ChatAddOn Invoke-ChatFunction New-ChatFunction New-ChatVoice New-ChatScriptBlock New-ChatSettings Out-ChatVoice Register-ChatPlugin Remove-ChatFunction Remove-ChatPlugin Remove-ChatSession Save-ChatSessionSetting Select-ChatSession Send-ChatMessage Set-ChatAgentAccess Set-ChatCurrentVoice Start-ChatAgent Start-ChatShell Stop-ChatAgent Unregister-ChatPlugin Update-ChatSettings

Dependencies

This module has no dependencies.

Release Notes

## ChatGPS 0.2.0 Release Notes

Adds shell agent support, improve Build-ChatCode with RunBlock support

### New dependencies

None.

### Breaking changes

None.

### New features

* Shell Agent: A new shell agent capability is added through the Start-ChatAgent command. When this is invoked for a given session, language model interactions through Send-ChatMessage and Start-ChatShell will have access to your command history as well as terminal output to standard output, allowing the language model to "see" all activity in your terminal. New commands include:
 * Start-ChatAgent -- enables the agent for a session
 * Stop-ChatAgent -- disables the agent for a session
 * Clear-ChatAgentState -- deletes leftover transcript files from Start-Transscript used by the agent to obtain a log of terminal activity.

* Code generation improvements: Build-ChatCode provides runtime language integration when generating code for languages other than PowerShell; this allows you to invoke the generated code from PowerShell itself. Build-ChatCode now supports a 'runblock," which is a script block that wraps generated code so that it can be executed by a runtime appropriate to that code. This optional feature allows you to instruct Build-ChatCode to add a wrapper around the generated code that invokes it so that the output of Build-ChatCode can be executed from PowerShell. This isn't needed of course when generating PowerShell code, but since PowerShell can't execute Python code without a Python interpreter, a Runblock wrapper can be used so that the result of Build-ChatCode is itself a PowerShell script block that passes the generated code to the appropriate language runtime to execute it. Build-ChatCode can automatically generated wrappers for Python and Javascript, and you can also specify a custom RunBlock for other langauges.

### Fixed defects

None.

FileList

Version History

Version Downloads Last updated
0.2.0 (current version) 11 10/12/2025
0.1.0 17 9/3/2025
0.1.0-preview 5 9/1/2025