allocat: Instructions file for Claude Code

CLAUDE.md

allocat CLAUDE.md is an instructions file for Claude Code from BuiltByOctane/allocat. It costs 7,477 tokens per session, scanned A, original, MIT.

Project instructions for AlloCat, a personal-finance progressive web app and Android app built with Next.js, React, Supabase, and related tools. A progressive web app is a website that can behave like an installed app.

In plain words
What is it for?
Use them when developing transaction tracking, running the app, building or linting it, executing tests, checking types, or working with its database and browser storage.
Why use it?
They document the technology choices, commands, currency rules, and testing locations needed to work consistently in the project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/builtbyoctane/allocat/claude-md"><img src="https://agentmods.dev/badge/instructions/builtbyoctane/allocat/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,477 This file is loaded in full into every session.
When invoked 7,477 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.07477 $0.07477
Opus 5.5 $0.02991 $0.02991
Sonnet 5.5 $0.01495 $0.01495
Haiku 4.5 $0.00748 $0.00748

Measured 5d ago against content hash 963cbe6a0b0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

allocat 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 5d 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 · 216 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project

AlloCat — minimalist personal-finance PWA, also shipped as a native Android app (Capacitor) for SMS-based transaction tracking. Next.js 16 (App Router) + React 19 + Supabase + Dexie (IndexedDB) + TanStack Query 5 + Tailwind v4. Currency is multi-currency via lib/number-format.ts + lib/currency/catalog (INR is the default for legacy callers); do not assume hardcoded en-IN.

package.json declares name: "AlloCat-web" despite the directory name.

Commands

npm run dev         # next dev
npm run build       # next build && serwist build (service worker bundling)
npm run start       # next start
npm run lint        # eslint (flat config in eslint.config.mjs)
npm run test        # vitest run (one-shot)
npm run test:watch  # vitest (watch)

npx vitest run lib/sms/match.test.ts        # single file
npx vitest run -t "matches exact rule"      # single test by name

Test files live next to source (*.test.ts, e.g. lib/ai/parseSmsTransaction.test.ts, lib/sms/match.test.ts). No typecheck script — run npx tsc --noEmit if needed.

Use pnpm (per memory: npm install fails with ERESOLVE). Both package-lock.json and pnpm-lock.yaml are checked in.

Android (Capacitor)

npx cap sync android                                  # copy web config + plugins into android/
CAP_SERVER_URL=http://192.168.1.20:3000 npx cap sync # point the shell at a LAN dev server

Requires Android Studio JBR (JDK 21). Open android/ in Android Studio to build/run the APK.

Required env (.env.local)

NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY=
SUPABASE_SERVICE_ROLE_KEY=   # push, AI daily counter, founding-member ledger, /admin
OPENROUTER_API_KEY=          # used by app/api/ai/chat
ADMIN_EMAILS=                # comma-separated allowlist for /admin; unset ⇒ 404
CRON_SECRET=                 # bearer token for /api/admin/cron/play-sync
PLAY_SA_JSON_B64=            # base64 service-account JSON for Play install stats
PLAY_BUCKET=                 # pubsite_prod_<id>

Read the full file on GitHub · 216 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. 5d ago Changed · +12 lines · +654 tokens per session 963cbe6a0b0f
  2. 8d ago Changed · +6 lines · +530 tokens per session 3ebbd89a1374
  3. 1mo ago Changed · +2 lines · +137 tokens per session 991150e25e8d
  4. 1mo ago Changed · +7 lines · +338 tokens per session 12711d1c8b02
  5. 1mo ago Changed · +270 tokens per session 39618cb06815
  6. 1mo ago Changed · +18 lines · +1,040 tokens per session 4500a8a58b45
  7. 1mo ago Changed · +34 lines · +1,516 tokens per session 5f73aeda14b9
  8. 2mo ago Changed · +18 lines · +470 tokens per session 4bffaff93801
  9. 2mo ago First seen · 119 lines · 2,522 tokens per session scan A 0e578759e4f6

Subscribe to this mod's changes

allocat CLAUDE.md is an instructions file published in the GitHub repository BuiltByOctane/allocat (3 stars, last pushed 6d ago), licensed MIT. It adds 7,477 tokens to every session, about $0.0299 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

allocat CLAUDE.md compared with instructions from other repositories

allocat CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
allocat CLAUDE.mdBuiltByOctane/allocatInstructions file36d agoMITA7,477Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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