init-workspace-flow-discovery

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

The discovery phase of a workspace setup process. It examines a codebase and creates documents describing its technologies, structure, and dependencies.

In plain words
What is it for?
It helps inventory source files, map the codebase, identify the technology stack, and record external libraries or services the project depends on.
Why use it?
Agents otherwise have to rediscover how the project is built and where its parts are located. These documents give later work a factual starting point.

Command for Claude Code

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

Good fit It helps inventory source files, map the codebase, identify the technology stack, and record external libraries or services the project depends on.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/init-workspace-flow-discovery"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/init-workspace-flow-discovery.svg" alt="Reviewed on agentmods" width="80" 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,109 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.00016 $0.01109
Opus 5.5 $0.00006 $0.00444
Sonnet 5.5 $0.00003 $0.00222
Haiku 4.5 $0.00002 $0.00111

Measured 1mo ago against content hash a95e8c88a2ef, 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-discovery 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 1mo 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-discovery.md · 129 lines

How it starts

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

<init_workspace_flow_discovery>

<description_and_purpose> Produces foundational technical documentation (TECHSTACK, CODEMAP, DEPENDENCIES) that all subsequent phases depend on. </description_and_purpose>

<workflow_context>

  • Phase 3 of 9 in init-workspace-flow
  • Input: filesystem, state.mode, state.composite
  • Output: TECHSTACK, CODEMAP, DEPENDENCIES on disk, source code file count
  • Count only source code files
  • Prerequisite: Phase 1 complete (mode known), Phase 2 complete or skipped </workflow_context>

<phase_steps>

  1. Read state and confirm mode
  2. Acquire and execute discovery
  3. Update state </phase_steps>

<check_mode step="3.1">

  1. Read agents/init-workspace-flow-state.md
  2. Confirm Phase 1 complete and mode is set
  3. If upgrade mode: note which discovery files already exist </check_mode>

<execute_discovery step="3.2">

Act as a senior workspace cartographer — fast, factual technical inventory. Without factual inventory of tech stack, structure, and dependencies, subsequent phases operate blind.

<discovery_process>

  1. All Rosetta prep steps MUST be FULLY completed, load-project-context skill loaded and fully executed
  2. Read existing TECHSTACK, CODEMAP, DEPENDENCIES — update if present, create if missing
  3. Detect languages, frameworks, build tools, package managers, runtime environments → write TECHSTACK
  4. Existing documentation may be stale or incomplete, prioritize source code artifacts over pre-existing documents
  5. Generate CODEMAP via shell commands (no pseudo graphics), 3-4 levels deep
    • Perform basic discovery yourself with few commands
    • Enumerate git repositories yourself
    • Markdown headers = workspace-relative path + recursive children count + <10 words description
    • List only immediate children files and only with file names
    • List target repository source code, static assets, and documentation files based on tech stack
    • Exclude noise/caches/build/binary files, files excluded by .gitignore
    • Implement as a single shell script in agents/TEMP/ folder
    • Use git ls-files --cached --others --exclude-standard in each repository or fallback to find/ls/etc with filters
    • AVOID manually listing folder-by-folder, either hardcoded script it, or just list entire workspace with both filters to exclude noise folders and include only source code files, then you build map from context
  6. List direct dependencies (project, package, version) → write DEPENDENCIES
  7. Preserve human-added sections in existing files
  8. Update (or create only if missing) .gitignore in git root folder by adding lines according to bootstrap_rosetta_files (roster in SKILL load-project-context) Minimal set must be present:
    ...
    # Rosetta
    agents/TEMP/
    refsrc/
    !refsrc/INDEX.md
    
  9. Update (or create only if missing) .prettierignore in git root folder by adding following lines:
    ...
    # Rosetta
    docs/*.md
    docs/**/*.md
    

</discovery_process>

DEPENDENCIES.md

  • MUST create, use, and maintain flat list of direct project dependencies (project, package, version)

Read the full file on GitHub · 129 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. 1mo ago First seen · 129 lines · 16 tokens per session scan A a95e8c88a2ef

Subscribe to this mod's changes

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