lmnr CLAUDE.md

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

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/lmnr-ai/lmnr/claude-md
Clone the repo
git clone --depth 1 https://github.com/lmnr-ai/lmnr
Per session 2,360 This file is loaded in full into every session.
When invoked 2,360 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 $0.02360 $0.02360
Opus 5 $0.01180 $0.01180
Sonnet 5 $0.00472 $0.00472
Haiku 4.5 $0.00236 $0.00236

Measured yesterday against content hash 0fc4623aa7b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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

How it starts

The opening of the file, as written. The whole thing — 159 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 with Turbopack
pnpm lint           # Check linting (lint:fix to auto-fix)
pnpm format:write   # Format with Prettier
pnpm type-check     # TypeScript type checking
pnpm test           # Run tests (tsx --test tests/**/*.test.ts)
pnpm build          # Production build
  • 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).

Backend (Rust)

cd app-server
cargo r                    # Run in development mode
cargo build --release      # Production build
cargo test -- --nocapture  # Run tests

Read the full file on GitHub · 159 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. yesterday 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,212 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,360 tokens to every session, about $0.0118 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-30.