adhoc-flow

adhoc-flow is a command for Claude Code from griddynamics/rosetta. It costs 22 tokens per session (1,456 once invoked), scanned A, original, Apache-2.0.

A flexible workflow for tasks that do not fit a fixed process, such as documentation, builds, tracking, or synchronization. It creates a task-specific plan from reusable workflow steps and tracks the work.

In plain words
What is it for?
Use it for lightweight documentation, build-related work, task tracking, synchronization, and other custom engineering tasks.
Why use it?
It provides a structured way to handle varied requests without forcing them into a specialized workflow. It also keeps progress and decisions organized during execution.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it for lightweight documentation, build-related work, task tracking, synchronization, and other custom engineering tasks.

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

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

agentmods 80×15 button for adhoc-flow

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/adhoc-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/adhoc-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,456 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.00022 $0.01456
Opus 5.5 $0.00009 $0.00582
Sonnet 5.5 $0.00004 $0.00291
Haiku 4.5 $0.00002 $0.00146

Measured 3d ago against content hash 158f84c09feb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adhoc-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 3d 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/adhoc-flow.md · 135 lines

How it starts

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

<adhoc_flow>

<description_and_purpose>

Problem: Fixed workflows cannot cover the combinatorial space of real requests; orchestrators lock into rigid classification. Solution: Meta-workflow — construct a bespoke plan from building blocks, review, execute with tracking. Each user turn can extend, adapt, or restart.

If request is trivial / one-liner AND you confirmed it is true (by checking code / instructions fallback to ask user) only then you are allowed to just directly execute it without extra complications of this skill => otherwise you must fully follow this and orchestration skills.

</description_and_purpose>

  • large (smart, slow): claude-opus-5-5, gpt-6-luna-xhigh, gpt-6.1-sol-high, gemini-4-argon-high, gemini-3.8-flash-high, kimi-k3, glm-5.2
  • medium (workhorse): claude-sonnet-5-5, gpt-6-luna-high, glm-5, kimi-k2.5, minimax-m2.5, grok-4.7
  • small (fast): claude-haiku-5-5, gpt-6-luna, gpt-6-luna-medium, gemini-3.8-flash-low

Match to cognitive demand. Match to current tool.

  1. MUST USE SKILL orchestration with team management, which is the core mechanism of this workflow.
  2. Workflow state MUST be saved to agents/TEMP/<FEATURE>/adhoc-flow-state.md file.

<building_blocks>

Compose any of these (not limited) into plan phases/steps to build any execution workflow:

  • discover-research: scan project context and KB; research external knowledge if needed; deliver summarized references
  • requirements-capture: reverse-engineer or interrogate requirements; persist intent as source of truth
  • reasoning-decomposition: USE SKILL reasoning (8D) to decompose into sub-problems with decisions and trade-offs
  • plan-wbs: USE SKILL planning to build sequenced WBS
  • tech-specs: USE SKILL tech-specs to generate target technical implementation specs; makes AI to figure out entire solution, instead of discovering something as a surprise
  • subagent-delegation: provide role + context/refs; route parallel/sequential; enforce focus — report back if off-plan
  • delegate-but-verify: use subagent delegation, but verify both reasoning and results
  • critically-review: critically review inputs, outputs, reasoning, completeness, ambiguity, results of user, subagents, tools, scripts, etc.
  • execute-track: EXECUTION_CONTROLLER next → execute → update_status; upsert to adapt mid-execution; loop
  • modify-review: modify then review with different agent/model
  • review-validate: review (static inspection against intent) + validate (run locally, call/use local, runtime evidence on real tasks)
  • memory-learn: root-cause failures → reusable preventive rules → update AGENT MEMORY.md
  • hitl-gate: present summary to user; block until explicit approval
  • simulate: walk through plan with use cases; verify cognitive load and phase boundaries
  • draft-improve: short core draft → improve one non-conflicting aspect at a time
  • ralph-loop: execute → review → update task memory with root causes → loop
  • use: use existing skills, agents, workflows
  • plan-sessions: create plan (one file, with refs to per-session files) and implementation specs for each session for workhorse model (sonnet 5.5, gpt-6-luna-high, so you need to provide more details) in multiple files in order of execution, so that it can be given one-by-one in different sessions of subagents.
  • Do not duplicate: existing files, instructions, protocols => instead use references "file-name:line-ranges".

</building_blocks>

<workflow_phases>

  1. All Rosetta prep steps MUST be FULLY completed
  2. MUST USE SKILL load-project-context, orchestration (with team manager, execution controller is size dependent), hitl
  3. MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
  4. MUST use available MCPs, tools, skills and agents.
  5. You will FOR SURE run out of LLM context, leading to loss of information, delegate to subagents!
  6. If /goal is set repeat phases 4-5 until goal is met.

Read the full file on GitHub · 135 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. 3d ago Changed 158f84c09feb
  2. 4d ago Changed 2ee374acf327
  3. 1mo ago First seen · 135 lines · 22 tokens per session scan A 11e2310a0893

Subscribe to this mod's changes

adhoc-flow is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed 3d ago), licensed Apache-2.0. It adds 22 tokens to every session and 1,456 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.