aktual CLAUDE.md

aktual CLAUDE.md is an instructions file for coding agents from jonapoul/aktual. It costs 1,901 tokens per session, scanned A, original, Apache-2.0.

A set of coding instructions for Aktual, an unofficial Kotlin Multiplatform app for Actual personal budgeting software. It covers project conventions, builds, tests, and generated user-facing text.

In plain words
What is it for?
Building Kotlin modules, testing flows, updating localized strings, and maintaining architecture references.
Why use it?
It helps coding agents work consistently across the app's Android and desktop code without overlooking project-specific rules.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jonapoul/aktual/claude-md
Clone the repo
git clone --depth 1 https://github.com/jonapoul/aktual

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jonapoul/aktual/claude-md.svg)](https://agentmods.dev/instructions/jonapoul/aktual/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jonapoul/aktual/claude-md"><img src="https://agentmods.dev/badge/instructions/jonapoul/aktual/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,901 This file is loaded in full into every session.
When invoked 1,901 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01901 $0.01901
Opus 5 $0.00950 $0.00950
Sonnet 5 $0.00380 $0.00380
Haiku 4.5 $0.00190 $0.00190

Measured 4d ago against content hash 8bc6f2a91206, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aktual 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 4d 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 · 120 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code when working in this repo.

Project

Aktual is an unofficial Kotlin Multiplatform client for Actual personal budgeting software, targeting Android and Desktop (JVM). Pet project, unaffiliated with upstream.

General

  • IMPORTANT: After any architectural/structural change, grep **/CLAUDE.md for references that need updating (scopes, annotations, module paths, DI patterns). Don't wait to be asked.
  • Prefer kotlinx.immutable collections in the UI layer, not plain List/Set.
  • Prefer stateFlow.update { x } over stateFlow.value = x.
  • Strings.xyz (user-facing text) is generated from XML in aktual-core:l10n — add the string there and regenerate, don't hardcode. See aktual-core/l10n.
  • In tests, observe Flow/StateFlow emissions with Turbine (flow.test { awaitItem() }), not by reading .value or manual collectors.
  • Wrap comments to the max_line_length in .editorconfig (currently 120).

Build commands

# Compile (including test sources) for one module — default choice for module changes
./gradlew :[module]:compileAll

# Compile everything — prefer module-specific form where possible
./gradlew compileAll

# Full build — very slow, don't run without asking
./gradlew build

# Apps
./gradlew :aktual-app:android:assemble
./gradlew :aktual-app:desktop:assemble
./gradlew :aktual-app:android:installDebug
./gradlew :aktual-app:desktop:run

# Tests — always module-specific. `./gradlew allTests` pegs the machine; don't run it.
# Never pass a bare `:module:test` — it's ambiguous for KMP modules. Use `testAll` (both
# targets), `testAndroidHostTest`, or `desktopTest`; run the `run-module-tests` skill to pick.
./gradlew :aktual-account:vm:testAll

# Formatting
./scripts/ktfmt.sh            # format files changed since main
./scripts/ktfmt.sh check      # check-only
./scripts/ktfmt.sh --force    # all files

# Run a Gradle task on only the modules with changes since main (append --dry-run to preview).
# A change to the root build file, .github/, build-logic/, or libs.versions.toml runs all modules.
./scripts/detekt.sh           # detektCheck on changed modules
./scripts/lint.sh             # lint on changed modules
./scripts/test.sh             # testAll on changed modules

# Dependency graph — rerun only when module deps change
./gradlew atlasGenerate

# Force-refresh git version info (bypasses config cache)
./gradlew --rerun-tasks

Read the full file on GitHub · 120 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. 4d ago First seen · 120 lines · 1,901 tokens per session scan A 8bc6f2a91206

Subscribe to this mod's changes

aktual CLAUDE.md is an instructions file published in the GitHub repository jonapoul/aktual (34 stars, last pushed today), licensed Apache-2.0. It adds 1,901 tokens to every session, about $0.0095 per session on Opus 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-09-01.