cold-frame: Instructions file for Claude Code

CLAUDE.md

cold-frame CLAUDE.md is an instructions file for Claude Code from coldzero94/cold-frame. It costs 6,909 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for agents working on the Coldframe repository, including its documentation map, test-driven development workflow, and rules that must stay true. Test-driven development, or TDD, means writing checks for expected behavior as part of the coding process.

In plain words
What is it for?
Use it when coding, reviewing changes, or running tests in the Coldframe project.
Why use it?
It keeps work in the repository consistent with its required workflow and design rules.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 cold-frame CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/coldzero94/cold-frame/claude-md"><img src="https://agentmods.dev/badge/instructions/coldzero94/cold-frame/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,909 This file is loaded in full into every session.
When invoked 6,909 The same file — it is already loaded in full.
Security scan A 0 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.06909 $0.06909
Opus 5.5 $0.02764 $0.02764
Sonnet 5.5 $0.01382 $0.01382
Haiku 4.5 $0.00691 $0.00691

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

Security

Grade A, and why

cold-frame 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 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.

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 · 186 lines

How it starts

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

CLAUDE.md — Coldframe (cold-frame)

Operating manual for coding this repo. Rules, not prose. Follow exactly. Coldframe = a local-first, ownable LLM-agent memory layer. One SQLite file holds facts + BM25 + vectors + edges + versions + provenance. Works offline, no key, no server. The moat = token-budget packer + forgetting/consolidation + deterministic conflict resolution, built by hand and proven by deterministic mock-LLM tests (the discipline A-MEM/langmem skipped).


Status — where this repo is

P1–P6 are built (TDD, §2): the offline add→search→conflict/freshness→budget→forgetting/consolidation→procedural→self-edit engine works, with CLI + MCP stdio server + Claude Code plugin + local web UI. ~420 deterministic tests green on a 3.12/3.13 CI matrix (ruff + mypy --strict + pytest + a built-wheel install smoke + a frontend vue-tsc/build/codegen-drift job). The auto-memory loop (recall + capture) is live-verified against real Claude Code (headless claude -p). Hardened by multi-agent review rounds: a bug+quality audit (17 findings — timestamp-width/as_of, jobs dedup-collision recovery, consolidation atomicity, compaction-rescan resurrection, …), and an independent review of the post-audit features (edge channel / FADING_EMBER / PII) that caught 2 critical leaks (edge surfacing quarantined/cross-scope notes; PII left in FTS-indexed keywords/context) — all fixed + CI-verified.

NOT done — genuine, known gaps (don't claim otherwise): privacy/security per D25 is PARTIAL — obvious secrets BLOCKed pre-disk; PII redaction (email/phone/card/ssn) built but OPT-IN (Memory(pii_redact=…) / add --redact-pii); at-rest encryption was REMOVED (ADR-D29, 2026-07-03, reverses D27's "keep dormant" — ~0 value for a local single-user file; keep ~/.cold-frame/memory.db on an OS-encrypted disk instead). The admission path is a deterministic secret-BLOCK only (WriteCore._admission_block = scan_secret; zero LLM calls). The old LOCAL-only LLM tiebreak for the ambiguous [4.0,4.5) band was REMOVED (ADR-I7-cut, 2026-07-01): dead in prod (no local LLM ships — ClaudeCliLLM is remote) + it fail-closed-BLOCKed legit facts carrying a high-entropy token. assert_local_for/LOCAL_ONLY_TASKS/ADMISSION_TIEBREAK are gone; PolicyError stays as a hierarchy/MCP-map seam. The same ADR's v1 surface trim (D27) also landed: the search-time edge recall channel, derive_tags, and the CLI/MCP rerank surface were CUT (edge rows, programmatic rerank=True, as_of rewind, and the Vue UI dashboard were KEPT and shipped). Now BUILT: configurable confidence-gate + opt-in require_consent hold (Memory(confidence_gate=…, require_consent=…), centralized in WriteCore._consent_gate → held for Triage approval); idempotent event-log replay import (cold-frame import … --events / Memory.import_events, LWW-by-HLC, I17). The remote-extraction exposure is NARROWED: write/extract scans raw chat and falls back to LOCAL naive extraction when an obvious secret / ambiguous span is present, so it never reaches a remote extractor (residual: a non-pattern secret the deterministic scan misses). Still NOT built (deferred v1.1/hosted): cross-device conflict resolution beyond last-writer-wins. (At-rest encryption + per-note crypto-shred are not deferred but REMOVED — ADR-D29.) Distribution is via a Homebrew tap + GitHub Release binaries, NOT PyPI (ADR-D28; D19 name locked). Never silently diverge from a contract — change it with an ADR in docs/decisions.md.

Read the full file on GitHub · 186 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 · 186 lines · 6,909 tokens per session scan A ab1f455af83c

Subscribe to this mod's changes

cold-frame CLAUDE.md is an instructions file published in the GitHub repository coldzero94/cold-frame (0 stars, last pushed 6d ago), licensed Apache-2.0. It adds 6,909 tokens to every session, about $0.0276 per session on Opus 5.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.

Related

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).

microsoft/vscode · 9,715 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,461 tokens

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).

microsoft/vscode · 5,262 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,680 tokens

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).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens