quarry CLAUDE.md

quarry CLAUDE.md is an instructions file for Claude Code from punt-labs/quarry. It costs 8,428 tokens per session, scanned A, original, MIT.

A set of project instructions for Quarry, a local semantic search system that indexes documents and stores searchable vector representations. It explains how queries and document ingestion work.

In plain words
What is it for?
Working on document indexing, local search, embeddings, LanceDB storage, and the MCP service that exposes Quarry.
Why use it?
It helps an agent understand the repository's required setup, search pipeline, and coding standards before making changes.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/punt-labs/quarry/claude-md.svg)](https://agentmods.dev/instructions/punt-labs/quarry/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/punt-labs/quarry/claude-md"><img src="https://agentmods.dev/badge/instructions/punt-labs/quarry/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 8,428 This file is loaded in full into every session.
When invoked 8,428 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.08428 $0.08428
Opus 5 $0.04214 $0.04214
Sonnet 5 $0.01686 $0.01686
Haiku 4.5 $0.00843 $0.00843

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

Security

Grade A, and why

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

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

How it starts

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

Quarry

Part of Punt Labs. This repo must be checked out inside the punt-labs/ workspace meta-repo so that org-wide configuration loads via Claude Code's ancestor directory walk:

  • punt-labs/CLAUDE.md — org workflow, delegation model, beads issue tracking, tool configuration
  • punt-labs/.claude/rules/python-*.md — 19 Python OO coding rules, scoped via paths: frontmatter (load on-demand when .py files are touched)
  • punt-labs/.envrc — git identity, beads DB connection, API keys from platform keychain
  • punt-kit/standards/ — canonical reference docs

If cloned outside the workspace, these rules and configuration will not be present.

OO Python standards adopted 2026-05-13. The codebase does not yet fully comply. Every commit must improve OO scores (make check-oo), never regress. Do not match existing code patterns that violate the rules — write new code to the standard and improve touched files incrementally.

Local semantic search for AI agents and humans. Indexes 20+ document formats, embeds with a local ONNX model (snowflake-arctic-embed-m-v1.5, 768-dim), stores vectors in LanceDB, serves via MCP (stdio or WebSocket daemon on port 8420).

  • Package: punt-quarry
  • CLI: quarry
  • MCP server: quarry mcp (stdio) or mcp-proxy → daemon (/mcp WebSocket); there is no quarry-server entry point
  • Python: 3.13+, managed with uv

Mandatory Reading

Source-of-truth documents, @-imported so they stay in context. Read them before writing code.

  • docs/WORKFLOW.md is the authoritative development process: three nested loops (backlog → PR → mission), each with pseudocode for its control flow and a Z schema for its entry/exit doorway conditions. The Development Loop section below is a pointer to it, not a second copy.
  • DESIGN.md is the ADR log (DES-001+); on any conflict about settled architecture, it wins. Read it before proposing changes.

Read the full file on GitHub · 290 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 Changed · +1 lines · +312 tokens per session 977a2bc7241c
  2. 6d ago First seen · 289 lines · 8,116 tokens per session scan A b21277cbab9b

Subscribe to this mod's changes

quarry CLAUDE.md is an instructions file published in the GitHub repository punt-labs/quarry (3 stars, last pushed yesterday), licensed MIT. It adds 8,428 tokens to every session, about $0.0421 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.

Related

Other instructions, from other repositories

mcp-documentation-server copilot-instructions.md

Instructions for andrea9293/mcp-documentation-server, covering mcp documentation server - ai coding agent instructions, architecture overview, core components, server entry point (src/server.ts) and embedding providers (src/embedding-provider.ts).

andrea9293/mcp-documentation-server · 1,147 tokens

notebooklm-skill copilot-instructions.md

Instructions for claude-world/notebooklm-skill: This Python project provides a JSON-first CLI, five async pipelines, and 13 MCP tools for NotebookLM. Keep all notebooklm-py API adaptation in scripts/common.py so the three public surfaces stay consistent. Follow the Ruff and mypy configuration, use typed async code…

claude-world/notebooklm-skill · 89 tokens

rag-rat AGENTS.md

Instructions for cq27-dev/rag-rat, covering agents.md, prefer the rag-rat mcp for code browsing, record durable learnings as rag-rat memories, repo orientation and worktree correctness.

cq27-dev/rag-rat · 2,971 tokens

obsidian-rag CLAUDE.md

Instructions for thoreinstein/obsidian-rag, covering obsidian-rag, architecture, build, key constraints and data paths.

thoreinstein/obsidian-rag · 677 tokens

local_faiss_mcp CLAUDE.md

Instructions for nonatofabio/local_faiss_mcp, covering claude.md, project overview, architecture, key design principles and development commands.

nonatofabio/local_faiss_mcp · 1,676 tokens

personal-notes-assistant CLAUDE.md

Instructions for coeusyk/personal-notes-assistant, covering personal-notes-assistant, architecture, adding a tool, milvus notes (non-obvious, bit people twice already) and running / testing locally.

coeusyk/personal-notes-assistant · 900 tokens