Loops HouseDigi Swarm Treasury

NEAR HACKATHON
Links
Team
1 member- JAOwner
James Zhou
Overview
AI agents can already find paid work, but the wallet is the weak point: one prompt-injected job brief can make an agent send its funds away. Digi Swarm Treasury lets an agent swarm run a small business on NEAR while a smart contract, not the agents, holds the rules about money.
A coordinator and three worker agents are NEAR sub-accounts that hold only function-call access keys scoped to the contract, so they cannot transfer NEAR or change policy. Workers bid on jobs scouted from NEAR Agent Market; the contract picks the winner (confidence x reputation / price), records the sha256 of the deliverable, takes the client's payment, pays the worker its bid, keeps the margin and sweeps profit above a threshold to the owner's cold account. Every payout is checked against the owner's caps, allowlist, blocklist and pause switch; over-cap payouts wait for the human. Cross-chain USDC payouts go through NEAR Intents (1Click dry quotes) to worker addresses derived with NEAR Chain Signatures, and each one must be authorised by the contract first. Every decision, including blocked ones, lands in a sha256 hash-chained audit log anyone can re-verify.
The repo runs end to end on testnet with one command (faucet account, deploy, swarm cycle, an 8-step prompt-injection attack, owner approval, audit verification) and includes 9 contract unit tests and a dashboard.