onboard

An interactive setup command for a workspace plugin. It checks required tools, configures dependencies, and can enable features such as a command wrapper and status display.

In plain words
What is it for?
Use it to install or verify dependencies, create workspace configuration, configure the zmx wrapper, and set up the statusline.
Why use it?
It gathers the setup choices and performs the configuration in one repeatable process, while also offering a check-only mode.

Command

Part of the workspace plugin — 13 commands, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mdsakalu/agent-plugins/onboard
Clone the repo
git clone --depth 1 https://github.com/mdsakalu/agent-plugins

Or install workspace, the plugin that ships this one along with the rest of its 13 commands, 3 hooks.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,018 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.03018
Opus 5 $0.00009 $0.01509
Sonnet 5 $0.00003 $0.00604
Haiku 4.5 $0.00002 $0.00302

Measured 2d ago against content hash 8224d6f0f391, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

onboard scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

5. Read `~/.claude/settings.json` and check for the `statusLine` key:

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf <CACHE_TARGET>
workspace/commands/onboard.md · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set up the workspace plugin — walk the user through dependencies, configuration, and optional features.

This is an interactive onboarding wizard. Use AskUserQuestion for every decision point. Explain why each step matters before doing it. The command is idempotent — safe to re-run.

The user's request: $ARGUMENTS

Key Variables

  • Plugin root: ${CLAUDE_PLUGIN_ROOT}
  • Metarepo root: parent directory of plugin root. Resolve it:
    METAREPO=$(cd "${CLAUDE_PLUGIN_ROOT}/.." && pwd)
    
    Do NOT read ~/.claude/workspace-config.json — this command creates that file.

If the user passes --check, run in check-only mode: report status of all phases without making any changes.


Phase 1: Dependencies

Explain: "Let me check the tools this plugin needs. Required tools are used by every command; optional tools enable specific features."

Required tools

Check each with command -v <tool>. For each, show the path if found, or install instructions if missing:

Tool Purpose Install if missing
jj Jujutsu version control — the workspace system is built on JJ workspaces brew install jj
jq JSON processing — used by hooks and scripts for metadata brew install jq
gh GitHub CLI — fetches PR info, discovers repos brew install gh, then gh auth login
git Git — underlying VCS for colocated repos xcode-select --install

If any required tool is missing, ask via AskUserQuestion:

  • "Continue anyway" — proceed (some commands won't work)
  • "Stop here" — abort so they can install first

Optional tools

Check each. Report status but do not block:

Tool Check Purpose Install if missing
zmx command -v zmx Terminal session multiplexer — required for /workspace:cd workspace switching brew install mdsakalu/tap/zmx
zsm command -v zsm TUI for managing zmx sessions — list, attach, kill sessions visually brew install mdsakalu/tap/zsm
MarkText ls ~/Applications/marktext.app/Contents/MacOS/marktext 2>/dev/null Markdown editor — opens notes in /workspace:notes Download from https://github.com/marktext/marktext
VS Code command -v code Code editor — opens workspaces in /workspace:open Install VS Code, then Cmd+Shift+P > "Shell Command: Install code command in PATH"

Read the full file on GitHub · 272 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 272 lines · 17 tokens per session scan D 8224d6f0f391

Subscribe to this mod's changes

onboard is a command published in the GitHub repository mdsakalu/agent-plugins (4 stars, last pushed 3mo ago), licensed MIT. It adds 17 tokens to every session and 3,018 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.