z/OS Assistant for Copilot
z/OS Assistant is a VS Code Chat Participant that bridges GitHub Copilot and z/OS via the Zowe SDK. Manage datasets, monitor jobs, submit JCL — all through conversational commands, in plain English or French. Requirements
The extension automatically connects using:
No additional credential configuration needed. Features
|
| Tier | Examples | Behavior |
|---|---|---|
| Safe | list, read, status | No confirmation |
| Moderate | write, create | Simple confirmation |
| Dangerous | delete, cancel, purge | Modal confirmation dialog |
Production detection: datasets matching *.PROD.*, *.PRD.*, SYS*.** are automatically flagged. Configurable via settings.
Getting Started
- Install GitHub Copilot Chat and Zowe Explorer
- Install z/OS Assistant for Copilot from the Marketplace
- Open the Copilot Chat panel (
Ctrl+Alt+I) - Type
@zosto start interacting with your mainframe
Configuration
Open Settings (Ctrl+,) and search for z/OS Assistant:
| Setting | Default | Description |
|---|---|---|
zosAssistant.defaultProfile |
"" |
Zowe profile name (empty = use Zowe Explorer's active profile) |
zosAssistant.confirmDangerousOperations |
true |
Require confirmation for delete, cancel, purge |
zosAssistant.protectedDatasetPatterns |
["*.PROD.*", ...] |
Patterns for production datasets |
zosAssistant.monitorTimeoutSeconds |
300 |
Maximum wait time for job monitoring (seconds) |
zosAssistant.monitorPollIntervalSeconds |
5 |
Polling interval for job monitoring (seconds) |
zosAssistant.maxSpoolLines |
200 |
Spool lines displayed inline before truncation |
zosAssistant.telemetryEnabled |
true |
Local usage tracking (data stays on your machine) |
Commands
| Command | Description |
|---|---|
z/OS: Open member in editor |
Open a PDS member in a VS Code editor tab |
z/OS: Usage report (last 30 days) |
Display a local usage report |
z/OS: Clear Zowe session cache |
Force session re-authentication |
z/OS: Select LPAR / partition |
Switch between z/OS profiles |
Language Model Tools
In addition to chat commands, z/OS Assistant exposes the following tools that Copilot can invoke automatically during conversations:
#zos_listDatasets— List datasets matching a pattern#zos_listMembers— List PDS members#zos_readMember— Read a PDS member's content#zos_datasetInfo— Get dataset attributes (DSORG, RECFM, LRECL…)#zos_searchContent— Search text across a PDS#zos_listJobs— List jobs by owner, prefix, or status#zos_getJobStatus— Get detailed job status and return code#zos_getJobOutput— Retrieve spool output (SYSPRINT, JESMSGLG…)#zos_submitJcl— Submit JCL from a dataset member
Telemetry
All telemetry data is stored locally on your machine (VS Code globalState). Nothing is sent externally. Run z/OS: Usage report (last 30 days) to view your usage statistics.
To disable telemetry, set zosAssistant.telemetryEnabled to false in settings.
Roadmap
- [ ]
/tso— TSO and console commands - [ ]
/uss— USS filesystem operations - [ ] Multi-profile support (switch between LPAR environments)
- [ ] Copilot instruction file for enhanced COBOL assistance
- [ ] Dataset content caching for faster repeated reads
Known Issues
/tsoand/usscommands are not yet implemented (placeholders)- Multi-LPAR profile switching is in progress
Report issues at github.com/zarafa-dev-io/zLMTools/issues.
License
MIT — see LICENSE.