SharpPad: Instructions file for Claude Code

CLAUDE.md

SharpPad CLAUDE.md is an instructions file for Claude Code from gaoconggit/SharpPad. It costs 1,723 tokens per session, scanned A, original, MIT.

A project instruction file for SharpPad, a web and desktop C# code editor and execution platform. It describes its three-project structure, browser interface, server APIs, code analysis, and desktop wrapper.

In plain words
What is it for?
Use it when working on SharpPad's ASP.NET Core server, Monaco editor interface, Roslyn code analysis, REST APIs, NuGet support, or Avalonia desktop app.
Why use it?
It gives coding agents the project layout and technology context needed to place changes in the correct application or library.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gaoconggit/sharppad/claude-md"><img src="https://agentmods.dev/badge/instructions/gaoconggit/sharppad/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,723 This file is loaded in full into every session.
When invoked 1,723 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.01723 $0.01723
Opus 5.5 $0.00689 $0.00689
Sonnet 5.5 $0.00345 $0.00345
Haiku 4.5 $0.00172 $0.00172

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

Security

Grade A, and why

SharpPad 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 13d 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 · 220 lines

How it starts

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

SharpPad is a web-based C# code editor and execution platform similar to LinqPad, built with ASP.NET Core 9.0 and Monaco Editor. It combines Roslyn compiler services with modern web technologies to provide real-time code execution, IntelliSense, AI chat integration, and NuGet package management. The platform now includes both web and desktop versions.

Architecture

Three-Project Structure

  • SharpPad/: Main ASP.NET Core 9.0 web application that serves the UI and provides API endpoints
  • MonacoRoslynCompletionProvider/: .NET 9.0 library that handles all Roslyn-based code analysis, compilation, and IntelliSense features
  • SharpPad.Desktop/: Avalonia-based desktop application that hosts the web UI in a WebView with native menus and system integration

Key Components

  • Frontend: Monaco Editor with custom C# language provider, responsive UI with resizable panels
  • Backend API: RESTful endpoints for code execution, completion, chat proxy, and file management
  • Code Analysis Engine: Roslyn-based workspace management with NuGet integration and dynamic assembly loading
  • AI Integration: GPT chat and code completion with configurable models and endpoints

Development Commands

Building the Project

# Build entire solution
dotnet build SharpPad.sln

# Build specific projects
dotnet build SharpPad/SharpPad.csproj
dotnet build MonacoRoslynCompletionProvider/MonacoRoslynCompletionProvider.csproj

# Release build
dotnet build -c Release

Running the Application

Web Application:

# Run web version in development mode
dotnet run --project SharpPad/SharpPad.csproj

# Run with specific environment
ASPNETCORE_ENVIRONMENT=Development dotnet run --project SharpPad/SharpPad.csproj

Desktop Application:

# Run desktop version
dotnet run --project SharpPad.Desktop/SharpPad.Desktop.csproj

# Build desktop releases
# Windows
.\build-desktop.ps1 -Configuration Release

# macOS/Linux
./build-desktop.sh --configuration Release

Read the full file on GitHub · 220 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. 13d ago First seen · 220 lines · 1,723 tokens per session scan A 4ce736c4685e

Subscribe to this mod's changes

SharpPad CLAUDE.md is an instructions file published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It adds 1,723 tokens to every session, about $0.0069 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-10-02.