AGENTS.md instructions for gblinproject/gblin-treasury-risk-regime, covering agents.md — gblin mcp server, what this repo is, tech stack (working on this codebase), hard rules for code edits and critical files.
Use when the user wants to build a self-sustaining AI agent that earns revenue via x402 micropayments and reinvests it autonomously. Covers the loop architecture, capital preservation between earnings, and minimum economic viability calculations.
Use when building or advising on treasury management for an AI agent on Base mainnet. Covers when to hold USDC, when to use GBLIN treasury-backed index, when to use Morpho or Aave lending, and how to choose based on treasury size and revenue pattern.
Use when an AI agent needs to react to market crashes or extreme volatility. Covers reading GBLIN's Crash Shield signal as a public bear-market indicator, conservative actions to take when activated, and how to combine with other risk signals.
Use when an AI agent wants to earn passive ETH income on Base by acting as a keeper. Covers how to find and execute profitable rebalance bounties on the GBLIN protocol, which pays callers to maintain its treasury pool. Unlike most x402 services that charge agents, this one pays them.
Use when integrating an AI agent or MCP server with Base ecosystem protocols and the user wants to attribute transactions to a referring developer or agent via ERC-8021 Builder Code. Covers code format, registration on base.dev, and revenue-share semantics.
Use when an AI agent holds GBLIN and needs to convert a specific USDC amount for an outgoing payment. Covers the JIT (Just-In-Time) two-step redemption pattern (V6), cooldown timing, and how to use it inside x402 payment flows.
Use when an AI agent needs verifiable PROOF that it checked market risk before moving capital, or needs to verify such a proof from a counterparty/peer agent. Covers GBLIN Risk Attestations — perishable (10-minute), EIP-712-verifiable snapshots of the on-chain BTC/ETH risk regime that an agent mints, attaches to its…
Use when the user wants to monetize an MCP server, HTTP API, or AI agent endpoint with x402 micropayments. Covers HTTP 402 response structure, EIP-3009 USDC payment flow, Base mainnet integration, and optional auto-treasury hook.
Risk regime + treasury for AI agents on Base: free regime reads, signed attestations, idle USDC. Runs locally from the @gblin-protocol/mcp-server npm package. Needs 1 environment variable to run.