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.
npx agentmods add commands/paiml/rust-mcp-sdk/agentgit clone --depth 1 https://github.com/paiml/rust-mcp-sdkWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01140 |
| Opus 5 | $0.00000 | $0.00570 |
| Sonnet 5 | $0.00000 | $0.00228 |
| Haiku 4.5 | $0.00000 | $0.00114 |
Grade A, and why
agent 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cargo pmcp agent
Scaffold and run deploy-anywhere agents (an agent is an MCP client with a loop).
Usage
cargo pmcp agent <SUBCOMMAND>
Description
An agent is a pmcp-agent loop that drives a completion source (an LLM) against a
set of tools. cargo pmcp agent is the on-ramp for building and running one — it
mirrors the server story (new to scaffold, dev to run locally), so the same
muscle memory carries over.
agent newscaffolds a compilable agent crate: anAgentPackagemanifest (agent.package.json), a manifest-driven runner, the full dependency set, and an in-scaffold version-pin tripwire test againstpmcp-agent.agent devruns the loop locally against an OpenAI-compatible endpoint, a sampling host, or an offline fixed source.
An agent deploys through the existing target adapters — an agent-as-server is just a
server binary, so cargo pmcp deploy applies once you wrap it.
Subcommands
| Subcommand | Description |
|---|---|
new |
Scaffold a new agent package (AgentPackage manifest + runnable crate) |
dev |
Run an agent loop against a completion source |
agent new
Scaffold a runnable agent crate at ./<name> (or <path>/<name>). The emitted
crate compiles as-is: it loads its own agent.package.json, drives AgentEngine,
and ships a tests/pin.rs tripwire that fails if the generated pmcp-agent pin
drifts.
cargo pmcp agent new <NAME> [--path <DIR>] [--force]
Options
| Option | Description |
|---|---|
<NAME> |
Name of the agent package to scaffold (positional, required; validated as a Cargo crate name) |
--path <DIR> |
Parent directory to create the package in (defaults to the current dir, so the package lands at ./<name>) |
--force |
Overwrite an existing non-empty destination directory. A symlinked or file destination is always refused |
Example
$ cargo pmcp agent new demo_agent
✓ Agent package created successfully!
🚀 Next Steps (deploy-anywhere agent):
1. Enter your package:
cd demo_agent
2. Run it (drives the agent loop; edit agent.package.json to point at your model):
cargo run
3. Verify the pin tripwire stays green:
cargo test --test pin
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.
- 2d ago First seen · 123 lines · 0 tokens per session scan A 91b8feb5090f
agent is a command published in the GitHub repository paiml/rust-mcp-sdk (53 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,140 tokens. 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-30.
Other commands, from other repositories
reflection
Systematically analyze recent interactions and improve Claude Code's configuration, commands, and instructions based on observed patterns and issues.
bootstrap
PACT session-start ritual — identify the session team (platform-provisioned), secretary spawn, paused-state surface, bootstrap marker.
ox-session-review
Command "ox-session-review" from sageox/ox, covering failure-mode watch-list (read first), from the ledger root. should print 0, phase 1 — scan & score (read-only), quality buckets (first match wins) and removal candidates.
add-agent
引导新增一个 Agent 适配器。用法 /add-agent.
handoff
Package current state for the next agent.
add-skill
Scaffold a new skill with validation, plugin generation, and README update.