pwf-setup-workspace

pwf-setup-workspace is a command for Claude Code from J-Pster/Psters_AI_Workflow. It costs 41 tokens per session (791 once invoked), scanned A, original, MIT.

A workspace setup command that creates or repairs a multi-root editor workspace: one view containing several separate project folders.

In plain words
What is it for?
Use it to set up a project with separate frontend and backend folders, a shared workspace folder, and a workspace file that links them.
Why use it?
It keeps code repositories separate from shared documentation and workflow files while letting you open them together in Cursor or Visual Studio Code. It also avoids moving or deleting existing repositories automatically.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/jpster/Repos.

Good fit Use it to set up a project with separate frontend and backend folders, a shared workspace folder, and a workspace file that links them.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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 pwf-setup-workspace

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-setup-workspace/github.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-setup-workspace)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-setup-workspace"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-setup-workspace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwf-setup-workspace

Your own site · 80×15
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-setup-workspace"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-setup-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.00791
Opus 5 $0.00020 $0.00396
Sonnet 5 $0.00008 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured 9d ago against content hash 19242f5fa6df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pwf-setup-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 9d 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.

plugins/psters-ai-workflow/commands/pwf-setup-workspace.md · 101 lines

How it starts

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

Setup Multi-Root Project Workspace

Use this command to create the recommended structure:

  • <ProjectName>_Repos/ for code repositories (usually frontend and backend),
  • <ProjectName>_Workspace/ for docs, .cursor, .claude, and workspace-level assets,
  • <ProjectName>.code-workspace for a multi-root editor workspace.

This keeps code and workflow/docs concerns separated while still visible in one editor window.

Input

<workspace_setup_input> #$ARGUMENTS </workspace_setup_input>

If input is missing required fields, ask:

  1. Project name (example: BDTX)
  2. Base path where folders should be created (example: /home/jpster/Repos)
  3. Frontend repo folder name (default: frontend)
  4. Backend repo folder name (default: backend)
  5. Optional: existing repo paths to link instead of creating new empty folders

Rules

  1. Non-destructive by default:
    • do not delete folders,
    • do not move existing repos automatically without explicit user confirmation.
  2. If target folder exists, reuse it and report as "already existed".
  3. Always generate/update a workspace file in <ProjectName>_Workspace/.
  4. Keep paths explicit in the final report.

Target structure

Create or ensure:

  • <base>/<ProjectName>_Repos/
  • <base>/<ProjectName>_Repos/<frontend-repo>/
  • <base>/<ProjectName>_Repos/<backend-repo>/
  • <base>/<ProjectName>_Workspace/
  • <base>/<ProjectName>_Workspace/docs/
  • <base>/<ProjectName>_Workspace/.cursor/
  • <base>/<ProjectName>_Workspace/.claude/ (if the user uses Claude Code)
  • <base>/<ProjectName>_Workspace/<ProjectName>.code-workspace

Workspace file requirements

Write a valid JSON .code-workspace file with:

  • one entry for workspace root (.),
  • one entry for frontend repo path,
  • one entry for backend repo path.

Use relative paths from <ProjectName>_Workspace/.

Example folders section:

{
  "folders": [
    { "name": "Workspace", "path": "." },
    { "name": "Frontend", "path": "../<ProjectName>_Repos/<frontend-repo>" },
    { "name": "Backend", "path": "../<ProjectName>_Repos/<backend-repo>" }
  ]
}

Read the full file on GitHub · 101 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. 9d ago First seen · 101 lines · 41 tokens per session scan A 19242f5fa6df

Subscribe to this mod's changes

pwf-setup-workspace is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 791 once invoked, about $0.0002 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-30.