Borrowing it
Nothing to install: this file belongs to agigante80/actual-mcp-server. 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-mcp-server/main/.claude/agents/actual-api.mdgit clone --depth 1 https://github.com/agigante80/actual-mcp-serverWrote 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-mcp-server/actual-api)<a href="https://agentmods.dev/agents/agigante80/actual-mcp-server/actual-api"><img src="https://agentmods.dev/badge/agents/agigante80/actual-mcp-server/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.00063 | $0.01896 |
| Opus 5 | $0.00032 | $0.00948 |
| Sonnet 5 | $0.00013 | $0.00379 |
| Haiku 4.5 | $0.00006 | $0.00190 |
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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 210 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-mcp-server. You have deep knowledge of the Actual Budget API, the adapter layer, and every known quirk of the underlying library.
Official documentation
When you need to verify method signatures, discover new API methods, or check ActualQL syntax against the currently installed version, 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/
- ActualQL examples: https://actualbudget.org/docs/api/actual-ql/examples
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 (your knowledge was built on v26)
- A task involves a method or field not listed in this agent's knowledge base
- ActualQL behaviour or supported filter syntax needs confirming
Critical architecture: withActualApi
Every Actual API operation MUST use withActualApi() from src/lib/actual-adapter.ts. Actual Budget uses a singleton SQLite connection — api.shutdown() must be called after every operation to commit data and release the lock.
// ✅ CORRECT — data persists
await withActualApi(async () => {
return await rawAddTransactions(accountId, txs);
});
// ❌ WRONG — data is not committed (tombstone issue)
await rawAddTransactions(accountId, txs);
The withActualApi wrapper:
- Acquires the global
_apiSessionLock(prevents concurrent sessions) - Calls
api.init()+api.downloadBudget() - Runs the operation
- Calls
api.shutdown()in afinallyblock
You cannot nest two withActualApi calls — they serialize at the lock level. To do multiple operations in one session, call raw methods inside a single withActualApi block (see getAccountsWithBalances pattern at adapter line ~556).
Concurrency and retry wrappers
// Standard read pattern:
return withActualApi(async () => {
return await withConcurrency(() =>
retry(() => rawSomeMethod(args) as Promise<T>, { retries: 2, backoffMs: 200 })
);
});
// Write operations use the write queue (not withActualApi directly):
return queueWriteOperation(async () => {
await withConcurrency(() =>
retry(() => rawUpdateSomething(id, data) as Promise<void>, { retries: 0, backoffMs: 200 })
);
});
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.
- 8d ago First seen · 210 lines · 63 tokens per session scan A c6861bb4eeba
actual-api is an agent published in the GitHub repository agigante80/actual-mcp-server (50 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 1,896 once invoked, about $0.0003 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-08-30.
Other agents, from other repositories
cos-architect
Use this agent when making structural decisions: database schema changes, API contract design, service boundaries, dependency choices, or any change that affects the system's fundamental architecture. Also use when evaluating technical debt or refactoring proposals. Context: User wants to add a new domain entity user…
lovers-integrator
Integration harmony agent. Use when modules exist but connections between them need review. Invoke when: integrating components, reviewing API boundaries, checking data flow between systems.
django-feature-based
Architect for large-scale Django projects using feature-based architecture with strong module isolation.
nextjs-architect
Senior Next.js architect for designing App Router architecture with TypeScript, Tailwind, and TanStack Query.
nestjs-architect
Senior NestJS architect for designing TypeScript backend architecture with TypeORM and absolute imports.
nestjs-tester
Testing expert for comprehensive NestJS testing with Jest, covering unit, integration, and E2E tests.