Borrowing it
Nothing to install: this file belongs to andileeb/loxone-datamanager. 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/andileeb/loxone-datamanager/main/CLAUDE.mdgit clone --depth 1 https://github.com/andileeb/loxone-datamanagerWrote 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/andileeb/loxone-datamanager/claude-md)<a href="https://agentmods.dev/instructions/andileeb/loxone-datamanager/claude-md"><img src="https://agentmods.dev/badge/instructions/andileeb/loxone-datamanager/claude-md.svg" alt="Measured on agentmods" 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.02691 | $0.02691 |
| Opus 5 | $0.01345 | $0.01345 |
| Sonnet 5 | $0.00538 | $0.00538 |
| Haiku 4.5 | $0.00269 | $0.00269 |
Grade A, and why
loxone-datamanager CLAUDE.md scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`curl -X POST http://127.0.0.1:12009/mcp -H "Authorization: Bearer <token>" …` How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — Loxone DataManager
Electron desktop app (100% TypeScript) to view and edit Loxone Miniserver
statistics: browse /stats via FTP/FTPS, chart/edit the binary monthly files,
upload them back. Heavily inspired by LoxStatEdit (Windows/.NET).
User-facing docs live in README.md; this file is for working on the code.
Commands (pnpm only — packageManager is pinned)
pnpm install # pnpm 10: build scripts allowlisted via pnpm.onlyBuiltDependencies
pnpm run dev # Electron + Vue with HMR
pnpm test # vitest: parser round-trip, validation, formula, FTP date parsing
pnpm run build # typecheck (node + web) + electron-vite build
pnpm run lint # eslint + prettier rules
pnpm run build:mac # package .dmg (build:win / build:linux)
Release: push a v* tag → .github/workflows/release.yml builds macOS universal
.dmg + Windows NSIS setup.exe (unsigned) and drafts a GitHub Release.
Architecture
src/main/— Node/Electron main process. ALL FTP + file I/O lives here.ftp.ts— one basic-ftp Client in a module singleton; every op serialized through a promise queue (run()) with one auto-reconnect retry; TLS auto-detect = try FTPS (secure: true,rejectUnauthorized: false— Miniserver certs are self-signed) then fall back to plain. LIST dates have no year →parseListDateheuristic (assume this year unless future).statfile.ts— binary parser/serializer, pure TS, no Electron imports (unit-testable). See "Binary format" below.cache.ts— per-host download cache inuserData/stats-cache/<host>/.cachePath()validates names againstSTAT_FILENAME_RE(path-traversal guard).store.ts— saved connections: plain JSON in userData + passwords encrypted with ElectronsafeStorage(no keychain → password simply not stored).stats-service.ts— shared session logic for IPC and MCP so they can't diverge:CodedError/toApiError, theparsedFilesMap (serialization re-emits the original header bytes verbatim),saveRecords,buildCsv, MCP-side dirty tracking.ipc.ts— all handlers, thin over stats-service. Every response isIpcResult<T> = {ok,data}|{ok,error}with typedApiError.code(e.g.FTP_REFUSEDtriggers the "enable FTP" hint in the UI).mcp.ts+mcp-tools.ts— embedded MCP server (@modelcontextprotocol/sdkv1, stateless Streamable HTTP: freshMcpServer+ transport per POST) onhttp://127.0.0.1:<port>/mcp, default port 12009. Bearer-token auth (token generated in Settings, safeStorage-encrypted in store.ts,plain:prefix fallback); 20 tools +fix-statisticsprompt share ftp/cache/stats-service with the UI. Edits are in-memory untilsave_stat_file;mcp:activityevents tell the renderer to refresh (EditorView shows a reload banner — last-save-wins, no merging). Lifecycle: start on app ready if enabled,mcp:configureIPC restarts,EADDRINUSElands inMcpState.error.updates.ts— release-notification only, no Electron imports (takes the current version as an argument, so it unit-tests). Onefetchof GitHub's/releases/latestper launch; every failure (offline, 403 rate-limit, no published release) resolves aslatest: null— a failed check must never surface as an app error. See "Auto-update" below for why there's no installer.
src/preload/index.ts— contextBridge exposingwindow.api, typed by the single contract interface insrc/shared/api.ts(preload implements it, renderer consumes it — extend the interface first when adding IPC).src/shared/— types +time.ts(Loxone epoch helpers, multi-format timestamp parsing) +formula.ts(hand-rolled CSP-safe parser) +records.ts(pure record transforms: dominantInterval, fillGaps, summarizeRecords, statusOf, isCurrentMonth — used by the editor store AND the MCP tools; put new record logic here, not in a Pinia action).src/renderer/src/— Vue 3 + Pinia + PrimeVue 4 + uPlot + vue-i18n. Views: Connection → Browser (file list w/ sync status) → Editor (chart + virtualized grid + problems panel), plus Settings (Cmd/Ctrl+, or gear icon). Router guard: everything except/connectand/settingsneeds a connection.- i18n: en + de catalogs in
renderer/src/locales/(de.tsis typedtypeof enso missing keys fail typecheck). ALL user-facing strings go throught(); error codes map toerrors.*keys viaerrorText()ini18n.ts; validation problems translate byrulecode in ProblemsPanel. Main-process messages stay English (fallback only). - Prefs (
renderer/src/prefs.ts, localStorage): date format (default DD.MM.YYYY) + time format (default 24h for every language — never let a locale silently switch to AM/PM). Editor-grid timestamps always render 24h so they stay parseable;displayToLoxaccepts all three date formats by separator. Theme lives inrenderer/src/theme.ts(.app-darkclass = PrimeVue darkModeSelector; chart palette watchesisDark).
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.
- 8d ago First seen · 155 lines · 2,691 tokens per session scan A a3c2697c5066
loxone-datamanager CLAUDE.md is an instructions file published in the GitHub repository andileeb/loxone-datamanager (2 stars, last pushed 1mo ago), licensed MIT. It adds 2,691 tokens to every session, about $0.0135 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.