monitor: Instructions file for Claude Code

CLAUDE.md

monitor CLAUDE.md is an instructions file for Claude Code from ntppool/monitor. It costs 5,876 tokens per session, scanned A, original, MIT.

Repository instructions for ntppool/monitor, a distributed system that checks NTP Pool time servers from many monitoring locations.

In plain words
What is it for?
Understanding the monitor’s agent, API, and scoring components. They also guide task breakdown, formatting Go code, running tests, building affected packages, and checking code quality.
Why use it?
They give coding agents the project structure, task-management rules, and checks required before committing changes. NTP is the network protocol computers use to keep their clocks aligned.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: names the TodoWrite tool; positional $N argument; mentions Claude Code.

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/ask/src/go/ntp/monitor.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ntppool/monitor/claude-md"><img src="https://agentmods.dev/badge/instructions/ntppool/monitor/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,876 This file is loaded in full into every session.
When invoked 5,876 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.05876 $0.05876
Opus 5.5 $0.02350 $0.02350
Sonnet 5.5 $0.01175 $0.01175
Haiku 4.5 $0.00588 $0.00588

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

Security

Grade A, and why

monitor 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 11d 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 · 631 lines

How it starts

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

LLM_CODING_AGENT.md

This file provides guidance to Claude Code (claude.ai/code) and other LLM-based coding agents when working with code in this repository.

Project Overview

The NTP Pool Monitor is a distributed monitoring system for the NTP Pool project. It consists of three main components:

  • ntppool-agent - Monitoring client that runs on distributed nodes
  • monitor-api - Central API server for coordination and configuration
  • monitor-scorer - Processes monitoring results and calculates server scores

Task Management

Use TodoWrite/TodoRead tools for complex multi-step tasks (3+ steps) or when user explicitly requests todo management.

Best Practices:

  • Break down complex tasks into specific, actionable items
  • Mark tasks in_progress before starting work (only ONE at a time)
  • Complete tasks immediately after finishing
  • Only mark completed when fully accomplished

Pre-Commit Checklist

MANDATORY before any git commit:

  1. Run gofumpt -w on all changed .go files
  2. Run make test to ensure all tests pass
  3. Verify compilation with go build for affected packages
  4. Run lint tools if available (golangci-lint run, go vet ./...)
  5. Check for race conditions and proper error handling

Never commit changes unless explicitly asked by the user. NEVER USE git add -A - always use explicit, targeted git staging.

Development Commands

make tools          # Install required development tools
make generate       # Generate all code (runs sqlc then go generate ./...)
make build          # Build all components
make test           # Run comprehensive test suite

Code Generation

Never edit generated files directly - changes will be lost on regeneration.

Generated file patterns:

  • *.pb.go - Protocol buffer generated files
  • *.sql.go - sqlc generated database code
  • otel.go - OpenTelemetry instrumentation wrappers
  • *_string.go - Enum string methods
  • Files in the gen/ directory

Run make generate after:

  • Modifying query.sql or .proto files
  • Adding/modifying //go:generate directives
  • Use ./scripts/test-db.sh start for SQL query testing

Read the full file on GitHub · 631 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. 11d ago Changed · -2 lines · -31 tokens per session f8cc778860f3
  2. 1mo ago Changed · +18 lines · +275 tokens per session ec361fa6d934
  3. 2mo ago First seen · 615 lines · 5,632 tokens per session scan A 48ab3869e86d

Subscribe to this mod's changes

monitor CLAUDE.md is an instructions file published in the GitHub repository ntppool/monitor (22 stars, last pushed 12d ago), licensed MIT. It adds 5,876 tokens to every session, about $0.0235 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

monitor CLAUDE.md compared with instructions from other repositories

monitor CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
monitor CLAUDE.mdntppool/monitorInstructions file2212d agoMITA5,876Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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