External Interface Reference
May 17, 2026 ยท View on GitHub
This document describes the external interface of Workspace Guard, including the supported inputs and outputs for the VS Code extension and CLI tools.
VS Code Extension
Commands
The extension contributes these user-facing commands through the Command Palette:
Workspace Guard: Open Escape FolderWorkspace Guard: Set Protection ModeWorkspace Guard: Remove Home Folders From WorkspaceWorkspace Guard: Audit Telemetry SettingsWorkspace Guard: Apply Privacy HardeningWorkspace Guard: Roll Back Privacy HardeningWorkspace Guard: Assess Workspace SafetyWorkspace Guard: Review .github AutomationWorkspace Guard: Refresh .github ReviewWorkspace Guard: Suggest .github RemediationWorkspace Guard: Show .github Finding DetailsWorkspace Guard: Set .github Review FilterWorkspace Guard: Export .github Review as JSONWorkspace Guard: Export .github Review as Markdown
Settings Input
The extension accepts configuration through VS Code settings under the homeguard.* namespace.
Key inputs include:
homeguard.enablehomeguard.modehomeguard.escapeFolderhomeguard.enableEphemeralEscapehomeguard.checkOnStartuphomeguard.checkOnWorkspaceFolderAddhomeguard.allowListhomeguard.highRiskFoldershomeguard.verbosehomeguard.privacy.*homeguard.githubReview.checkOnStartuphomeguard.safety.*
Extension Output
The extension produces output through:
- notifications and warnings in VS Code
- the
WG:status bar control - the
Workspace Guard ReviewExplorer tree - output panel review summaries
- exported
.githubreview reports in JSON or Markdown - workspace actions such as redirecting to an escape folder or removing risky folders from the workspace
- workspace safety assessments that count
.env-style secret-bearing files by filename without reading file contents, keep.env.example-style templates separate, and report when scanning stops at safety limits
CLI
Workspace Guard provides two CLI entry points.
homeguard-code
Input:
- a target path or paths passed on the command line, intended as a safer wrapper around the VS Code
codeCLI
Behavior:
- evaluates the requested path
- warns, redirects, blocks, or audits based on the configured policy
- launches the VS Code
codeCLI when allowed
Output:
- terminal messages describing the safety decision
- process exit status indicating success or failure
workspace-guard-scan
Input:
- a repository or workspace path
- optional
--resolve-external-workflowsto fetch referenced reusable workflows for deeper inspection
Behavior:
- scans
.github/workflows/*.yml,dependabot.yml,CODEOWNERS, and issue or pull request templates - evaluates workflow and repository metadata risks
Output:
- terminal review output with findings grouped by severity
- JSON or Markdown content when exported through the extension workflow
Repository Interface
The project also exposes these public repository interfaces:
- GitHub issues for bug reports and feature requests
- pull requests for proposed changes
- releases for published VSIX artifacts
- security policy for responsible disclosure
Related project references: