httpjail: Instructions file for Claude Code

CLAUDE.md

httpjail CLAUDE.md is an instructions file for Claude Code from coder/httpjail. It costs 2,442 tokens per session, scanned D, original, CC0-1.0.

A set of project instructions for an agent working on a Rust codebase. It covers streaming proxy performance, build commands, debugging, and rules for writing tests.

In plain words
What is it for?
Use it when developing or reviewing the httpjail project, especially for Rust builds, proxy behavior, timeouts, and unit or integration tests.
Why use it?
It gives the agent project-specific rules so its changes follow the repository's performance, build, and testing expectations.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is coder/httpjail's own configuration. It tells Claude Code how to work on httpjail 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 httpjail configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/ci/actions-runner/_work/httpjail/httpjail.

Reuse

Borrowing it

Nothing to install: this file belongs to coder/httpjail. 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/coder/httpjail/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/coder/httpjail

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coder/httpjail/claude-md"><img src="https://agentmods.dev/badge/instructions/coder/httpjail/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,442 This file is loaded in full into every session.
When invoked 2,442 The same file — it is already loaded in full.
Security scan D 3 findings. 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.02442 $0.02442
Opus 5 $0.01221 $0.01221
Sonnet 5 $0.00488 $0.00488
Haiku 4.5 $0.00244 $0.00244

Measured today against content hash 5512e6e51a7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade D, and why

httpjail CLAUDE.md scanned grade D with 3 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.

Asks for rootmediumPrivilege escalation

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

sudo -E cargo test --test linux_integration

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/httpjail-$BRANCH_NAME

Makes network callslowCapability

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

- Network tests should use `--connect-timeout 5 --max-time 8` for curl commands
CLAUDE.md · 255 lines

How it starts

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

Agent instructions

Performance

All proxying must be done on a streaming basis so that all types of requests are supported at minimal latency and a constant memory overhead.

Any time we need to read a specific number of bytes from the stream (e.g. to determine protocol), we must establish a timeout for the operation.

Timeouts must not preclude long-running connections such as GRPC or WebSocket.

Building

For faster builds during development and debugging, use the fast profile:

cargo build --profile fast

This profile inherits from release mode but uses lower optimization levels and disables LTO for significantly faster build times while still providing reasonable performance.

Testing

When writing tests, prefer pure rust solutions over shell script wrappers.

Important: Shell script based tests (.sh files) should NOT be committed to the repository. They are acceptable for transient testing during development (WIP), but all submitted tests must be written in Rust as either integration or unit tests. This ensures consistency, maintainability, and proper CI integration.

Test Philosophy: Write terse, minimal tests that cover the essential behavior. Avoid verbose test suites with many similar test cases. Each test should have a clear, specific purpose. Prefer 1-2 focused tests over 5-10 comprehensive tests. This keeps the test suite fast and maintainable.

Debugging Test Failures

Prefer logging over temporary scripts for debugging. Tests automatically have tracing enabled via ctor initialization in tests/common/logging.rs. To debug test failures:

  1. Run tests with RUST_LOG=debug cargo test to see detailed logging
  2. Add tracing::debug!() or tracing::info!() statements rather than println! or temporary test files
  3. The logging setup uses try_init() so it won't panic if already initialized

This approach ensures:

  • Debugging information is available in CI logs
  • No temporary files clutter the repository
  • Debugging aids can be left in place without affecting normal test runs

Read the full file on GitHub · 255 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 First seen · 255 lines · 2,442 tokens per session scan D 5512e6e51a7d

Subscribe to this mod's changes

httpjail CLAUDE.md is an instructions file published in the GitHub repository coder/httpjail (961 stars, last pushed 4mo ago), licensed CC0-1.0. It adds 2,442 tokens to every session, about $0.0122 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other instructions, from other repositories

flow-like copilot-instructions.md

Copilot instructions for Rheosoph/flow-like, covering flow-like wasm node development — rust, project overview, build & test, architecture and pin types.

Rheosoph/flow-like · 1,349 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens