The economy is assembled from three agent populations plus a policy block. Households are the primary agents: each carries a state vector of income (wage plus transfer income), liquid wealth (deposits), illiquid wealth (bonds or equity, depending on the variant), a consumption rule, a saving target, and a labor status (employed/unemployed). The household population is typically 1,000 to 50,000 in research implementations and 50 to 200 in browser-scale toy models. Firms form the second population: each holds a production capacity, a wage offer, a price, a profit margin, and a hiring/firing rule. Firms absorb household consumption demand and pay wages that feed back into household income. The third population is a compact banking sector: one or more banks that take deposits from households, extend credit to firms, and set deposit and lending rates. The policy block consists of a government that collects taxes, pays transfers, and runs a fiscal rule, plus a central bank that sets the policy rate.
Interaction happens through four channels. The goods market matches households to firms: each period, households allocate their consumption budget across firms based on price and availability, firms fill orders from inventory, and unmet demand is lost (no backorders in the baseline). The labor market matches workers to firms: firms post vacancies when demand exceeds capacity, unemployed households apply, and wages are set by a bilateral rule (posted wage with noise, or Nash-style bargaining in richer variants). The deposit market connects households to banks: households deposit unspent income, banks pay a deposit rate that depends on the policy rate and the bank's funding needs. The credit market connects firms to banks: firms borrow to finance investment and working capital, banks screen based on leverage and profitability.
State variables update each period in a fixed sequence: (1) the government collects taxes and pays transfers, (2) firms set prices and post vacancies, (3) the labor market clears (hiring, firing, wage payments), (4) households receive income and make consumption/saving decisions, (5) the goods market clears (purchases, inventory adjustment), (6) firms compute profits and make investment decisions, (7) banks collect deposits, process loan applications, and update balance sheets, (8) the central bank updates the policy rate, (9) aggregate statistics are recorded. This sequential structure means the propagation path from a fiscal shock through household income, consumption, firm revenue, and back into wages is traceable step by step.