kodit: Instructions file for Claude Code

CLAUDE.md

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

A development guide for a Go software project. It documents setup, the approved build and test commands, code checks, and rules for shipping changes.

In plain words
What is it for?
Use it to install tools, build the project, run tests, perform formatting and lint checks, run smoke tests, and prepare commits or pull requests.
Why use it?
It prevents developers from skipping project-specific build settings or committing code that has not passed the required checks.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/helixml/kodit/claude-md"><img src="https://agentmods.dev/badge/instructions/helixml/kodit/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,821 This file is loaded in full into every session.
When invoked 1,821 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.01821 $0.01821
Opus 5.5 $0.00728 $0.00728
Sonnet 5.5 $0.00364 $0.00364
Haiku 4.5 $0.00182 $0.00182

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

Security

Grade A, and why

kodit 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 · 157 lines

How it starts

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

Helix Development Rules

Current year: 2026 — include "2026" in web searches for documentation and browser APIs.

Setup

Install required development tools before doing anything else:

make tools    # Install golangci-lint, goimports, swag, oapi-codegen, openapi-spec-converter

Build, Test, and Check

Always use make commands — never run go test, go vet, or golangci-lint directly. The Makefile sets required build tags, CGO flags, and environment variables that raw go commands miss.

make build                       # Build the binary
make test                        # Run all tests
make test PKG=./internal/foo/... # Test a specific package
make check                       # Format, vet, lint, and test
make check PKG=./internal/foo/... # Check a specific package
make test-smoke                  # Run smoke tests (needs running Docker env)

Shipping Code

Before committing:

  1. Run make check and confirm it passes (or at minimum make test for affected packages). Do not commit code that has not been validated.
  2. Fix any failures before committing — do not skip or work around them.

Commits and PRs use Conventional Commits:

  • Prefix: feat:, fix:, docs:, refactor:, chore:, test:, etc.
  • Example commit: feat: add webhook retry logic
  • PR titles follow the same format: feat: add webhook retry logic

When pushing additional commits to an existing PR, update the PR title and description to reflect the full set of changes in the branch.

Go

  • Fail fast: return fmt.Errorf("failed: %w", err) — never log and continue
  • Error on missing configuration — fail with an error, don't log a warning and continue
  • Use structs, not map[string]interface{}
  • GORM AutoMigrate only — no SQL migration files
  • Use gomock, not testify/mock
  • No fallbacks — one approach, no fallback code paths
  • No type aliases — update all references when moving or renaming types
  • No panics — return errors; rewrite methods to support error returns if needed
  • Log errors once at the top level — domain code returns errors, only handlers/workers log them

Read the full file on GitHub · 157 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 · 157 lines · 1,821 tokens per session scan A d7d54cd91af6

Subscribe to this mod's changes

kodit CLAUDE.md is an instructions file published in the GitHub repository helixml/kodit (127 stars, last pushed 9d ago), licensed Apache-2.0. It adds 1,821 tokens to every session, about $0.0073 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

kodit CLAUDE.md compared with instructions from other repositories

kodit CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kodit CLAUDE.mdhelixml/koditInstructions file1279d agoApache-2.0A1,821Claude Code
Pare copilot-instructions.mdDave-London/PareInstructions file1405d agoMITA1,070GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot