init-workspace-flow-documentation

init-workspace-flow-documentation is a command for coding agents from griddynamics/rosetta. It costs 16 tokens per session (1,978 once invoked), scanned A, original, Apache-2.0.

Phase 7 Documentation of init-workspace-flow.

Command

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/griddynamics/rosetta/init-workspace-flow-documentation
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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-documentation

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow-documentation.svg)](https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow-documentation)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow-documentation"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow-documentation.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00016 $0.01978
Opus 5 $0.00008 $0.00989
Sonnet 5 $0.00003 $0.00396
Haiku 4.5 $0.00002 $0.00198

Measured today against content hash 6fcfaa1998b4, 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-flow-documentation 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.

plugins/core-copilot-light/commands/init-workspace-flow-documentation.md · 207 lines

How it starts

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

<init_workspace_flow_documentation>

<description_and_purpose> Agents without workspace documentation re-discover facts, repeat mistakes, and make incorrect assumptions every session. This phase creates the shared understanding layer all subsequent agent work depends on. Proof: five doc files exist and every prepped-workspace skill reads them. Use top tier model, as this documentation will be loaded every signle time in every single user session with AI. </description_and_purpose>

<workflow_context>

  • Phase 7 of 9 in init-workspace-flow
  • Input: TECHSTACK, CODEMAP, DEPENDENCIES, source code, PATTERNS, state.file_count, state.mode, state.composite
  • Output: CONTEXT.md, ARCHITECTURE.md, IMPLEMENTATION.md, ASSUMPTIONS.md, AGENT MEMORY.md
  • Prerequisite: Phases 3 and 5 complete </workflow_context>

<phase_steps>

  1. Read state and prerequisites
  2. Execute documentation creation
  3. Update state, log gaps </phase_steps>

<read_state step="7.1">

  1. Read agents/init-workspace-flow-state.md
  2. Confirm Phase 3 complete (TECHSTACK, CODEMAP, DEPENDENCIES exist)
  3. Read state.mode, state.composite, state.file_count </read_state>

<execute_documentation step="7.2" subagent="built-in" role="Senior technical writer synthesizing workspace documentation" subagent_recommended_model="claude-opus-5,gpt-5.6-sol-high,gemini-3.7-flash-high">

Act as a senior technical writer — recovers intent from code, not transcribes implementation. Workspaces lack structured documentation, forcing every session to re-discover facts and repeat mistakes. This creates five foundational docs from source code analysis. Proof: all five docs exist, are non-empty, complementary, and track unknowns.

  1. Look around for any additional documentation and verify findings
  2. Execute documentation creation with state.mode, state.composite, state.file_count as inputs, following the content below

<core_concepts>

  • All Rosetta prep steps MUST be FULLY completed, load-project-context skill loaded and fully executed
  • USE SKILL reverse-engineering for domain extraction
  • Existing project documentation is likely stale and incomplete: source code is the true source of truth
  • Documentation phase is based on discovery phase to perform deep analysis, but avoid reading entire codebase.
  • Select which files to read, group organize by modules/batches/groups and must assign to subagents to execute.
  • All docs MUST BE COMPRESSED, TERSE, CONCISE as those are ALWAYS loaded in LLM context.

</core_concepts>

<documentation_process>

  1. Dual-mode based on state.mode:
    • Scan for each target doc file
    • Compare existing content against codebase findings
    • install = create all; upgrade = update gaps only
    • Never overwrite human-added content; merge alongside
    • Report created/updated/skipped files
  2. Analyze project structure and key source files
  3. Create TODO task per document with business context angle
  4. Track unknowns in ASSUMPTIONS.md with forward references
  5. Create or update documents:

CONTEXT.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Bulleted business context, purpose, domain — stakeholder perspective
  • No technical details
  • Limit to 100 lines, if there is MORE => keep CONTEXT.md with core CONTEXT plus index to per-feature -CONTEXT.md files with a set of terms what it contains.

ARCHITECTURE.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Architecture, modules, workspace structure, testing, styling, building blocks
  • No business context — reference CONTEXT.md
  • Reference CODEMAP.md for file structure
  • Limit to 150 lines, if there is MORE => keep ARCHITECTURE.md with core ARCHITECTURE plus index to per-area -ARCHITECTURE.md files with a set of terms what it contains.

IMPLEMENTATION.md:

  • What this doc is for and what it should contain, self-defining style
  • Self-defines purpose, content type, style
  • Baseline state VERY BRIEFLY (first part, use word "Baseline" in header, not word "current" - misleading later on)
  • High-level change log, each change separate header with date and description (second part)
  • DRY — reference other docs
  • The only implementation change log
  • If nothing to add - add template

Read the full file on GitHub · 207 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. today First seen · 207 lines · 16 tokens per session scan A 6fcfaa1998b4

Subscribe to this mod's changes

init-workspace-flow-documentation is a command published in the GitHub repository griddynamics/rosetta (342 stars, last pushed today), licensed Apache-2.0. It adds 16 tokens to every session and 1,978 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.