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.
Documentation
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) |
Dataset creation defaults (zosAssistant.createDefaults.*):
| Setting | Default | Description |
|---|---|---|
alcunit |
TRK |
Space allocation unit (TRK or CYL) |
primary |
10 |
Primary space |
secondary |
5 |
Secondary space |
recfm |
FB |
Record format (for PARTITIONED / SEQUENTIAL types) |
lrecl |
80 |
Logical record length |
blksize |
0 |
Block size (0 = z/OS-determined) |
dirblkPds |
20 |
Directory blocks for PDS |
volser |
"" |
Volume serial (empty = SMS-managed) |
storclass |
"" |
SMS storage class |
mgntclass |
"" |
SMS management class |
dataclass |
"" |
SMS data class |
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_downloadMember— Download a single PDS member to the local workspace#zos_downloadAllMembers— Download all members of a PDS to a local directory#zos_downloadAllDatasets— Download all datasets matching a pattern#zos_uploadFileToPds— Upload a local file to a PDS member#zos_uploadDirToPds— Upload a local directory to a PDS (each file becomes a member)#zos_copyMember— Copy a PDS member to another dataset (with optional rename and replace)#zos_copyDataset— Copy an entire PDS or sequential dataset to a new target#zos_createDataset— Create a z/OS dataset (PARTITIONED, SEQUENTIAL, CLASSIC, BINARY, C) with full attribute control#zos_deleteMember— Permanently delete a PDS member#zos_deleteDataset— Permanently delete an entire dataset (with optional volume for non-SMS)#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_submitLocalJcl— Submit a local JCL file to z/OS#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 - [ ] Copilot instruction file for enhanced COBOL assistance
- [ ] Dataset content caching for faster repeated reads
Known Issues
/tsoand/usscommands are not yet implemented (placeholders)
Report issues at github.com/zarafa-dev-io/zLMTools/issues.
License
MIT — see LICENSE.