init-workspace

init-workspace is a command for coding agents from bacchus-labs/wrangler. It costs 12 tokens per session (881 once invoked), scanned A, original, MIT.

A command that creates or checks Wrangler's .wrangler workspace, the project folder used for its configuration, workflow files, templates, and agent definitions.

In plain words
What is it for?
Use it to initialize a project, verify its Wrangler directories, apply missing setup with --fix, choose a project root, or update related configuration and ignore rules.
Why use it?
It prepares the project structure consistently and can report needed changes before applying them, while preserving existing custom files.

Command

Part of the wrangler plugin — 25 skills, 16 commands, 16 agents 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/bacchus-labs/wrangler/init-workspace
Clone the repo
git clone --depth 1 https://github.com/bacchus-labs/wrangler

Or install wrangler, the plugin that ships this one along with the rest of its 25 skills, 16 commands, 16 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init-workspace

README.md
[![agentmods](https://agentmods.dev/badge/commands/bacchus-labs/wrangler/init-workspace.svg)](https://agentmods.dev/commands/bacchus-labs/wrangler/init-workspace)
Your own site
<a href="https://agentmods.dev/commands/bacchus-labs/wrangler/init-workspace"><img src="https://agentmods.dev/badge/commands/bacchus-labs/wrangler/init-workspace.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 881 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00012 $0.00881
Opus 5 $0.00006 $0.00441
Sonnet 5 $0.00002 $0.00176
Haiku 4.5 $0.00001 $0.00088

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

Security

Grade A, and why

init-workspace scanned grade A with 0 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/init-workspace.md · 102 lines

How it starts

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

/wrangler:init-workspace

Initialize or verify the .wrangler/ workspace directory structure using the init_workspace MCP tool. Idempotent -- safe to run repeatedly.

Arguments

  • --fix (optional) -- Apply changes. Without this flag, runs in report-only mode showing what would be created.
  • --project-root=<path> (optional) -- Override project root directory. Defaults to git root or cwd.

What This Tool Does

The init_workspace MCP tool is the schema-driven workspace initializer. It:

  1. Creates directories defined in workspace-schema.json using mkdir -p semantics (idempotent)
  2. Provisions builtin assets -- copies agent definitions, prompt templates, and workflow YAML files into .wrangler/orchestration/ subdirectories, skipping any file that already exists at the destination (never overwrites user customizations)
  3. Generates config -- creates .wrangler/config/wrangler.json with project defaults if it doesn't exist
  4. Manages .gitignore -- appends missing patterns from the schema without duplicating existing entries
  5. Updates schema -- copies workspace-schema.json to the project if the plugin has a newer version

Modes

Report-Only (default, fix: false)

Shows what would be created without making any changes. Use this to audit workspace state.

init_workspace {}

Returns status: compliant (everything exists) or changes_needed (with details of what's missing).

Apply (fix: true)

Creates all missing directories, copies missing assets, generates config, updates gitignore.

init_workspace { "fix": true }

Returns status: initialized (changes were made) or compliant (nothing to do).

Instructions

  1. Call the init_workspace MCP tool with the appropriate parameters
  2. Review the structured result showing directories, assets, config, and gitignore status
  3. Report findings to the user

Report-only mode (no --fix flag):

init_workspace({})
// or with explicit project root:
init_workspace({ projectRoot: "/path/to/project" })

Read the full file on GitHub · 102 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. 4d ago First seen · 102 lines · 12 tokens per session scan A 77dcf665faa2

Subscribe to this mod's changes

init-workspace is a command published in the GitHub repository bacchus-labs/wrangler (4 stars, last pushed 6mo ago), licensed MIT. It adds 12 tokens to every session and 881 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.