init-workspace-flow

init-workspace-flow is a command for Claude Code from griddynamics/rosetta. It costs 21 tokens per session (2,130 once invoked), scanned A, original, Apache-2.0.

A guided process for setting up or upgrading a coding workspace in ordered phases. It records progress and checks that existing human-written files are preserved.

In plain words
What is it for?
It helps initialize a new workspace, upgrade an existing one, or prepare a plugin workspace by creating context, documentation, configuration, and verification steps.
Why use it?
Workspace setup can involve many dependent tasks, and missing one can leave later work without the needed context. The recorded state shows what has been completed and what remains.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit It helps initialize a new workspace, upgrade an existing one, or prepare a plugin workspace by creating context, documentation, configuration, and verification steps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/init-workspace-flow
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.

Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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 init-workspace-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow/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 init-workspace-flow

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,130 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.00021 $0.02130
Opus 5.5 $0.00008 $0.00852
Sonnet 5.5 $0.00004 $0.00426
Haiku 4.5 $0.00002 $0.00213

Measured 5d ago against content hash 183efb786e31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init-workspace-flow 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 5d 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/core-copilot-light/commands/init-workspace-flow.md · 170 lines

How it starts

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

<init_workspace_flow>

<description_and_purpose>

Problem: Workspace initialization is multi-phase, order-dependent, and must handle install/upgrade/plugin modes without overwriting human content. Validation: State file tracks every phase with file inventory; verification confirms all files exist.

</description_and_purpose>

<workflow_phases>

<prerequisites phase="0", applies="ALL">

  1. All Rosetta prep steps MUST be FULLY completed
  2. MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
  3. MUST FOLLOW THIS WORKFLOW EXACTLY AND FULLY.
  4. MUST extensively use subagents as this is a large workflow.
  5. Each phase updates agents/init-workspace-flow-state.md. Optional phases marked as skipped. Keep state file very brief.
  6. No rush, Take your time, Be thorough, ACCURACY > SPEED
  7. Dual-mode: every phase reads state.mode → check-exists → identify-gaps → create/update → preserve-human-content → report-changes.
  8. Composite workspace: documentation phases to create top-level index referencing sub-repository docs.
  9. IF state.file_count >= 100 (set by Phase 3): pass "USE SKILL large-workspace-handling" to Phase 5, 7, 8 subagents.
  10. Create agents/init-workspace-flow-state.md.
  11. Conditional phases:
  • If you have already in context "RUNNING AS A PLUGIN": MUST NOT EXECUTE "shells" phase 2
  • Else MUST EXECUTE "shells" phase 2
  • MUST NOT EXECUTE "patterns" phase 5 unless user directly requests it; mark skipped
  1. Note: rosetta@rosetta is an MCP connector, not a plugin — it follows the normal path (shells phase 2 executes)
  2. If user says to initialize rules, subagents, agents, workflows, commands it ONLY means to execute "shells" phase 2.
  3. Upgrade from R2 to R3 is exactly the same process as define here, but you already have some files available, which you can reuse.
  4. Additionally tell subagents: "If you want to use shell commands, prefer to combine individual shell commands into single simple shell script and execute it, but already available tools ALWAYS take precedence."
  5. When subagents already available, you are orchestrator and senior team lead and effective manager. Orchestrator makes process poka-yoke and reliable itself, provides clear context and instructions, uses subagents as his team, tells WHAT to do and HOW to think, does not work on tasks for subagents itself nor provides mechanical tasks nor paraphrases instructions, but appends context, ensures subagents provide grounded information, provides already known references to files, instructions, phases, steps, skills, keep agents focused. Prompt subagents to report honestly, concise, terse, and we exact links to files it created/modified.
  6. Remember: subagents always start with fresh context on every run. User can not see orchestrator and subagent communication.
  7. Subagent prompt must be concise, terse, factual, specific, DRY, grounded, etc.
  8. ENFORCE provided required subagent models and effort levels.
  1. Detect mode: install, upgrade, or plugin. Set state.mode, state.plugin_active, state.composite, state.existing_files. Creates/reads gain.json. GAIN.json questions keep for questions phase.
  2. APPLY PHASE init-workspace-flow-context.md
  3. Update state
  1. Generate shell files for skills, agents, workflows. Skip if state.plugin_active.
  2. Input: IDEs, Output: shell configs, bootstrap rule, load-project-context skill shell.
  3. APPLY PHASE init-workspace-flow-shells.md
  4. Update state
  1. Analyze workspace tech stack, structure, source code file count.
  2. Output: TECHSTACK.md, CODEMAP.md, DEPENDENCIES.md, state.file_count.
  3. APPLY PHASE init-workspace-flow-discovery.md
  4. Update state

Read the full file on GitHub · 170 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. 5d ago Changed 183efb786e31
  2. 6d ago Changed · +3 lines f478d74dd3c2
  3. 1mo ago First seen · 167 lines · 21 tokens per session scan A a987379a1376

Subscribe to this mod's changes

init-workspace-flow is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 2,130 once invoked, about $0.0001 per session on Opus 5.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-09-03.