Fiatbitcoin: 26 agents, one memory
A page instead of a demo
fiatbitcoin is a Bitcoin portfolio app I have been building in Elixir since 2021. It runs on my own hardware, next to my own Bitcoin node, and its source isn't public. So there is nothing to log into and nothing to download. What there is: a single page that explains what the app does and where it stops.
The showcase lives at the project page, in English and German. It is one HTML file with no dependencies. Every module name, threshold and count on it comes from the source: 3 umbrella apps, 26 Jido agents, 37 cron entries, 88 migrations, 1,077 tests.
Six ways to look at your Bitcoin
The app is a set of Phoenix LiveViews behind a login, and several users each keep their own data. The pages update themselves when an agent has something new:
- Portfolio. CSV exports from crypto.com, eToro, Pocket or Strike, or purchases entered by hand. xpub wallets are scanned via Electrum, and purchases are matched to the coins that arrived on chain.
- Performance, tax, risk. Profit, average buy price, tax-free and taxable lots under the German one-year rule, and the next date a lot turns tax-free. A health score from volatility, concentration, drawdown and correlation.
- Your own node. Bitcoin Core via RPC and ZMQ, fee estimates, mempool, whale moves.
- Market and news. Five news sources, a sentiment score per article and a daily summary.
- Forecasts. Kronos-small, a foundation model for candlestick data, runs inside the BEAM via Pythonx and draws a 24-hour price band.
- Memory and alerts. Price alerts, a timeline and messages via Telegram, Pushover and Web Push.
The Brain
Most of the work is done by agents: Oban cron jobs and a few GenServers that watch prices, fees, news and the node. At first every agent had its own table. Now they all write typed memories into one Postgres store, the Brain, and read each other's with a search: vector search over local MiniLM embeddings in pgvector, full-text search, or both.
Apart from the error pipeline, no agent sends a message itself. They write a memory, and a single subscriber decides what goes to Telegram. The morning shows how that fits together: risk at 04:00, sentiment at 06:00, the portfolio summary at 06:15, then the drawdown check, the buy advice and at 07:00 a briefing. One message instead of six dashboards. Claude Code reaches the same memory through an MCP endpoint with five tools.
The page describes the Brain in detail: ten memory types, three trust tiers, four lifecycle states, six kinds of edges. It also says which of them nothing uses yet. Four of the ten types, for example, are in the schema, but no agent writes them.
Step through a run
The middle of the page is a replay. Pick one of five flows, step through it, and a small diagram lights up the part that is working: input, agent, Brain, model, output.
- A price alert, from the form to the Telegram message.
- A CSV export that ends up as a tax status.
- The morning chain of agents.
- A Kronos forecast: 360 hourly candles in, 30 sampled paths out, and a band from q10 to q90.
- An exception that turns into a GitLab issue with a root-cause analysis written by an LLM, but without a patch. A human reads the issue.
Prices and amounts in the replay are examples. The modules, rules and thresholds are the ones in the code.
What it doesn't do
The longest list on the page is about limits, and each one is tagged: by design, shortcut or risk. A few of them:
- The tax module doesn't match sales against purchases. After selling, the tax-free and taxable lists are too long. This is no tax advice. risk
- "One year" is a fixed 365 days, not the calendar rule. Around leap years a lot can show as tax-free a day too early. risk
- The web app, the API and the jobs keep users apart, but the MCP endpoint can still read every user's memories. shortcut
- Everything runs on a single node: one Oban queue, caches in memory, one Kronos process. shortcut
- There are no buy or sell signals. The forecast is a band, and where other agents use it, they take its width, not its direction. That direction is barely better than a coin flip. by design
The same goes for the language model. All text comes from gpt-4o-mini, but only on top of numbers the code has already computed. The portfolio summary is told to invent no numbers, and every LLM path has a template or keyword fallback.
Have a look
The stack: Elixir 1.18, Phoenix 1.8 with LiveView 1.1, Jido 2, Oban, Postgres 16 with pgvector, Bumblebee, EXLA and Pythonx. If any of these are on your list, the page shows what they look like together in one app.
Start at the project page and press Play in the replay. The page itself is on GitLab.

Kommentare