arrange-workspace-flow-reference-source-code

arrange-workspace-flow-reference-source-code is a command for Claude Code from griddynamics/rosetta. It costs 20 tokens per session (583 once invoked), scanned A, original, Apache-2.0.

A workflow phase for adding read-only reference code that lives outside the main repository. It checks the reference folders and keeps an index showing what external code is available.

In plain words
What is it for?
Use it to identify external code, validate its workspace entries, ask for missing references, and document the supplied source code.
Why use it?
An agent cannot automatically see code outside the repository, so important dependencies or related systems may otherwise be missing from its understanding.

Command for Claude Code

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

Good fit Use it to identify external code, validate its workspace entries, ask for missing references, and document the supplied source code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/arrange-workspace-flow-reference-source-code"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/arrange-workspace-flow-reference-source-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 583 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.00020 $0.00583
Opus 5.5 $0.00008 $0.00233
Sonnet 5.5 $0.00004 $0.00117
Haiku 4.5 $0.00002 $0.00058

Measured 1mo ago against content hash 542994b2fd31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arrange-workspace-flow-reference-source-code 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/arrange-workspace-flow-reference-source-code.md · 62 lines

What it actually says

<arrange_workspace_reference_source_code>

<description_and_purpose> Onboard read-only reference code the agent cannot otherwise see into refsrc/, documented in refsrc/INDEX.md. </description_and_purpose>

<phase_steps>

  1. Identify existing reference source code
  2. Validate it is defined correctly, fix gaps
  3. Ask user for additional reference source code
  4. Validate and finalize what user provides </phase_steps>

<identify_existing step="2.1">

  1. Read docs/ARCHITECTURE.md/docs/CONTEXT.md for mentions of external/reference code, if they already exist.
  2. List existing refsrc/* folders and existing refsrc/INDEX.md entries. </identify_existing>

<validate_existing step="2.2">

  1. Confirm root .gitignore has these exceptions; add any missing:
agents/TEMP/
refsrc/
!refsrc/INDEX.md
  1. Confirm every refsrc/* folder has a matching refsrc/INDEX.md header; add missing entries.
  2. Flag any refsrc/INDEX.md entry with no matching folder. </validate_existing>

<ask_for_reference_code step="2.3" type="HITL">

  1. Tell the user, briefly: the agent can't see code outside this repo — reference code (backend for a frontend repo, corporate/private libraries, a recently-changed public framework) lets it read without writing to it.
  2. Ask if there is reference code to add; if not, record no-op and stop.
  3. If yes, ask repo URL/path per codebase; guide: clone read-only into refsrc/<name>. </ask_for_reference_code>

<review_reference step="2.4">

  1. Confirm each newly cloned codebase sits under refsrc/<name> and stays read-only.
  2. Re-apply validate_existing checks (gitignore + refsrc/INDEX.md) for the new entries. </review_reference>

<validation_checklist>

  • .gitignore carries all three refsrc exceptions.
  • Every refsrc/* folder has a refsrc/INDEX.md entry, and vice versa.
  • User was asked about additional reference code. </validation_checklist>

</arrange_workspace_reference_source_code>

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 · 62 lines · 20 tokens per session scan A 542994b2fd31

Subscribe to this mod's changes

arrange-workspace-flow-reference-source-code is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed 3d ago), licensed Apache-2.0. It adds 20 tokens to every session and 583 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.