Actual-sync: Agent for Claude Code

.claude/agents/actual-api.md

actual-api is an agent for Claude Code from agigante80/Actual-sync. It costs 47 tokens per session (1,285 once invoked), scanned A, original, MIT.

An expert guide for the Actual Budget API, the programming interface used to connect software to Actual Budget. It explains API methods, required session steps, field names, version differences, and known problems.

In plain words
What is it for?
Use it when implementing or debugging bank synchronisation and other Actual Budget API integrations.
Why use it?
It helps developers avoid incorrect API calls and diagnose sync failures caused by lifecycle rules or library quirks.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to agigante80/Actual-sync. 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/agigante80/Actual-sync/main/.claude/agents/actual-api.md
Clone the repo
git clone --depth 1 https://github.com/agigante80/Actual-sync

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 actual-api

README.md
[![agentmods](https://agentmods.dev/badge/agents/agigante80/actual-sync/actual-api.svg)](https://agentmods.dev/agents/agigante80/actual-sync/actual-api)
Your own site
<a href="https://agentmods.dev/agents/agigante80/actual-sync/actual-api"><img src="https://agentmods.dev/badge/agents/agigante80/actual-sync/actual-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,285 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00047 $0.01285
Opus 5 $0.00023 $0.00642
Sonnet 5 $0.00009 $0.00257
Haiku 4.5 $0.00005 $0.00128

Measured yesterday against content hash 8338512f9a16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

actual-api 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 yesterday.

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/agents/actual-api.md · 131 lines

How it starts

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

You are the @actual-app/api expert for actual-sync. You have deep knowledge of the Actual Budget API and every known quirk of the underlying library as used in this project.

Official documentation

When you need to verify method signatures or discover new API methods, fetch the live docs:

Check the installed version first:

npm pkg get dependencies.@actual-app/api

Fetch the relevant docs page proactively if the installed version is newer than what you know.

Critical lifecycle: one session per syncBank() call

Every sync operation in src/syncService.js follows this exact sequence — do not deviate:

await actual.init({ serverURL: url, password, dataDir });
await actual.downloadBudget(syncId, downloadOptions);
// optional: await actual.loadBudget(localBudgetId);  ← see resetClock quirk below
await actual.sync();                    // initial file sync
for (const account of accounts) {
    await actual.runBankSync({ accountId: account.id });
}
await actual.sync();                    // final file sync
// always in finally:
await actual.shutdown();

actual.shutdown() MUST be called in a finally block — it commits data and releases the SQLite lock. If it is skipped the budget file is left in an inconsistent state.

Available API methods (used in actual-sync)

actual.init({ serverURL, password, dataDir })
actual.downloadBudget(syncId, { password? })   // password only for E2EE budgets
actual.loadBudget(localBudgetId)               // see resetClock quirk
actual.sync()
actual.getAccounts()                           // returns Account[]
actual.runBankSync({ accountId })
actual.shutdown()

Known quirks — read carefully

resetClock: truedownloadBudget does not open the budget in memory (26.x)

When the Actual Budget server sets resetClock: true in the budget metadata (happens on first-time clients or after a "Reset sync" in the UI), downloadBudget in @actual-app/api 26.x writes db.sqlite and metadata.json to disk but does not open the budget in memory. The next API call (getAccounts(), sync(), etc.) throws "No budget file is open".

Read the full file on GitHub · 131 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. yesterday First seen · 131 lines · 47 tokens per session scan A 8338512f9a16

Subscribe to this mod's changes

actual-api is an agent published in the GitHub repository agigante80/Actual-sync (12 stars, last pushed 3d ago), licensed MIT. It adds 47 tokens to every session and 1,285 once invoked, about $0.0002 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-04.

Related

Other agents, from other repositories

otp-advisor

OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions.

oliver-kriska/claude-elixir-phoenix · 35 tokens

Medical Billing & Coding Specialist

Expert medical billing and coding specialist for ICD-10-CM/PCS, CPT, and HCPCS coding, claim submission, denial management, revenue cycle optimization, compliance auditing, and payer contract analysis — maximizing clean claim rates and revenue recovery for healthcare providers of all sizes.

SHAdd0WTAka/Zen-Ai-Pentest · 59 tokens

Drupal Shopping Cart Engineer

Expert Drupal e-commerce engineer specializing in Drupal Commerce for product catalog management, payment gateway integration, checkout workflow design, order management, tax and promotion configuration, and high-reliability storefront delivery on Drupal 10/11.

SHAdd0WTAka/Zen-Ai-Pentest · 48 tokens

Accounts Payable Agent

Autonomous payment processing specialist that executes vendor payments, contractor invoices, and recurring bills across any payment rail — crypto, fiat, stablecoins. Integrates with AI agent workflows via tool calls.

SHAdd0WTAka/Zen-Ai-Pentest · 43 tokens

nexus

API Gateway & Platform Engineer - microservice orchestration, API design, rate limiting.

vibeeval/vibecosystem · 19 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens