Workspace lifecycle CLI for repository-focused development with dual runtimes.
- Primary command:
agent-workspace-launcher - Compatibility alias:
awl(via shell wrapper or symlink) - Runtimes:
container(default) andhost - Subcommands:
auth,create,ls,rm,exec,reset,tunnel
git(required)docker(required for defaultcontainerruntime)- Optional for specific flows:
gh(GitHub token/keyring auth)gpg(signing key checks)code(VS Code tunnel)
Install with Homebrew:
brew tap graysurf/tap
brew install agent-workspace-launcherCreate and use a workspace:
agent-workspace-launcher create OWNER/REPO
agent-workspace-launcher ls
agent-workspace-launcher exec <workspace>
agent-workspace-launcher rm <workspace> --yesIf Docker is unavailable, use the host runtime:
agent-workspace-launcher --runtime host create OWNER/REPOFor Docker/source install options and full setup details, see Installation Guide.
- Flag:
--runtime container|host - Env:
AGENT_WORKSPACE_RUNTIME=container|host - Precedence:
--runtimeoverridesAGENT_WORKSPACE_RUNTIME - Default (no override):
container
Default root:
AGENT_WORKSPACE_HOME(if set)- else
XDG_STATE_HOME/agent-workspace-launcher/workspaces - else
$HOME/.local/state/agent-workspace-launcher/workspaces
create: creates a workspace in the selected runtime and optionally clones repo(s).create(container runtime): after container creation, force-syncs~/.config/zshand~/.agentsto remotemainand updatesnils-cli.exec: runs a command or shell in the selected runtime workspace.reset: git reset flows (repo,work-repos,opt-repos,private-repo) in the selected runtime.auth github: stores resolved token under workspace auth directory.auth codex: syncs Codex auth files while keeping compatibility names.tunnel: runscode tunnelin the selected runtime workspace.- Completion engine: bash/zsh completion adapters call hidden
__completein the Rust CLI and receive runtime-aware candidates.
| Env | Default | Purpose |
|---|---|---|
AGENT_WORKSPACE_RUNTIME |
container |
Runtime backend: container|host |
AGENT_WORKSPACE_COMPLETION_MODE |
rust |
Completion backend selector: rust|legacy (legacy is rollback toggle) |
AGENT_WORKSPACE_HOME |
auto | Workspace root override |
AGENT_WORKSPACE_PREFIX |
agent-ws |
Prefix normalization for workspace names |
AGENT_WORKSPACE_AUTH |
auto |
GitHub auth token policy: auto|gh|env|none |
AGENT_WORKSPACE_GPG_KEY |
(empty) | Default key for auth gpg |
AGENT_WORKSPACE_ZSH_KIT_REPO |
https://github.com/graysurf/zsh-kit.git |
Source repo used to force-sync ~/.config/zsh on container create |
AGENT_WORKSPACE_AGENT_KIT_REPO |
https://github.com/graysurf/agent-kit.git |
Source repo used to force-sync ~/.agents on container create |
AGENT_WORKSPACE_NILS_CLI_FORMULA |
graysurf/tap/nils-cli |
Homebrew formula used to update nils-cli on container create |
CODEX_SECRET_DIR |
(empty) | Codex profile directory (compatibility name) |
CODEX_AUTH_FILE |
~/.codex/auth.json |
Codex auth file path (compatibility name) |
- Internal command:
agent-workspace-launcher __complete ...(hidden from normal--help). - Runtime-aware behavior: completion resolves runtime with the same precedence as normal execution
(
--runtime>AGENT_WORKSPACE_RUNTIME>AWL_RUNTIME>container). - Descriptive mode: completion supports
--format describe(candidate<TAB>description) so zsh adapters can render inline help text. - Coverage model: completion returns subcommands + long/short flags + common option values
(for example
--runtime,--output,--ref,--depth,--user). - Workspace-aware subcommands:
auth,rm,exec,reset, andtunnelcomplete workspace names from the selected runtime backend. - Shell adapters:
scripts/awl.bash,scripts/awl.zsh,completions/agent-workspace-launcher.bash, andcompletions/_agent-workspace-launcherare adapter layers that delegate candidate generation to Rust. - Emergency rollback: set
AGENT_WORKSPACE_COMPLETION_MODE=legacyto force legacy shell completion behavior.
scripts/awl.bashscripts/awl.zshscripts/awl_docker.bashscripts/awl_docker.zsh
These wrappers call agent-workspace-launcher directly and expose aw* shortcuts.
- Build/test guide:
docs/BUILD.md - Architecture:
docs/DESIGN.md - User guide:
docs/guides/README.md - Release guide:
docs/RELEASE_GUIDE.md
MIT. See LICENSE.