Primitives CLAUDE.md

Repository instructions for ReactiveUI.Primitives, a software library, covering how an AI agent should understand, build, and test the code. They identify the main solution file, tests, benchmarks, and required working directory.

In plain words
What is it for?
Use them when working on ReactiveUI.Primitives to locate the code and tests and run .NET build or test commands correctly. The instructions require those commands to run from the src folder.
Why use it?
They reduce mistakes caused by using the wrong folder, solution file, or build commands. They also explain SLNX, an XML format used to describe a .NET solution instead of the older .sln format.

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/reactiveui/primitives/claude-md
Clone the repo
git clone --depth 1 https://github.com/reactiveui/Primitives
Per session 1,696 This file is loaded in full into every session.
When invoked 1,696 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.01696 $0.01696
Opus 5 $0.00848 $0.00848
Sonnet 5 $0.00339 $0.00339
Haiku 4.5 $0.00170 $0.00170

Measured 2d ago against content hash 67ec35785f02, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Primitives 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 2d 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 · 207 lines

How it starts

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

CLAUDE.md

This file is the single source of truth for AI/agent assistance in this repository. It consolidates build/test commands, repository layout, test runner usage, and the main constraints needed to work safely in ReactiveUI.Primitives.

If there is any conflict between other agent instruction files and this file, follow CLAUDE.md.


Repository Orientation

  • Repository root: .
  • Primary working directory for build/test: ./src
  • Main solution: src/ReactiveUI.Primitives.slnx
  • Benchmarks project: src/benchmarks/ReactiveUI.Primitives.Benchmarks/ReactiveUI.Primitives.Benchmarks.csproj
  • Tests: src/tests/

Solution Format: SLNX

This repository uses SLNX (XML-based solution format) instead of legacy .sln.

  • Main file: src/ReactiveUI.Primitives.slnx
  • Use dotnet build / dotnet test against the .slnx file the same way as a .sln

Build Environment Requirements

Working Directory Rule

CRITICAL: Run dotnet build/test commands from ./src, not the repository root, unless the command explicitly uses src/-prefixed paths.

Running dotnet test from the repository root can trigger Microsoft Testing Platform / VSTest invocation issues on .NET 10+ SDKs.

Restore And Build

cd src

dotnet restore "ReactiveUI.Primitives.slnx"
dotnet build "ReactiveUI.Primitives.slnx"
dotnet build "ReactiveUI.Primitives.slnx" -c Release
dotnet clean "ReactiveUI.Primitives.slnx"

Full Solution Test Command

cd src
dotnet test "ReactiveUI.Primitives.slnx"

Equivalent explicit invocation:

dotnet test "ReactiveUI.Primitives.slnx"

with workdir set to:

/home/glennw/source/rxui/Primitives/src

Testing: Microsoft Testing Platform (MTP) + TUnit

This repository uses Microsoft Testing Platform (MTP) with TUnit. This differs from VSTest.

  • Test support is enabled centrally in src/Directory.Build.props
  • Test execution settings live in src/testconfig.json
  • Command-line filtering uses TUnit/MTP syntax, not NUnit/xUnit/VSTest filter syntax

Read the full file on GitHub · 207 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. 2d ago First seen · 207 lines · 1,696 tokens per session scan A 67ec35785f02

Subscribe to this mod's changes

Primitives CLAUDE.md is an instructions file published in the GitHub repository reactiveui/Primitives (12 stars, last pushed 2d ago), licensed MIT. It adds 1,696 tokens to every session, about $0.0085 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.