cship CLAUDE.md

cship CLAUDE.md is an instructions file for coding agents from stephenleo/cship. It costs 427 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for cship, an AI-agent tool written in Rust. It documents the project's required code patterns, environment quirks, and submission rules.

In plain words
What is it for?
Use it when editing cship modules, handling missing data, adding configuration, or checking code before submitting a pull request.
Why use it?
It gives coding agents the project-specific rules they need to make compatible changes and avoid known mistakes.

Instructions file

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/stephenleo/cship/claude-md
Clone the repo
git clone --depth 1 https://github.com/stephenleo/cship

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stephenleo/cship/claude-md.svg)](https://agentmods.dev/instructions/stephenleo/cship/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stephenleo/cship/claude-md"><img src="https://agentmods.dev/badge/instructions/stephenleo/cship/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 427 This file is loaded in full into every session.
When invoked 427 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 $0.00427 $0.00427
Opus 5 $0.00214 $0.00214
Sonnet 5 $0.00085 $0.00085
Haiku 4.5 $0.00043 $0.00043

Measured 3d ago against content hash d82787c93316, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cship 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 3d 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 · 22 lines

What it actually says

cship — AI Agent Instructions

Environment Quirks

  • WSL2 ENOENT race: after any cargo init or file write, verify content with Read before proceeding

Non-Negotiable Code Patterns

  • Module interface (never deviate): pub fn render(ctx: &Context, cfg: &CshipConfig) -> Option<String>
  • Disabled flag → silent None (no warn); absent data → explicit match + tracing::warn! + None
    • Exception: context_bar intentionally renders a 0% empty bar (styled via empty_style) when context_window is absent, rather than returning None. This is a deliberate UX choice — showing an empty bar is more informative than showing nothing. It uses tracing::debug! (not warn!) because absence is the normal state at session start.
  • Never use ? operator on paths that require a warning — use explicit match
  • stdout owned by main.rs only; all module diagnostics via tracing::* macros; no eprintln! anywhere
  • Exception: CLI-action subcommands (e.g. uninstall, explain) may use println! directly — the stdout rule applies to the rendering pipeline only
  • All config structs: #[derive(Debug, Deserialize, Default)], all fields pub Option<T>
  • Never add deny_unknown_fields to any struct — omitted intentionally on both Context and config structs so future versions can add fields without breaking deserialization

Before Submitting a PR

  • Follow all guidelines in CONTRIBUTING.md before opening or updating a pull request

Project Structure

  • Adding a native module: create src/modules/{name}.rs + update src/modules/mod.rs only (2 files max)
  • Config structs → src/config.rs only; ANSI logic → src/ansi.rs only; threshold styling → ansi::apply_style_with_threshold
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. 3d ago First seen · 22 lines · 427 tokens per session scan A d82787c93316

Subscribe to this mod's changes

cship CLAUDE.md is an instructions file published in the GitHub repository stephenleo/cship (417 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 427 tokens to every session, about $0.0021 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.