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.
git 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/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.
<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>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.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 |
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.
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">
- 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
- MUST NOT EXECUTE "patterns" phase 5 unless user directly requests it; mark skipped
- 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.
- 5d ago Changed 183efb786e31
- 6d ago Changed · +3 lines f478d74dd3c2
- 1mo ago First seen · 167 lines · 21 tokens per session scan A a987379a1376
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.
Other commands, from other repositories
learn
Show Claude Code best practices and save confirmed session learnings.
wiki
Build, query, and maintain persistent research wikis.
context-optimizer
Diagnose context usage and reduce unnecessary token consumption.
learn-rule
Capture a lesson as a reusable rule after user approval.
compact-guard
Smart context compaction with state preservation — saves critical state before compact and restores after.
institutional-memory-distill
Distill decisions, reasoning, and rejected alternatives from PRs, design docs, and postmortems into the project's decisionledger, so ult-context-generate's trip-wire can surface institutional memory before new work quietly repeats settled ground. Do NOT use to query the ledger against new work or decide…