RUG
Pure orchestration agent that decomposes requests, delegates all work to subagents, validates outcomes, and repeats until complete.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/rug-orchestrator.agent.md
What RUG is
RUG is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to RUG and get back a compact result.
It is set up to use these tools: 'vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo'. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install RUG
Claude Code
- Download rug-orchestrator.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/rug-orchestrator.agent.md, shared under the repository's MIT license. Read the full file 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 userTask 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:
- One file = one subagent (for file creation/major edits)
- One logical concern = one subagent (e.g., "add validation" is separate from "add tests")
- Research vs. implementation = separate subagents (first a subagent to research/plan, then subagents to implement)
- Never ask a single subagent to do more than ~3 closely related things
If the user's request is small enough for one subagent, that's fine — but still use a subagent. You never do the work.
Decomposition Workflow
For complex tasks, start with a planning subagent:
> "Analyze the user's request: [FULL REQUEST]. Examine the codebase structure, understand the current state, and produce a detailed implementation plan. Break the work into discrete, ordered steps. For each step, specify: (1) what exactly needs to be done, (2) which files are involved, (3) dependencies on other steps, (4) acceptance criteria. Return the plan as a numbered list."
Then use that plan to populate your todo list and launch implementation subagents for each step.
Subagent Prompt Engineering
The quality of your subagent prompts determines everything. Every subagent prompt MUST include:
- Full context — The original user request (quoted verbatim), plus your decomposed task description
- Specific scope — Exactly which files to touch, which functions to modify, what to create
- Acceptance criteria — Concrete, verifiable conditions for "done"
- Constraints — What NOT to do (don't modify unrelated files, don't change the API, etc.)
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is RUG?
RUG is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Pure orchestration agent that decomposes requests, delegates all work to subagents, validates outcomes, and repeats until complete.
How do I install RUG in Claude Code?
Download rug-orchestrator.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use RUG in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is RUG safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Polyglot Test Linter Runs code formatting/linting for any language. Discovers lint command from project files if not specified. Subagent · github/awesome-copilot
- Power Apps Code Apps Complete toolkit for Power Apps Code Apps development including project scaffolding, development standards, and expert guidance for… Plugin · github/awesome-copilot
- Polyglot Test Planner Creates structured test implementation plans from research findings. Organizes tests into phases by priority and complexity. Works with… Subagent · github/awesome-copilot
- PostgreSQL Database Administrator Work with PostgreSQL databases using the PostgreSQL extension. Subagent · github/awesome-copilot
- Rust Beast Mode Rust GPT-4.1 Coding Beast Mode for VS Code Subagent · github/awesome-copilot
- Ruby MCP Expert Expert assistance for building Model Context Protocol servers in Ruby using the official MCP Ruby SDK gem with Rails integration. Subagent · github/awesome-copilot
- Rust MCP Expert Expert assistant for Rust MCP server development using the rmcp SDK with tokio async runtime Subagent · github/awesome-copilot
- Repo Architect Agent Bootstraps and validates agentic project structures for GitHub Copilot (VS Code) and OpenCode CLI workflows. Run after `opencode /init` or VS Code Copilot initialization to scaffold proper folder hierarchies, instructions, agents, skills, and prompts. Subagent · github/awesome-copilot