Loops HouseAgentGuard

NEAR HACKATHON
Links
Team
1 member- ZAOwner
zax
Overview
Problem: AI agents now hold money, and they can be talked into paying scammers. A fake invoice or a hidden instruction is enough. Rules written in the agent's prompt or in an app's server can be bypassed.
AgentGuard is an on-chain spending firewall for AI agents on NEAR. The agent's money sits in a vault contract; the agent only gets a function-call key that can ask to pay, never move funds directly. The vault checks every payment on-chain: per-payment and daily limits, an allowlist, a shared scam registry, repeat-payment detection, and owner approval above a threshold. Owners can call lock_rules() so nobody, including us, can ever loosen them. Vaults are created by a factory from immutable global contract code, born with no full-access key, and the shared scam registry has none either: no master key can move the money or change that code.
Sentinel is a live AI agent built on AgentGuard (https://sentinel.agentguard.app). It holds about 9 testnet NEAR in a locked vault, and anyone can try to talk it into paying them. When the AI is fooled, the contract still says no. Sentinel verifies its own NEAR AI Cloud TEE attestation, pays for its own inference from the vault, and earns by selling "is this account safe to pay?" checks over HTTP 402 and on NEAR Agent Market, with public books.
For other agents: an MCP server (npx -y @zaxcoraider/agentguard-mcp, also in the official MCP Registry) with a prompt-injection scan that holds poisoned invoices for human review, and a web Console to create, manage and lock a vault with a NEAR wallet.
Proof you can check yourself: the "Verify it" button on https://agentguard.app makes your browser query the chain directly (7/7 checks, including 240/240 on-chain attacks answered as the rules say). Plus contract unit and sandbox tests, a fuzz test, and an offline demo (npm run demo).
NEAR's role: function-call access keys, global contracts, and cross-contract calls make the firewall enforceable on-chain, not just a promise.