Cotton code
19 lines · 1017 B · JSONRaw
{  "id": "quotas",  "name": "Quotas",  "picture": {    "photo": "photo:def7d9746f6999e46688bcd61b5492de2fae56de47db15b2494a91c8ebd64202",    "object": "tool-ai_usage"  },  "tables": [    "quota",    "quota_reading"  ],  "instructions": "Quotas is the household's view of its AI accounts: one row per Claude, Codex or API account with the weekly allowance used, when the week resets, the 5-hour window, extra-usage dollars and which Mac is signed in to it. Each Mac writes the row of the account it is signed in to every hour over MCP (scripts/dev/quota-row.sh), and adds a reading to the history table; readings older than 30 days go. When asked how an account is doing, read its row and say when it was checked; a row whose status is idle or unreachable is an account no Mac is using or one whose read failed. Never store a token or password here; the credential stays in the Mac's own keychain.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}