kernl: Instructions file for Claude Code

CLAUDE.md

kernl CLAUDE.md is an instructions file for Claude Code from fastslack/kernl. It costs 1,926 tokens per session, scanned A, original, Apache-2.0.

Project instructions for developing Kernl, a personal life-management server with tasks, customer records, reminders, shopping lists, dashboards, graph data, and Google synchronisation.

In plain words
What is it for?
Use them when changing Kernl modules, SQLite tables, Neo4j data, Google sync behaviour, or related development code.
Why use it?
They record the project's structure and database conventions, reducing mistakes when adding modules, migrations, or integrations.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fastslack/kernl/claude-md"><img src="https://agentmods.dev/badge/instructions/fastslack/kernl/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,926 This file is loaded in full into every session.
When invoked 1,926 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.01926 $0.01926
Opus 5.5 $0.00770 $0.00770
Sonnet 5.5 $0.00385 $0.00385
Haiku 4.5 $0.00193 $0.00193

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

Security

Grade A, and why

kernl 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 1mo 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 · 150 lines

How it starts

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

export function createFooModule(): KernelModule {
  let tools: ToolDefinition[] = [];
  return {
    name: "foo",
    async initialize(ctx: ModuleContext) {
      runMigrations(ctx.sqlite, "foo", fooMigrations);  // if has tables
      const service = new FooService(ctx.sqlite, ctx.neo4j);
      tools = fooTools(service);
    },
    getTools() { return tools; },
    async shutdown() {},
  };
}

ModuleContext: { sqlite, neo4j, events, config }

Migrations use Migration { version: number; sql: string } arrays, located in:

  • services/kernel/src/modules/{name}/migrations/*.ts (directory pattern), or
  • services/kernel/src/modules/{name}/migrations.ts (inline pattern)

SQLite NOT NULL columns with empty defaults: contacts table: email, phone, company, notes are NOT NULL DEFAULT ''. Use <> '' to check for presence, NOT IS NOT NULL. Same pattern used in many other tables (communications, events, etc.)

Google sync source column: source column lives in google_sync_map table, NOT in contacts — join via local_id = contacts.id.

Read the full file on GitHub · 150 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. 1mo ago Changed · +4 lines · +81 tokens per session f589b214976b
  2. 2mo ago First seen · 146 lines · 1,845 tokens per session scan A 834ac199c733

Subscribe to this mod's changes

kernl CLAUDE.md is an instructions file published in the GitHub repository fastslack/kernl (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,926 tokens to every session, about $0.0077 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

kernl CLAUDE.md compared with instructions from other repositories

kernl CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernl CLAUDE.mdfastslack/kernlInstructions file3yesterdayApache-2.0A1,926Claude 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