Borrowing it
Nothing to install: this file belongs to tacyan/zaivern-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tacyan/zaivern-code/main/CLAUDE.mdgit clone --depth 1 https://github.com/tacyan/zaivern-codeWrote 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.
[](https://agentmods.dev/instructions/tacyan/zaivern-code/claude-md)<a href="https://agentmods.dev/instructions/tacyan/zaivern-code/claude-md"><img src="https://agentmods.dev/badge/instructions/tacyan/zaivern-code/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.
<a href="https://agentmods.dev/instructions/tacyan/zaivern-code/claude-md"><img src="https://agentmods.dev/badge/instructions/tacyan/zaivern-code/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.19910 | $0.19910 |
| Opus 5.5 | $0.07964 | $0.07964 |
| Sonnet 5.5 | $0.03982 | $0.03982 |
| Haiku 4.5 | $0.01991 | $0.01991 |
Grade C, and why
zaivern-code CLAUDE.md scanned grade C with 2 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 1mo 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
(curl | sh / irm | iex) が一度も見ていなかった**。作っているのに使っていない Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
(curl | sh / irm | iex) が一度も見ていなかった**。作っているのに使っていない How it starts
The opening of the file, as written. The whole thing — 696 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — Zaivern Code 開発ガイド(AIエージェント向け)
このファイルはリポジトリで作業する全ての AI エージェント/開発者が最初に読むこと。
絶対ルール
- ハードコーディング禁止。 どの環境(macOS / Windows / Linux、任意のユーザー名・ホーム・ロケール)でも動くコードのみ。
- パスは
std::env::temp_dir()/dirsクレート / 設定から導出。/tmp・/Users/...・C:\の直書き禁止。 - OS 差分は
cfg!(windows)等で分岐し、両側を実装する。 - エージェント固有値(resume フラグ、コマンド名等)は
agents.rsのカタログにデータとして持つ。
- パスは
- egui 0.29 固定(アップグレード禁止)・rustc 1.88+。
- 道具は Rust に置く。シェル (
tools/*.sh) までは可。Python は置かない。 検証・生成・変換の道具を.pyで書くと、リポジトリに第 2 の言語と第 2 の 実行環境が増える(どの python か・依存はあるか・Windows で動くか)。 Rust ならzai <sub>として利用者にもそのまま渡せて、番人テストと同じ実装を 共有できる(2 つ持つとずれて、番人が緑なのに製品が壊れている嘘が出る)。- 実例: 翻訳の保守は
zai i18n missing/apply/check。走査と エスケープ解除はsrc/locale.rsのscan_source_literals/unescape_rust1 か所だけを、CLI とテストの両方が呼ぶ - 一度きりの作業スクリプトはリポジトリの外(scratchpad)で書き捨てる
- 実例: 翻訳の保守は
- vendor/vt100 はパッチ済みベンダリング。
visible_rows修正を外すと deep scrollback で debug パニックが再発する。バージョンアップ時は必ずパッチを移植。 - リリースは checksums.txt を必ず作り、インストーラは必ずそれを検証する。
release.ymlの checksums ジョブ (5 ターゲット + install.sh + install.ps1 + SBOM = 8 行、 形式検査つき fail-closed) と、install.shのverify_checksum/install.ps1のTest-Checksumは対である。片方だけ外してはいけない。- 検証は展開の前(
tar xzf/Expand-Archiveより前)。書き出してから 気付いても、そのファイルはもうディスクにある - 取得失敗・行が無い・道具が無い・不一致 — どの理由でも中止する。 「確かめられなかったので、とりあえず入れた」は検証していないのと同じ
- 番人は
cli::tests::インストーラは展開前にsha256を検証するとcli::tests::検証できないときは中止する。落ちたら直すのは実装であってテストではない - 0.16.0 まで checksums.txt は生成されていたのに、最重要の自動インストール経路 (curl | sh / irm | iex) が一度も見ていなかった。作っているのに使っていない チェックサムは、作っていないのと同じ意味しか持たない
- 検証は展開の前(
- main へ直接コミットしない。作業はブランチ+隔離ワークツリー(
.claude/worktrees/)で行う(複数の AI エージェントが同時編集する前提)。 - 統合したワークツリーは即座に消す。 ブランチが統合先の祖先になった時点で
git worktree remove+git branch -Dまで行う。各ワークツリーは独立したtarget/を持つため、放置すると1つあたり数 GB積み上がる (実測: 15 個で 47GB)。ディスクだけの問題ではなく、ページキャッシュが 押し出されてテスト実行が数倍遅くなる。 git stashを使わない。 stash スタックは全ワークツリーで共有されるため、 同時に動いている別のインスタンスの退避を巻き込む。退避が要るなら WIP コミットを切る。- UI から到達できない実装は「未完成」。 完了報告の前に
cargo checkのnever used警告を必ず確認し、自分が追加した公開関数・型・コマンドが 実際に呼ばれていることを確かめる。この警告は「作ったのに繋いでいない」の検出器である。 到達経路(パレット / メニュー / ボタン / キーバインドのいずれか)を必ず1つ以上用意し、 用意できないなら README には機能として書かず、未完項目として残す。 - 機能を増やす前に減らせないかを考える。 同じ操作への到達経路が3つあるなら 2つ削る。常に0を表示するバッジ、中身より空状態を見せる時間が長いパネル、 ツールバーとヘッダで重複するボタンは、実装した本人が消す。
- 新しい機能は
src/features/<名前>.rsを新規作成するだけで足す。app.rs/palette.rs/feature.rs/main.rsを編集しない。
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.
- 1mo ago First seen · 696 lines · 19,910 tokens per session scan C 9bb1c4af72eb
zaivern-code CLAUDE.md is an instructions file published in the GitHub repository tacyan/zaivern-code (58 stars, last pushed 27d ago), licensed Apache-2.0. It adds 19,910 tokens to every session, about $0.0796 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.