repo-orch-init

repo-orch-init is a command for Claude Code from architonixlabs/RepoOrch. It costs 53 tokens per session (2,419 once invoked), scanned A, original, MIT.

A command that prepares a workspace containing several Git repositories for repo-orchestrator. It discovers and indexes the repositories, writes editable context documents, and can generate specialist agents after you review the documents.

In plain words
What is it for?
Run it once from the parent directory of your service repositories to create the orchestrator configuration, repository index, context files, and specialist agents.
Why use it?
It removes the manual work of cataloguing each repository and documenting how the services fit together. The review pause lets you check the generated context before agents are created.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node indexer/dist/index.js <repoPath>.

Part of the repo-orchestrator plugin — 3 skills, 8 commands, 2 agents, 2 hooks shipped together

Good fit Run it once from the parent directory of your service repositories to create the orchestrator configuration, repository index, context files, and specialist agents.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/architonixlabs/RepoOrch
agentmods
npx agentmods add commands/architonixlabs/repoorch/repo-orch-init

Made for: Claude Code.

Or install repo-orchestrator, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 2 agents, 2 hooks.

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 repo-orch-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/architonixlabs/repoorch/repo-orch-init/github.svg)](https://agentmods.dev/commands/architonixlabs/repoorch/repo-orch-init)
Your own site
<a href="https://agentmods.dev/commands/architonixlabs/repoorch/repo-orch-init"><img src="https://agentmods.dev/badge/commands/architonixlabs/repoorch/repo-orch-init/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 repo-orch-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/architonixlabs/repoorch/repo-orch-init"><img src="https://agentmods.dev/badge/commands/architonixlabs/repoorch/repo-orch-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 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,419 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.00053 $0.02419
Opus 5 $0.00026 $0.01210
Sonnet 5 $0.00011 $0.00484
Haiku 4.5 $0.00005 $0.00242

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

Security

Grade A, and why

repo-orch-init 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 10d 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.

commands/repo-orch-init.md · 261 lines

How it starts

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

/repo-orch-init

Bootstrap the repo-orchestrator for your workspace. Run this once from your workspace root (the directory that contains your service repos as immediate subdirectories).

What this command does

  1. Discovers all repos under the workspace root
  2. Indexes each repo (language, frameworks, endpoints, events, dependencies)
  3. Writes an editable context document per repo — then stops for your review
  4. On your confirmation: generates specialist agents (each with a unique name and a per-repo skill file) and updates registry.json

Step 1 — Discover repos

Read .repo-orchestrator/config.json if it exists. If it does not exist, create it with this default content:

{
  "discovery": {
    "mode": "auto",
    "root": ".",
    "exclude": [".git", ".claude", ".repo-orchestrator", "node_modules"]
  }
}

If mode is "auto": List all immediate subdirectories of root. Keep the ones that contain a .git directory (or are listed in .git/modules, indicating a submodule). Remove any directory whose name appears in exclude.

If mode is "list": Use the repos array as-is. Do not scan. For any entry whose path starts with a URL (e.g., https://):

  • Ask the user explicitly: "Clone <url> into <local-path>? This requires a network connection and will write to your filesystem. [y/N]"
  • Do not clone without explicit confirmation.

If no repos are discovered, stop: "No git repositories found as immediate subdirectories of <root>. Check your workspace layout or switch to mode: list in .repo-orchestrator/config.json."


Step 2 — Index each repo

For each discovered repo, try the Tier-1 indexer first:

node indexer/dist/index.js <repoPath>

If this command succeeds (exit code 0), parse the JSON output as facts. If it fails or the file does not exist, fall back to Tier-0 indexing using the repo-indexing skill (skills/repo-indexing/SKILL.md).

Apply the budget rule from that skill. Do not read every file. Extract: languages, frameworks, owns, endpoints, emits, consumes, dependsOn, providesTo, fingerprint.

Read the full file on GitHub · 261 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. 10d ago First seen · 261 lines · 53 tokens per session scan A 2a5a020dd77b

Subscribe to this mod's changes

repo-orch-init is a command published in the GitHub repository architonixlabs/RepoOrch (3 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 2,419 once invoked, about $0.0003 per session on Opus 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-08-31.