Connapse: Instructions file for Claude Code

CLAUDE.md

Connapse CLAUDE.md is an instructions file for Claude Code from Destrayon/Connapse. It costs 1,972 tokens per session, scanned A, original, MIT.

A project guide for Connapse, a .NET web application that uses PostgreSQL for data and MinIO for object storage. It documents build, run, Docker, and test commands.

In plain words
What is it for?
Building the application, running it locally or with Docker, starting PostgreSQL and MinIO, and selecting particular tests or test categories.
Why use it?
It shows developers how to start the required services and how to run unit and integration tests in the expected way.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/destrayon/connapse/claude-md"><img src="https://agentmods.dev/badge/instructions/destrayon/connapse/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,972 This file is loaded in full into every session.
When invoked 1,972 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.01972 $0.01972
Opus 5.5 $0.00789 $0.00789
Sonnet 5.5 $0.00394 $0.00394
Haiku 4.5 $0.00197 $0.00197

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

Security

Grade A, and why

Connapse 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 · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 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.

Build & Run

# Build
dotnet build

# Run web app (requires backing services)
dotnet run --project src/Connapse.Web

# Start backing services (PostgreSQL + MinIO, ports exposed to host)
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d

# Full stack via Docker
docker compose up -d

Tests

# All tests
dotnet test

# Unit tests only (no Docker required)
dotnet test --filter "Category=Unit"

# Integration tests (needs Docker for Testcontainers)
dotnet test --filter "Category=Integration"

# Single test class
dotnet test --filter "FullyQualifiedName~Connapse.Core.Tests.CloudScope.CloudScopeServiceTests"

# Single test method
dotnet test --filter "FullyQualifiedName~ClassName.MethodName_Scenario_ExpectedResult"

# Retrieval eval harness (Docker + Ollama; see tests/Connapse.Eval/README.md)
dotnet run --project tests/Connapse.Eval -- run --suite v1 --config hybrid
  • xUnit framework, FluentAssertions (.Should()), NSubstitute for mocking
  • Integration tests share a single PostgreSQL+MinIO container pair via SharedWebAppFixture (collection-based)
  • Every test container is capped at 2 CPUs and 4 GB by TestContainerLimits; set CONNAPSE_TEST_CONTAINER_LIMITS to <cpus>,<memory> (e.g. 4,8g) or off to change that. New fixtures must add .WithCreateParameterModifier(TestContainerLimits.Apply)
  • Tag tests: [Trait("Category", "Unit")] or [Trait("Category", "Integration")]; speed gates that time real work use [Trait("Category", "Gate")] and run in their own CI step
  • Test naming: MethodName_Scenario_ExpectedResult

Database Migrations

Two separate EF Core migration histories:

  • KnowledgeDbContext (Storage): dotnet ef migrations add Name --project src/Connapse.Storage
  • ConnapseIdentityDbContext (Identity): dotnet ef migrations add Name --project src/Connapse.Identity

Migrations run automatically on app startup.

Read the full file on GitHub · 172 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 · +24 tokens per session 482e27eeab60
  2. 5d ago Changed · +1 lines · +70 tokens per session d590c82467a3
  3. 1mo ago Changed · +3 lines · +44 tokens per session 5c17adfb65c9
  4. 2mo ago First seen · 168 lines · 1,834 tokens per session scan A 26744894599e

Subscribe to this mod's changes

Connapse CLAUDE.md is an instructions file published in the GitHub repository Destrayon/Connapse (22 stars, last pushed today), licensed MIT. It adds 1,972 tokens to every session, about $0.0079 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

Connapse CLAUDE.md compared with instructions from other repositories

Connapse CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Connapse CLAUDE.mdDestrayon/ConnapseInstructions file22todayMITA1,972Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode