terse-sharp: Instructions file for Claude Code

CLAUDE.md

terse-sharp CLAUDE.md is an instructions file for Claude Code from amusleh-spotware-com/terse-sharp. It costs 17,613 tokens per session, scanned A, original, MIT.

Repository instructions for TerseSharp, a .NET tool that helps an AI assistant navigate, edit, and refactor C# code by understanding its symbols and structure.

In plain words
What is it for?
Use them when Claude Code changes, builds, searches, refactors, or tests this C# project.
Why use it?
They require the project to be developed and tested through TerseSharp, keeping the tool useful and ensuring changes have end-to-end tests.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is amusleh-spotware-com/terse-sharp's own configuration. It tells Claude Code how to work on terse-sharp 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 terse-sharp configures โ†’

Reuse

Borrowing it

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

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 terse-sharp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/amusleh-spotware-com/terse-sharp/claude-md.svg)](https://agentmods.dev/instructions/amusleh-spotware-com/terse-sharp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/amusleh-spotware-com/terse-sharp/claude-md"><img src="https://agentmods.dev/badge/instructions/amusleh-spotware-com/terse-sharp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 17,613 This file is loaded in full into every session.
When invoked 17,613 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.17613 $0.17613
Opus 5 $0.08807 $0.08807
Sonnet 5 $0.03523 $0.03523
Haiku 4.5 $0.01761 $0.01761

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

Security

Grade A, and why

terse-sharp 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 ยท 881 lines

How it starts

The opening of the file, as written. The whole thing โ€” 881 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.

What this is

TerseSharp is a Roslyn-powered MCP server shipped as the .NET global tool terse (package id TerseSharp, assembly name terse). It gives a coding agent semantic navigation, editing and refactoring of a C# solution so it never has to Read/Grep/line-Edit a .cs file.

Prime directive, stated in the README and used to settle design arguments: save tokens, increase speed. A tool that does not beat the built-in it replaces does not ship, and a tool without an E2E test is not done.

๐Ÿšซ HARD GATE โ€” develop TerseSharp with TerseSharp

Every read, search, edit, refactor, build and test of this repository goes through the installed terse MCP server: get_file_outline / get_symbol_source instead of Read, search_symbols / find_usages instead of Grep, find_files instead of Glob, replace_symbol_body / replace_symbol / add_member instead of Edit, read_text / edit_text / write_text for .md, .csproj, .slnx and .json, build and run_tests instead of shelling out to dotnet, and changed_files / diff_symbols / diff_text instead of Bash: git status / git diff, history instead of git log / git show --stat and read_text ref= / get_file_outline ref= instead of git show <ref>:<path> โ€” so only git blame and index/history mutation (git add, git commit, git tag, git push) stay on Bash.

This is not style. This repo is the one place where the server is driven by the agent that also maintains it, so every session is the product's own usability test. Friction you route around with a built-in is a defect you never see: the fallback is silent, it feels faster in the moment, and it is exactly the failure mode measured in competing servers (agents that cannot find or trust a tool fall back to the shell and spend more tokens than with no MCP at all).

Dropping to a built-in or to Bash is allowed only when:

Read the full file on GitHub ยท 881 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 ยท +6 lines ยท +167 tokens per session 2cbceadebbf2
  2. 8d ago First seen ยท 875 lines ยท 17,446 tokens per session scan A 32991d80f226

Subscribe to this mod's changes

terse-sharp CLAUDE.md is an instructions file published in the GitHub repository amusleh-spotware-com/terse-sharp (2 stars, last pushed 3d ago), licensed MIT. It adds 17,613 tokens to every session, about $0.0881 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-31.