Nightingale is an open-source monitoring and alerting system that connects to stored metrics and log data, evaluates alert rules, and distributes notifications. Operations teams use it to manage alarms and explore observability data alongside existing data sources and collectors. Catalogue add-ons provide skills for operating Nightingale.
Borrowing it
Nothing to install: this file belongs to ccfos/nightingale. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ccfos/nightingale/main/CLAUDE.mdgit clone --depth 1 https://github.com/ccfos/nightingaleWrote 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.
[](https://agentmods.dev/instructions/ccfos/nightingale/claude-md)<a href="https://agentmods.dev/instructions/ccfos/nightingale/claude-md"><img src="https://agentmods.dev/badge/instructions/ccfos/nightingale/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.
<a href="https://agentmods.dev/instructions/ccfos/nightingale/claude-md"><img src="https://agentmods.dev/badge/instructions/ccfos/nightingale/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01089 | $0.01089 |
| Opus 5.5 | $0.00436 | $0.00436 |
| Sonnet 5.5 | $0.00218 | $0.00218 |
| Haiku 4.5 | $0.00109 | $0.00109 |
Grade A, and why
nightingale 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 19d 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.
How it starts
The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Nightingale (n9e) is an open-source alerting/monitoring platform (Go, gin + gorm). This file lists only what cannot be learned quickly by reading the code.
Cross-repo constraints
- The commercial fork
flashcatcloud/n9e-plusimports this module, so exported signatures it calls (e.g.alert.Start,centerrt.New,BuildNotifyContext,center.Initialize-style entry points) are effectively public API. Add fields/setters instead of changing parameter lists (see comments incenter/center.goandalert/alert.go). - The frontend is a separate repo (
n9e/fe), embedded as a statik bundle.front/statik/statik.gois committed, sogo build ./...works without runningfe.sh.
Commands
go build ./... # ~1 min cold; also verifies tests compile
go test ./... # in-memory sqlite (github.com/glebarez/sqlite), no external services
./n9e --configs etc.local # etc.local* are git-ignored per-developer configs; etc/ is the shipped default
# CI gates, run when touching integrations/**
go run ./cmd/integrations-alert-action check # every builtin alert rule needs a non-empty `action` annotation
go run ./cmd/integrations-alert-action update # tighten integrations/alert_action_baseline.json after fixing rules
go run ./cmd/integrations-i18n check -scope all # en_US rendering must contain no Chinese
There is no lint config; the two integration checks are the only code gates in CI.
Rules that span several files
- Center vs edge/alert.
n9e(center) owns the DB;n9e-edgeandn9e-alerthave none. Model functions branch onctx.IsCenter: gorm directly, or HTTP to the center viapkg/posteragainst/v1/n9e/.... A new model read path that edge/alert needs must implement both branches, and the center must expose the matching/v1/n9eroute. - memsto caches. Alert evaluation, dispatch and routers read from
memsto/caches, never the DB on the hot path. Adding a cached table means: modelStat()+GetsAll()(both ctx branches), a cache inmemsto, and threading it throughalert.Start. Change detection usescount/max(update_at); a row count alone misses "one created, one deleted" between two syncs, so tables withoutupdate_atwhose rows are never edited (e.g.user_token) comparecount + max(id). - Caches change only through their periodic sync. Don't patch a cache from an API handler to make a change "take effect immediately": it only covers the instance that served the request, so behind a load balancer the same token or config works on one node and fails on another, and the next sync's full replace can undo it. Accept the sync delay and fix the sync's change detection instead. The one exception is the Skill Gateway's
UserTokenCache.Inject, whose token must authenticate within the same request. - Schema.
models/migrate/migrate.goruns AutoMigrate on center startup, anddocker/initsql/a-n9e.sql,docker/sqlite.sql,docker/migratesql/migrate.sqlare maintained by hand. A new column/table must land in the gorm struct and all three SQL files. MySQL/PostgreSQL/SQLite differences (text sizes, unique index limits) are handled explicitly inMigrateTables; longstringfields need an explicitgorm:"type:..."or AutoMigrate drifts or fails. - Models for the frontend. Nullable JSON arrays must be normalized to
[]on the way out (seemodels/alert_rule_null_compat_test.go). - Alert pipeline order (
alert/):eval(query, produceAlertCurEvent) →process(mute, relabel, dedupe againstalert_cur_event) →queue→dispatch(subscribe, notify rules, event pipelines) →sender. - Event pipeline processors self-register via
models.RegisterProcessorin their packageinit; a new processor package must also be blank-imported inalert/pipeline/pipeline.go.
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.
- 19d ago Changed · -27 lines · -1,155 tokens per session 8e1cdcd063cb
- 26d ago Changed · +2 lines · +206 tokens per session 02898ff14e5a
- 2mo ago First seen · 67 lines · 2,038 tokens per session scan A e5256ef77969
nightingale CLAUDE.md is an instructions file published in the GitHub repository ccfos/nightingale (13,527 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,089 tokens to every session, about $0.0044 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-09-08.
nightingale CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nightingale CLAUDE.mdccfos/nightingale | Instructions file | 14k | yesterday | Apache-2.0 | A | 1,089 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |