ftr: Instructions file for Claude Code

CLAUDE.md

ftr CLAUDE.md is an instructions file for Claude Code from dweekly/ftr. It costs 1,814 tokens per session, scanned B, original, MIT.

Repository instructions for ftr, a Rust tool and library that traces the route network packets take to a destination. It sends several network checks at once and can also look up network names, addresses, and segments.

In plain words
What is it for?
Use it when changing the traceroute command or Rust library, running tests and formatting checks, or preparing cross-platform builds.
Why use it?
Network troubleshooting can be slow and the project has specific Rust version, formatting, testing, and release requirements. These instructions collect the commands and compatibility details contributors need.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is dweekly/ftr's own configuration. It tells Claude Code how to work on ftr itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ftr configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dweekly/ftr. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dweekly/ftr/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/dweekly/ftr

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 ftr CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dweekly/ftr/claude-md/github.svg)](https://agentmods.dev/instructions/dweekly/ftr/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dweekly/ftr/claude-md"><img src="https://agentmods.dev/badge/instructions/dweekly/ftr/claude-md/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 ftr CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dweekly/ftr/claude-md"><img src="https://agentmods.dev/badge/instructions/dweekly/ftr/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,814 This file is loaded in full into every session.
When invoked 1,814 The same file — it is already loaded in full.
Security scan B 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.01814 $0.01814
Opus 5.5 $0.00726 $0.00726
Sonnet 5.5 $0.00363 $0.00363
Haiku 4.5 $0.00181 $0.00181

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

Security

Grade B, and why

ftr CLAUDE.md scanned grade B 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo cargo run -- google.com # Run CLI (requires root on Unix)
CLAUDE.md · 139 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

ftr (Fast TRaceroute) is a high-performance parallel ICMP traceroute written in Rust. It sends probes concurrently for ~10x speedup over traditional traceroute, with automatic ASN lookup, reverse DNS, public IP detection via STUN, and network segment classification. Available as both a CLI tool and a Rust library. Cross-platform: Linux, macOS, Windows, FreeBSD, OpenBSD.

  • Version: 0.10.0 (keep in sync with Cargo.toml)
  • MSRV: 1.85.0 (keep in sync with rust-version in Cargo.toml)
  • Rust Edition: 2024
  • License: MIT
  • Repo: github.com/dweekly/ftr

Build & Test Commands

cargo build                              # Debug build
cargo build --release                    # Release build (LTO, stripped)
cargo test                               # All tests
cargo test --lib                         # Unit tests only
cargo test <test_name>                   # Single test by name
cargo test --test <file>                 # Single integration test file
cargo fmt -- --check                     # Check formatting (CI enforced)
cargo clippy -- -D warnings             # Lint — warnings are errors in CI
cargo audit                              # Security vulnerability check
cargo machete                            # Unused dependency check
cargo doc --no-deps --all-features       # Build docs (RUSTDOCFLAGS=-Dwarnings in CI)
cargo bench                              # Benchmarks (criterion)
sudo cargo run -- google.com             # Run CLI (requires root on Unix)
sudo cargo run -- --json --max-hops 20 google.com  # JSON output

Git Hooks (required)

Install before committing — they enforce fmt and clippy locally:

git config core.hooksPath .githooks

Compliance & Release Scripts

.githooks/check-compliance.sh            # Full local compliance check
.githooks/release-checklist.sh           # Pre-release validation
.githooks/install-tools.sh               # Install dev tools (audit, machete, etc.)

Read the full file on GitHub · 139 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. 2mo ago First seen · 139 lines · 1,814 tokens per session scan B 55a889acdfec

Subscribe to this mod's changes

ftr CLAUDE.md is an instructions file published in the GitHub repository dweekly/ftr (11 stars, last pushed 22d ago), licensed MIT. It adds 1,814 tokens to every session, about $0.0073 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ftr CLAUDE.md compared with instructions from other repositories

ftr CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ftr CLAUDE.mddweekly/ftrInstructions file1122d agoMITB1,814Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode