pack-remote

pack-remote is a command for Claude Code from yamadashy/repomix. It costs 8 tokens per session (990 once invoked), scanned A, a copy of pack-local, MIT.

A command for downloading and analyzing a GitHub repository, a code project hosted online, with Repomix.

In plain words
What is it for?
Use it to pack a repository from an owner/name pair or URL, including a chosen branch, tag, commit, file pattern, or output format.
Why use it?
It removes the manual work of choosing the repository, branch, output format, compression, and file filters.

Command for Claude Code

Part of the repomix-commands plugin — 2 commands shipped together

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.

agentmods
npx agentmods add commands/yamadashy/repomix/pack-remote
Clone the repo
git clone --depth 1 https://github.com/yamadashy/repomix

Made for: Claude Code.

Or install repomix-commands, the plugin that ships this one along with the rest of its 2 commands.

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 pack-remote

README.md
[![agentmods](https://agentmods.dev/badge/commands/yamadashy/repomix/pack-remote.svg)](https://agentmods.dev/commands/yamadashy/repomix/pack-remote)
Your own site
<a href="https://agentmods.dev/commands/yamadashy/repomix/pack-remote"><img src="https://agentmods.dev/badge/commands/yamadashy/repomix/pack-remote.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% 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 $0.00008 $0.00990
Opus 5 $0.00004 $0.00495
Sonnet 5 $0.00002 $0.00198
Haiku 4.5 $0.00001 $0.00099

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

Security

Grade A, and why

pack-remote 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

91% identical to pack-local — 69 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.

.claude/plugins/repomix-commands/commands/pack-remote.md · 107 lines

How it starts

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

Fetch and analyze a GitHub repository using Repomix.

When the user asks to pack a remote repository, analyze their request and run the appropriate repomix command.

User Intent Examples

The user might ask in various ways:

  • "Pack the yamadashy/repomix repository"
  • "Analyze facebook/react from GitHub"
  • "Pack https://github.com/microsoft/vscode"
  • "Pack react repository with compression"
  • "Pack only TypeScript files from the Next.js repo"
  • "Analyze the main branch of user/repo"

Your Responsibilities

  1. Understand the user's intent from natural language
  2. Extract the repository information:
    • Repository URL or owner/repo format
    • Specific branch, tag, or commit (if mentioned)
  3. Determine the appropriate options:
    • Output format: xml (default), markdown, json, or plain
    • Whether to compress (for large codebases)
    • File patterns to include/ignore
    • Additional features (copy to clipboard)
  4. Execute the command with: npx repomix@latest --remote <repo> [options]

Supported Repository Formats

  • owner/repo (e.g., yamadashy/repomix)
  • https://github.com/owner/repo
  • https://github.com/owner/repo/tree/branch-name
  • https://github.com/owner/repo/commit/hash

Available Options

  • --style <format>: Output format (xml, markdown, json, plain)
  • --include <patterns>: Include only matching patterns (e.g., "src//*.ts,/*.md")
  • --ignore <patterns>: Additional ignore patterns
  • --compress: Enable Tree-sitter compression (~70% token reduction)
  • --output <path>: Custom output path
  • --copy: Copy output to clipboard

Command Examples

Based on user intent, you might run:

# "Pack yamadashy/repomix"
npx repomix@latest --remote yamadashy/repomix

# "Analyze facebook/react"
npx repomix@latest --remote https://github.com/facebook/react

# "Pack the develop branch of user/repo"
npx repomix@latest --remote https://github.com/user/repo/tree/develop

# "Pack microsoft/vscode with compression"
npx repomix@latest --remote microsoft/vscode --compress

# "Pack only TypeScript files from owner/repo"
npx repomix@latest --remote owner/repo --include "src/**/*.ts"

# "Pack yamadashy/repomix as markdown and copy to clipboard"
npx repomix@latest --remote yamadashy/repomix --copy --style markdown

Read the full file on GitHub · 107 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 · 107 lines · 8 tokens per session scan A 2c25cb9ca0e3

Subscribe to this mod's changes

pack-remote is a command published in the GitHub repository yamadashy/repomix (28,180 stars, last pushed today), licensed MIT. It adds 8 tokens to every session and 990 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to pack-local, differing in 69 lines, and is treated as a copy.