hotpath_init

hotpath_init is a skill for Claude Code, Codex from pawurb/hotpath-rs. It costs 88 tokens per session (3,569 once invoked), scanned A, original, MIT.

A setup skill for adding optional performance profiling to a Rust project. Profiling measures where a program spends time, such as in functions, locks, network clients, or input/output.

In plain words
What is it for?
Use it to configure the dependency, feature flag, and profiling markers for supported Rust runtimes and components.
Why use it?
It makes profiling available without adding overhead when the profiling feature is turned off.

Skill for Claude CodeCodex

About the project

hotpath-rs is a Rust profiler that measures where programs spend time, use CPU and memory, wait on I/O, and perform database, HTTP, or asynchronous operations. Rust developers use it to locate performance bottlenecks and inspect timing, allocation, and async-flow data.

pawurb/hotpath-rs · 1,709 stars · on GitHub

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 skills/pawurb/hotpath-rs/hotpath_init
Any agent
npx skills add pawurb/hotpath-rs --skill hotpath_init
Clone the repo
git clone --depth 1 https://github.com/pawurb/hotpath-rs

Made for: Claude Code, Codex.

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 hotpath_init

README.md
[![agentmods](https://agentmods.dev/badge/skills/pawurb/hotpath-rs/hotpath_init.svg)](https://agentmods.dev/skills/pawurb/hotpath-rs/hotpath_init)
Your own site
<a href="https://agentmods.dev/skills/pawurb/hotpath-rs/hotpath_init"><img src="https://agentmods.dev/badge/skills/pawurb/hotpath-rs/hotpath_init.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00088 $0.03569
Opus 5 $0.00044 $0.01784
Sonnet 5 $0.00018 $0.00714
Haiku 4.5 $0.00009 $0.00357

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

Security

Grade A, and why

hotpath_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 today.

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.

skills/hotpath_init/SKILL.md · 167 lines

How it starts

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

Initialize hotpath Profiling

Set up hotpath profiling in the current Rust project. The setup is fully feature-gated: zero compile-time and runtime overhead unless the hotpath feature is explicitly enabled. All macros are noops when the feature is off, so no cfg_attr wrapping is needed.

Steps

1. Inspect the project

  • Find the binary crate(s) and the main function. If there is no main you control (e.g. a library or a test harness), use the HotpathGuardBuilder API instead of #[hotpath::main] (see step 3).
  • Detect the async runtime (tokio, smol, none) and which instrumentable primitives the code uses: channels (tokio::sync::mpsc/oneshot, std::sync::mpsc, crossbeam_channel, flume, async-channel, futures_channel), Mutex and RwLock (std/parking_lot/tokio/async-lock), futures streams, sqlx, diesel, reqwest clients (async only; note which reqwest major - 0.12 or 0.13), axum 0.8 routers (find where the Router is finished and passed to axum::serve), byte-level I/O values implementing std::io::Read/Write or tokio::io::AsyncRead/AsyncWrite (files, sockets, compression codecs).

2. Add the dependency and feature passthrough

In the target crate's Cargo.toml:

[dependencies]
hotpath = "0.25"

[features]
hotpath = ["hotpath/hotpath"]
hotpath-alloc = ["hotpath/hotpath-alloc"]
hotpath-prometheus = ["hotpath/hotpath-prometheus"]

Enable extra hotpath cargo features on the dependency based on what the project uses:

  • tokio - for tokio::sync channel instrumentation, async io! traits (AsyncRead/AsyncWrite), and hotpath::tokio_runtime!() metrics: hotpath = { version = "0.25", features = ["tokio"] }
  • crossbeam - for crossbeam_channel instrumentation
  • futures - for futures_channel instrumentation
  • flume - for flume channel instrumentation
  • async-channel - for async-channel instrumentation
  • parking_lot - for parking_lot RwLock/Mutex instrumentation
  • async-lock - for async-lock RwLock/Mutex instrumentation
  • sqlx - for SQL query profiling via hotpath::sqlx_tracing_layer()
  • diesel - for SQL query profiling via hotpath::instrument_diesel_sql()
  • reqwest-0-12 / reqwest-0-13 - for HTTP request profiling via hotpath::http!(client); pick the feature matching the project's reqwest major version
  • axum-0-8 - for server-side response time profiling per axum 0.8 route via hotpath::axum!(router)

Read the full file on GitHub · 167 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. today Changed · +1 lines 4d9e2d42a182
  2. 5d ago First seen · 166 lines · 88 tokens per session scan A a3b5e92d8c57

Subscribe to this mod's changes

hotpath_init is a skill published in the GitHub repository pawurb/hotpath-rs (1,709 stars, last pushed today), licensed MIT. It adds 88 tokens to every session and 3,569 once invoked, about $0.0004 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-30.