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.
npx agentmods add commands/griddynamics/rosetta/init-workspace-flowgit clone --depth 1 https://github.com/griddynamics/rosettaWrote 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.
[](https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00021 | $0.02084 |
| Opus 5 | $0.00010 | $0.01042 |
| Sonnet 5 | $0.00004 | $0.00417 |
| Haiku 4.5 | $0.00002 | $0.00208 |
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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 167 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">
- All Rosetta prep steps MUST be FULLY completed
- MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
- MUST FOLLOW THIS WORKFLOW EXACTLY AND FULLY.
- MUST extensively use subagents as this is a large workflow.
- Each phase updates
agents/init-workspace-flow-state.md. Optional phases marked as skipped. Keep state file very brief. - No rush, Take your time, Be thorough, ACCURACY > SPEED
- Dual-mode: every phase reads
state.mode→ check-exists → identify-gaps → create/update → preserve-human-content → report-changes. - Composite workspace: documentation phases to create top-level index referencing sub-repository docs.
- IF state.file_count >= 100 (set by Phase 3): pass "USE SKILL
large-workspace-handling" to Phase 5, 7, 8 subagents. - Create
agents/init-workspace-flow-state.md. - Conditional phases:
- If you have already in context "RUNNING AS A PLUGIN": MUST NOT EXECUTE "shells" phase 2
- Else MUST EXECUTE "shells" phase 2
- Note:
rosetta@rosettais an MCP connector, not a plugin — it follows the normal path (shells phase 2 executes) - If user says to initialize rules, subagents, agents, workflows, commands it ONLY means to execute "shells" phase 2.
- Upgrade from R2 to R3 is exactly the same process as define here, but you already have some files available, which you can reuse.
- 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."
- 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.
- Remember: subagents always start with fresh context on every run. User can not see orchestrator and subagent communication.
- Subagent prompt must be concise, terse, factual, specific, DRY, grounded, etc.
- ENFORCE provided required subagent models and effort levels.
- 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.
- APPLY PHASE
init-workspace-flow-context.md - Update state
- Generate shell files for skills, agents, workflows. Skip if state.plugin_active.
- Input: IDEs, Output: shell configs, bootstrap rule, load-project-context skill shell.
- APPLY PHASE
init-workspace-flow-shells.md - Update state
- Analyze workspace tech stack, structure, source code file count.
- Output: TECHSTACK.md, CODEMAP.md, DEPENDENCIES.md, state.file_count.
- APPLY PHASE
init-workspace-flow-discovery.md - Update state
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.
- today First seen · 167 lines · 21 tokens per session scan A a987379a1376
init-workspace-flow is a command published in the GitHub repository griddynamics/rosetta (342 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 2,084 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-09-03.
Other commands, from other repositories
OPSX: Apply
Implement tasks from an OpenSpec change (Experimental).
OPSX: Propose
Propose a new change - create it and generate all artifacts in one step.
OPSX: Archive
Archive a completed change in the experimental workflow.
OPSX: Explore
Enter explore mode - think through ideas, investigate problems, clarify requirements.
resolve-conflicts
Resolve merge conflicts on a GitHub PR by merging the base branch into the PR branch in an isolated git worktree, with JSON/markdown-aware conflict resolution.
react-router-client-loader
Do this in a clientLoader and use loaderData to render the component. DO NOT create mock data, new interfaces, or mock data loader functions. Instead, assume loaderData has all of the data you need to render the component.