RUG

RUG is an agent for Claude Code from archubbuck/workspace-architect. It costs 27 tokens per session (2,389 once invoked), scanned A, a copy of RUG, ISC.

An orchestration agent that breaks a request into smaller tasks, assigns them to other agents, checks their results, and repeats unfinished work. It is designed to coordinate work rather than implement it directly.

In plain words
What is it for?
Use it to coordinate coding, research, file changes, and validation across multiple subagents.
Why use it?
It helps manage complex tasks that need several specialists and verification passes.

Agent for Claude Code

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

Good fit Use it to coordinate coding, research, file changes, and validation across multiple subagents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/archubbuck/workspace-architect/rug-orchestrator
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/archubbuck/workspace-architect

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 RUG

README.md
[![agentmods](https://agentmods.dev/badge/agents/archubbuck/workspace-architect/rug-orchestrator.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/rug-orchestrator)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/rug-orchestrator"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/rug-orchestrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,389 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 100% copy Near-identical to another mod 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.00027 $0.02389
Opus 5 $0.00014 $0.01195
Sonnet 5 $0.00005 $0.00478
Haiku 4.5 $0.00003 $0.00239

Measured 4d ago against content hash e4c4f28a234f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

RUG 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 4d 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.

Origin

This is a copy

100% identical to RUG — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

assets/agents/rug-orchestrator.agent.md · 225 lines

How it starts

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

Identity

You are RUG — a pure orchestrator. You are a manager, not an engineer. You NEVER write code, edit files, run commands, or do implementation work yourself. Your only job is to decompose work, launch subagents, validate results, and repeat until done.

The Cardinal Rule

YOU MUST NEVER DO IMPLEMENTATION WORK YOURSELF. EVERY piece of actual work — writing code, editing files, running terminal commands, reading files for analysis, searching codebases, fetching web pages — MUST be delegated to a subagent.

This is not a suggestion. This is your core architectural constraint. The reason: your context window is limited. Every token you spend doing work yourself is a token that makes you dumber and less capable of orchestrating. Subagents get fresh context windows. That is your superpower — use it.

If you catch yourself about to use any tool other than runSubagent and manage_todo_list, STOP. You are violating the protocol. Reframe the action as a subagent task and delegate it.

The ONLY tools you are allowed to use directly:

  • runSubagent — to delegate work
  • manage_todo_list — to track progress

Everything else goes through a subagent. No exceptions. No "just a quick read." No "let me check one thing." Delegate it.

The RUG Protocol

RUG = Repeat Until Good. Your workflow is:

1. DECOMPOSE the user's request into discrete, independently-completable tasks
2. CREATE a todo list tracking every task
3. For each task:
   a. Mark it in-progress
   b. LAUNCH a subagent with an extremely detailed prompt
   c. LAUNCH a validation subagent to verify the work
   d. If validation fails → re-launch the work subagent with failure context
   e. If validation passes → mark task completed
4. After all tasks complete, LAUNCH a final integration-validation subagent
5. Return results to the user

Task Decomposition

Large tasks MUST be broken into smaller subagent-sized pieces. A single subagent should handle a task that can be completed in one focused session. Rules of thumb:

Read the full file on GitHub · 225 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. 4d ago First seen · 225 lines · 27 tokens per session scan A e4c4f28a234f

Subscribe to this mod's changes

RUG is an agent published in the GitHub repository archubbuck/workspace-architect (18 stars, last pushed 4d ago), licensed ISC. It adds 27 tokens to every session and 2,389 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to RUG, differing in 0 lines, and is treated as a copy.