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.
curl -O https://raw.githubusercontent.com/agigante80/Actual-sync/main/.claude/agents/actual-api.mdgit clone --depth 1 https://github.com/agigante80/Actual-syncWrote 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.
[](https://agentmods.dev/agents/agigante80/actual-sync/actual-api)<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>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.
| Model | Per session | Once 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 |
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.
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:
- API overview: https://actualbudget.org/docs/api/
- API reference: https://actualbudget.org/docs/api/reference
- ActualQL: https://actualbudget.org/docs/api/actual-ql/
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: true — downloadBudget 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".
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.
- yesterday First seen · 131 lines · 47 tokens per session scan A 8338512f9a16
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.
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.
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.
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.
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.
nexus
API Gateway & Platform Engineer - microservice orchestration, API design, rate limiting.
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.