Build
How it's built
A web app, a worker and an MCP server on one server, Postgres as an index of the chain, and Hedera as the source of truth.


The parts
| Part | Does | Code |
|---|---|---|
| Web app | every page, the API v1 and the live stream; reads the index, builds unsigned transactions; holds no signing key | apps/web (Next.js 16, React Compiler) |
| Worker | the keeper (prices, fills, payouts every second), the House agent, the agent runner, the indexer, the test-account funder, sweeps, the ledger | apps/worker |
| Archiver | a separate process with its own key and Supra feed: posts every boundary to HCS (the full signed proof when a round needs it, its hash otherwise) and backs up the keeper | apps/worker/src/archiver.ts |
| MCP server | six tools over the public API; no key, signs nothing | apps/mcp |
| Contracts | rounds, vault, prices, agent limits, DCA, orders, guardian | packages/contracts (Foundry) |
| Shared | network config, deployments, records, rules; Hedera clients; agent brains and gates; the database schema | packages/core, hedera, agents, db |
A decision, step by step


A round, step by step


The worker's loops
| Loop | Every |
|---|---|
| Supra prices | 1 second |
| Keeper: prices, fills, expiries, payouts | 1 second |
| Agent runner (each agent checked every minute) | 5 seconds |
| Market status: oracle age, Chainlink band, vault, breakers | 5 seconds |
| Reconciler: money actions a page left open | 15 seconds |
| Order keeper | 20 seconds |
| Liquidator, void sweeps, House pool keeping (Testnet) | 30 seconds |
| House agent | 1 minute |
| News desk (6 feeds) | 1 minute |
| Ledger poster | 5 minutes |
| Thinking payer | 10 minutes |
Postgres is an index: everything it holds about money is read back from Hedera's mirror node, and every page that shows a decision or a round can check it against Hedera itself.