ai-automation-lab: Instructions file for Claude Code

CLAUDE.md

ai-automation-lab CLAUDE.md is an instructions file for Claude Code from batpepe/ai-automation-lab. It costs 1,017 tokens per session, scanned A, original, MIT.

Project instructions for ai-automation-lab, an incident-triage service for a K3s home server cluster. It investigates alerts with read-only tools and stores results for comparison with confirmed causes.

In plain words
What is it for?
Use them when developing or investigating the ai-automation-lab service, its alert workflow, database, or cluster-tool integrations.
Why use it?
They explain the project's purpose, technical stack, important files, and verification expectations before code changes are made.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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 ai-automation-lab CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/batpepe/ai-automation-lab/claude-md"><img src="https://agentmods.dev/badge/instructions/batpepe/ai-automation-lab/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,017 This file is loaded in full into every session.
When invoked 1,017 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.01017 $0.01017
Opus 5.5 $0.00407 $0.00407
Sonnet 5.5 $0.00203 $0.00203
Haiku 4.5 $0.00102 $0.00102

Measured 2mo ago against content hash 93438021ae15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-automation-lab 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 2mo 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 · 70 lines

How it starts

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

Approach

  • Read files before writing. Don't re-read unchanged files.
  • Thorough in reasoning, concise in output.
  • No preamble, closing fluff, or sycophancy.
  • No emojis, em-dashes, or smart quotes in files or commits.
  • Verify SHAs, versions, flags, endpoints and API shapes by reading code or docs before asserting.
  • Targeted edits over rewrites.
  • Comments say why, not what. Every non-obvious config line carries its reason.

What this is

An incident triage agent for the K3s homelab described in the sibling repo devops-homelab-k3s-hybrid-cloud. Alertmanager fires, n8n dedupes and calls this service, the agent investigates with read-only cluster tools, and the result is persisted and later scored against the human-confirmed root cause. The measured accuracy is the point of the project, not the agent.

Stack

Python 3.12 + uv | FastAPI | Pydantic v2 | SQLAlchemy 2 + PostgreSQL | typer | structlog MCP tool layer | n8n as a GitOps workload | ArgoCD app-of-apps | Prometheus + Loki + Grafana

Key paths

  • plan.md phases, definitions of done, pushback on the brief
  • src/opsagent/config.py settings, OPSAGENT_ prefix, safe defaults
  • src/opsagent/observability/ logging now, metrics and probes in phase 5
  • src/opsagent/tools/ cluster tools, one registry, redacted outputs (phase 2)
  • src/opsagent/redaction/ the choke point every tool output passes through (phase 2)
  • src/opsagent/providers/ LLMProvider protocol, mock default, no paid keys (phase 3)
  • src/opsagent/agent/ loop, budget and depth caps, TriageReport (phase 3)
  • src/opsagent/n8n/ public API client and workflow export/import (phase 1)
  • workflows/ n8n workflow JSON, the source of truth for the instance
  • deploy/argocd/ child Applications; the platform repo points one app here
  • evals/scenarios/ fault injection scenarios and expected root causes (phase 6)
  • docs/adr/ decisions and the alternatives rejected

Read the full file on GitHub · 70 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. 2mo ago First seen · 70 lines · 1,017 tokens per session scan A 93438021ae15

Subscribe to this mod's changes

ai-automation-lab CLAUDE.md is an instructions file published in the GitHub repository batpepe/ai-automation-lab (0 stars, last pushed 2mo ago), licensed MIT. It adds 1,017 tokens to every session, about $0.0041 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-31.

Related

ai-automation-lab CLAUDE.md compared with instructions from other repositories

ai-automation-lab CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-automation-lab CLAUDE.mdbatpepe/ai-automation-labInstructions file02mo agoMITA1,017Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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