labrat: Instructions file for Claude Code

CLAUDE.md

labrat CLAUDE.md is an instructions file for Claude Code from ProjectDXAI/labrat. It costs 619 tokens per session, scanned A, a copy of labrat AGENTS.md, MIT.

Repository instructions for Labrat, a tool that creates and manages research workspaces called labs. They identify the source documents and the files generated into each lab for Claude Code and Codex.

In plain words
What is it for?
Use them when maintaining Labrat, editing its templates, changing generated-lab files, updating documentation, or keeping Claude Code and Codex support in sync.
Why use it?
They keep the two coding-agent interfaces aligned and prevent generated labs from missing the instructions, skills, commands, or prompts needed to operate.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/projectdxai/labrat/claude-md"><img src="https://agentmods.dev/badge/instructions/projectdxai/labrat/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 619 This file is loaded in full into every session.
When invoked 619 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 92% copy Near-identical to another mod 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.00619 $0.00619
Opus 5.5 $0.00248 $0.00248
Sonnet 5.5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

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

Security

Grade A, and why

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

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.

Origin

This is a copy

92% identical to labrat AGENTS.md — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 44 lines

How it starts

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

labrat repo

This is the repository root, not a runnable lab directory.

Use this file when working on labrat itself from Claude Code.

If Claude Code is opened inside a nested lab that has its own CLAUDE.md, follow the lab-local file for runtime operation. This root file governs repo maintenance, scaffold consistency, releases, and docs.

Source Of Truth

  • Product/setup docs: README.md, program.md, docs/getting-started.md, docs/runners.md, docs/MODEL_GUIDANCE.md
  • Scaffolded lab UX: templates/AGENTS.md, templates/CLAUDE.md, templates/.agents/skills/, templates/.claude/commands/, templates/agent_prompts/
  • Canonical example lab: examples/nlp-sentiment/research_lab/
  • Packaging/versioning: pyproject.toml, labrat/__init__.py, CHANGELOG.md

Interface Rules

  • Keep Claude Code and Codex first-class. If a lab gets one operator surface, add the matching one for the other interface.
  • Generated labs should ship AGENTS.md, .agents/skills/, CLAUDE.md, .claude/commands/, and agent_prompts/.
  • Keep CLAUDE.md durable and command-focused. Put shared phase details in agent_prompts/.
  • Do not require a hidden local setup for basic operation. The runnable contract should live in the repo.
  • When operator guidance changes, keep templates, the canonical example lab, and the docs in sync.
  • Prefer labrat ... examples in docs when working from the repo root. Keep the copied scripts/*.py flow valid inside labs.

Frontier Model Rules

  • Use docs/MODEL_GUIDANCE.md for model and prompt-process updates.
  • GPT-5.5 is a Codex host selection, not a lab runtime constant. Do not hardcode API model IDs into labrat for Codex usage.
  • Prefer explicit completion and verification contracts over broad encouragement.
  • Reserve high reasoning effort for design, audit, frame break, profile authoring, and release work.

Checks

  • . .venv/bin/activate && labrat doctor --lab-dir examples/nlp-sentiment/research_lab
  • . .venv/bin/activate && labrat next-prompt --lab-dir examples/nlp-sentiment/research_lab --runner claude --phase auto
  • . .venv/bin/activate && labrat next-prompt --lab-dir examples/nlp-sentiment/research_lab --runner codex --phase auto
  • . .venv/bin/activate && make smoke

Read the full file on GitHub · 44 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. 1mo ago First seen · 44 lines · 619 tokens per session scan A 70fa6de9c21c

Subscribe to this mod's changes

labrat CLAUDE.md is an instructions file published in the GitHub repository ProjectDXAI/labrat (236 stars, last pushed 2mo ago), licensed MIT. It adds 619 tokens to every session, about $0.0025 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to labrat AGENTS.md, differing in 13 lines, and is treated as a copy.

Related

Other instructions, from other repositories