Crux CLAUDE.md

Crux CLAUDE.md is an instructions file for Claude Code from CueCrux/Crux. It costs 494 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for the Crux daemon, a Rust service with HTTP, gRPC, command-line, retrieval, storage, and receipt-signing components. A workspace is one project containing multiple related Rust packages.

In plain words
What is it for?
Building and testing the Rust workspace, checking code quality, understanding the daemon and CLI components, and working with retrieval, storage, signed receipts, and optional GPU features.
Why use it?
It gives coding agents the build, test, formatting, linting, architecture, and product-boundary rules needed to work safely in a large multi-package codebase.

Instructions file for Claude Code

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

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 instructions/cuecrux/crux/claude-md
Clone the repo
git clone --depth 1 https://github.com/CueCrux/Crux

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cuecrux/crux/claude-md.svg)](https://agentmods.dev/instructions/cuecrux/crux/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/cuecrux/crux/claude-md"><img src="https://agentmods.dev/badge/instructions/cuecrux/crux/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 494 This file is loaded in full into every session.
When invoked 494 The same file — it is already loaded in full.
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.1 $0.00494 $0.00494
Opus 5 $0.00247 $0.00247
Sonnet 5 $0.00099 $0.00099
Haiku 4.5 $0.00049 $0.00049

Measured 5d ago against content hash f51286445da4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Crux CLAUDE.md 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 5d 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.

CLAUDE.md · 36 lines

What it actually says

Crux Daemon — Claude Code Instructions

Scope

These rules apply when working inside the Crux/ repository.

Build & Test

cargo build --release                    # Build Crux Daemon (CPU-only)
cargo test --workspace                   # Run all tests
cargo fmt --check                        # Check formatting
cargo clippy --workspace -- -D warnings  # Lint

Architecture

  • 28 Rust crates in a workspace under crates/ — full atlas: docs/agent/CODEMAP.md (see AGENTS.md for the agent reading order)
  • corecruxd — HTTP (axum, port 14800) + gRPC (tonic) daemon
  • corecruxctl — CLI tool with subcommands
  • corecrux-retrieval — BM25 + graph + dense-cosine signal fusion (CPU path). The dense lane is a free, uncapped local capability via a pluggable DenseProvider (exact CPU cosine in the CE; GPU .ccxe in the dataplane). Better dense (reranking) and extraction are the metered upsell — never a clip on local dense. See ExecPlan dense-lane-and-extraction-upsell-2026-06-26.
  • corecrux-storage — Append-only shard store with sealed segments
  • corecrux-receipts — Ed25519 CROWN receipt signing
  • GPU/CUDA acceleration requires a dataplane-enabled distribution (not included in this repo)

Key Rules

  • No GPU/CUDA code. Crux Daemon is CPU-only. No --features cuda, no CUDA imports, no GPU readiness checks.
  • No proprietary crates. corecrux-analytics, corecrux-decision, corecrux-coordinator do NOT exist in this repo.
  • Licence headers. Every .rs file must start with the Apache-2.0 header (copyright + SPDX-License-Identifier: Apache-2.0). Run ./scripts/check-licence-headers.sh to check.
  • Port 14800. The Crux Daemon HTTP port. Do not change this default.

Licence

Apache License, Version 2.0. See LICENSE. Open source (OSI-approved).

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. 5d ago First seen · 36 lines · 494 tokens per session scan A f51286445da4

Subscribe to this mod's changes

Crux CLAUDE.md is an instructions file published in the GitHub repository CueCrux/Crux (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 494 tokens to every session, about $0.0025 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-31.