lmnr: Instructions file for Claude Code

CLAUDE.md

lmnr CLAUDE.md is an instructions file for Claude Code from lmnr-ai/lmnr. It costs 3,740 tokens per session, scanned A, original, Apache-2.0.

Development guidance for Laminar, an open-source platform that records and evaluates AI-agent activity, with a Rust backend and Next.js web interface in one repository.

In plain words
What is it for?
Use it to navigate the backend, frontend, optional personal-data redaction service, development commands, and testing workflow.
Why use it?
It explains how the repository's services fit together and which parts are publicly available, reducing mistakes when changing or documenting the project.

Instructions file for Claude Code

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

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

About the project

Laminar is an open-source observability platform for AI agents that records and analyzes their traces, events, metrics, and evaluation results. Developers use it to monitor agent behavior, investigate problems, run evaluations, and compare results through its interfaces and tools. The catalogue entries connect coding agents to Laminar for querying traces and debugging.

lmnr-ai/lmnr · 3,474 stars · on GitHub · laminar.sh

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lmnr-ai/lmnr/claude-md"><img src="https://agentmods.dev/badge/instructions/lmnr-ai/lmnr/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,740 This file is loaded in full into every session.
When invoked 3,740 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.03740 $0.03740
Opus 5.5 $0.01496 $0.01496
Sonnet 5.5 $0.00748 $0.00748
Haiku 4.5 $0.00374 $0.00374

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

Security

Grade A, and why

lmnr 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 · 176 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Laminar is an open-source observability platform for AI agents: OpenTelemetry-native tracing, evaluations, AI monitoring, and SQL access to all data.

Repository Structure

Multi-service monorepo:

  • app-server/ — Rust backend (Actix-web HTTP, Tonic gRPC). SQL query validation + JSON↔SQL conversion run in-process (src/query_engine/, built on sqlparser).
  • frontend/ — Next.js/TypeScript web UI.
  • pii-redactor/ — optional standalone Rust gRPC service running a HuggingFace PII model on CPU via ONNX Runtime. See pii-redactor/README.md.

Some features (Signals evaluation, Laminar Agent, clustering) are enterprise-only and live in the private lmnr-private repo behind the signals cargo feature; OSS ships stubs and public scaffolding for them. Don't document them as OSS features.

Development Commands

Frontend (Next.js)

cd frontend
pnpm install        # Install dependencies
pnpm run dev        # Start dev server (Turbopack)
pnpm lint           # oxlint (lint:fix to auto-fix)
pnpm format:write   # oxfmt
pnpm type-check     # TypeScript type checking
pnpm test           # Run tests (tsx --test tests/**/*.test.ts)
pnpm build          # Production build
  • The sandbox's global pnpm is v10 but the lockfile is written by pnpm 12 (.github/workflows/fe-build-check.yml pins 12.14.0, frontend/Dockerfile 12.8.1). pnpm add on v10 rewrites hundreds of (supports-color@…) peer suffixes. Add or bump deps with npx -y [email protected] add <pkg> --lockfile-only, then npx -y [email protected] install --frozen-lockfile to sync node_modules.
  • Format only the files you changed: npx oxfmt --write <files>. prettier is present in node_modules (transitive dep) but is NOT the project formatter — running it reformats files oxfmt then flags in the pre-commit hook.
  • In a fresh checkout, pnpm type-check (and the husky pre-commit hook) fails with TS2307: Cannot find module '@/assets/...svg' errors — next-env.d.ts is gitignored. Fix: npx next typegen (or any next dev/next build run).
  • tsconfig.json sets "incremental": true, so a bare npx tsc --noEmit can report zero errors on files it skipped and give a false green. When verifying a type fix, run npx tsc --noEmit --incremental false (the pre-commit hook does a full check and will catch what you missed otherwise). On an 8 GB box the full check OOMs at Node's default heap; prefix NODE_OPTIONS=--max-old-space-size=8192.
  • pnpm test on a clean dev already has two red tests (after pnpm install --frozen-lockfile, ai 7.0.15): tests/test-ai-sdk-parser.test.ts "skips empty text/reasoning parts" and tests/test-normalize-messages.test.ts "end-to-end: a bare AI-SDK parts array …". Both expect empty text/reasoning parts to be dropped and get 2 parts instead of 1. Pre-existing — git stash -u and re-run before blaming your change.
  • A stale node_modules fakes ~47 "pre-existing" type errors. An installed tree older than pnpm-lock.yaml (e.g. recharts 2.15.4 where the lock pins 3.10.1) makes tsc --noEmit and pnpm build fail on BarStack / MouseHandlerDataParam / useYAxisScale / <YAxis width="auto"> across chart-builder/, charts/, evaluation/, landing/. They look exactly like the recharts v2→v3 debt they are not: pnpm install --frozen-lockfile clears all of them. Verify the install matches the lock before writing any of it off as pre-existing.
  • Turbopack is the Next 16 default for both commands; build opts out with --webpack, dev does not. Turbopack's production output miscompiled chunks (module factory is not available on client navigation). So both bundler blocks in next.config.ts are live, and a production repro needs pnpm build, not a bare next build. next dev generates frontend/AGENTS.md on every run; it is gitignored (do not commit it).
  • frontend/.dockerignore excludes only node_modules and .next, so a local docker build frontend/ ships .env.local into the builder and next build inlines its NEXT_PUBLIC_* values. For a CI-faithful image, build from a copy without it (tar --exclude=./node_modules --exclude=./.next --exclude=./.env.local -cf - . | tar -xf - -C /tmp/ctx). The sandbox has no Docker by default: apt-get install -y docker.io then start dockerd in the background works.

Read the full file on GitHub · 176 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. 3d ago Changed · +3 lines · +346 tokens per session d117b6963ea9
  2. 21d ago Changed · +4 tokens per session 5a7ed005c256
  3. 24d ago Changed · +3 tokens per session e94fd30b201e
  4. 26d ago Changed · +4 lines · +415 tokens per session 3e051fb09956
  5. 1mo ago Changed · +9 lines · +415 tokens per session 90346453368b
  6. 2mo ago Changed · +1 lines · +197 tokens per session 5100591a85a7
  7. 2mo ago First seen · 159 lines · 2,360 tokens per session scan A 0fc4623aa7b6

Subscribe to this mod's changes

lmnr CLAUDE.md is an instructions file published in the GitHub repository lmnr-ai/lmnr (3,474 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,740 tokens to every session, about $0.0150 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-30.

Related

lmnr CLAUDE.md compared with instructions from other repositories

lmnr CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lmnr CLAUDE.mdlmnr-ai/lmnrInstructions file3.5kyesterdayApache-2.0A3,740Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode