cargo-pkgid

cargo-pkgid is a command for Claude Code from olorehq/olore. It costs 0 tokens per session (2,575 once invoked), scanned A, original, MIT.

A Cargo command that prints the complete identifier for a Rust package or dependency. Cargo is Rust’s tool for building projects and managing their packages.

In plain words
What is it for?
Use it to identify a package in a Rust workspace or dependency graph, either by giving a package specification or using the local package.
Why use it?
It removes guesswork when a package name is ambiguous by showing its name, version, and source location.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to identify a package in a Rust workspace or dependency graph, either by giving a package specification or using the local package.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/olorehq/olore/cargo-pkgid
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/olorehq/olore

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 cargo-pkgid

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/olorehq/olore/cargo-pkgid"><img src="https://agentmods.dev/badge/commands/olorehq/olore/cargo-pkgid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02575
Opus 5.5 $0.00000 $0.01030
Sonnet 5.5 $0.00000 $0.00515
Haiku 4.5 $0.00000 $0.00258

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

Security

Grade A, and why

cargo-pkgid scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

See the <a href="cargo-fetch.html">cargo-fetch(1)</a> command to download dependencies before going
vault/packages/cargo/latest/contents/commands/cargo-pkgid.md · 213 lines

How it starts

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

cargo-pkgid(1)

NAME

cargo-pkgid --- Print a fully qualified package specification

SYNOPSIS

cargo pkgid [options] [spec]

DESCRIPTION

Given a spec argument, print out the fully qualified package ID specifier for a package or dependency in the current workspace. This command will generate an error if spec is ambiguous as to which package it refers to in the dependency graph. If no spec is given, then the specifier for the local package is printed.

This command requires that a lockfile is available and dependencies have been fetched.

A package specifier consists of a name, version, and source URL. You are allowed to use partial specifiers to succinctly match a specific package as long as it matches only one package. This specifier is also used by other parts in Cargo, such as cargo-metadata(1) and [JSON messages] emitted by Cargo.

The format of a spec can be one of the following:

SPEC Structure Example SPEC
name bitflags
name@version [email protected]
url https://github.com/rust-lang/cargo
url#version https://github.com/rust-lang/cargo#0.33.0
url#name https://github.com/rust-lang/crates.io-index#bitflags
url#name@version https://github.com/rust-lang/cargo#[email protected]

The specification grammar can be found in chapter [Package ID Specifications].

OPTIONS

Package Selection

Display Options

Read the full file on GitHub · 213 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. 3mo ago First seen · 213 lines · 0 tokens per session scan A dbd4817a8968

Subscribe to this mod's changes

cargo-pkgid is a command published in the GitHub repository olorehq/olore (119 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,575 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cargo-pkgid compared with commands from other repositories

cargo-pkgid next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cargo-pkgidolorehq/oloreCommand119todayMITA0Claude Code
fastakillness/jeo-skillsCommand63yesterdayMITA17Claude Code
generate-docsd-oit/rust-2026-templateCommand152d agoMITA0Claude Code, OpenCode
rust-reviewactionbook/rust-skillsCommand1.6k3mo agononeA0Claude Code
rust-featuresactionbook/rust-skillsCommand1.6k3mo agononeA0Claude Code
reviewoutfitter-dev/blzCommand293mo agoMITA8Claude Code
ai-dailykikakkz/wait-agentCommand2418d agononeA0Claude Code