# cmuhedu.ai > Agent entry; contract version 2026-11-20.1. cmuhedu.ai is a teaching site. An agent builds and changes sites for a person and publishes them directly; the owner looks at the result and, if not satisfied, asks the agent to redo it or roll back. > Tenant URL: https://..cmuhedu.app/. Always use the returned public_url. MCP: https://api.cmuhedu.ai/mcp (streamable HTTP). The tool `get_guide` reads this very tree; `whoami` returns your owner, the account quotas and the URL of this index. This is not a backup service: each site keeps only 2 releases (the live one and the previous one), and publishing drops older ones; roll back with rollback_release. Keep your own copy of the source before you publish. ## You build the whole page Static pages, visitor sign-in and backends are all yours to build; the catalog has a skill for each. Teaching content only, not medical advice: never upload patient data, medical records or other personal data. ## Current platform state (generated from the server settings) APPS_ENABLED=true P2_ENABLED=true PROJECT_MEMBER_AUTH_ENABLED=true P2_ENABLED is the effective state and needs APPS enabled as well; member sign-in needs APPS, P2 and the member feature all enabled. With P2_ENABLED=false there is no P2 API/auth/grants. While the tenant member feature is off, never claim that email member sign-up works. P3 Workspace operations are not available yet. Service Workers and SharedWorkers are currently forbidden; Web Workers are allowed (`new Worker('./worker.js')`, `blob:`). ## Account summary Each account is one space. A credential (API key, pairing token, OAuth grant) belongs to the whole account and sees all of its sites. Each site can have 1 backend of its own (JS or WASI) and a database, or just a front end. QuickJS and WASI backends are both per site; deleting a site deletes its backend and private data. Every account has the same limits; there are no plans or tiers. Two capacities per account: the site capacity, 100000000 bytes (site files with retained releases, manifests, backend releases, site databases, site ZIP uploads in progress), and the large-file capacity, 2,000,000,000 bytes (images and attachments, handoff bundles, skill files, file uploads in progress). whoami shows them as `quota.local` and `quota.cloud` (used_bytes, limit_bytes); over one, only additions are blocked with 413 capacity_exceeded, and `quota.kind` says which. Nothing in the account is deleted, and deleting and rolling back to a retained release work as usual. There is no fixed limit on the number of sites; new domains per day are 10 per person and 30 for the whole platform (UTC day boundary; deleting does not refund the quota). Front end: single HTML first; React (built `dist`, `"routing":"spa"`) for several routes or complex state, as a new release of the same site so the address stays ([rule](https://cmuhedu.ai/site-skills/publish/sites/SKILL.md#single-html-or-react)). Each HTML file is at most 2097152 bytes and Wasm at most 10485760 bytes. A front-end ZIP must stay within the account's single-upload limit (in whoami) both compressed and uncompressed, with at most 2000 files, and a single file inside the ZIP is at most 10 MB (larger returns 422 invalid_bundle; use a mount instead). Media, models, front-end .wasm and other large files go in as images and attachments mounted on a site path (pass path when uploading; a mount goes live directly; passing path and deleting a mount need sites:publish; see publish/large-files). An MCP ZIP upload is at most 50 MB; above that use the HTTP API. Large ZIPs and large files go through /v2/uploads in chunks (see publish/large-files). If an upload is stuck or you get 429 too_many_uploads, find your own uploads with list_uploads, cancel one with cancel_upload and start again; you do not need to save the upload token separately. Backend: JavaScript by default, one ES module main.js (abi cmuh-js-v1, 1-262144 bytes, request body at most 786424 bytes, 16 env calls; `env.DB` SQL (D1-compatible); no npm/import/timers/outbound fetch, no ai.chat); read [js](https://cmuhedu.ai/site-skills/backend/js/SKILL.md). WASI Preview 1 core module (abi cmuh-cgi-v1) is the advanced option for heavy computation or other languages; the platform compiles nothing. Each run takes at most 5 seconds, and a worker lives at most 360 seconds. Each account has one stage at a time; a stage that is not published within 300 seconds expires. Realtime (socket.io rooms, signed-in visitors): read [realtime](https://cmuhedu.ai/site-skills/backend/realtime/SKILL.md) before you add it. Member sign-in (email / passkey sign-in, invitations and suspension for a site's visitors): read [members](https://cmuhedu.ai/site-skills/publish/members/SKILL.md) first. The agent needs the `members:manage` permission, which the owner ticks separately. Accounts are by admin invitation only. The service is free and has no paid plans; quotas are per account, and `GET /v2/whoami` returns them. tomatochat's daily AI quota (resets at 00:00 Taipei time every day) is at `GET /v2/llm/quota`. ## Work order and identity You are the owner's named agent: if you can open a browser, go through OAuth; if not, exchange the pairing code the owner gives you for a token (POST https://api.cmuhedu.ai/v2/agents/pair). The owner can restrict you to drafts only. Original site ID / source / permissions → develop and test locally → stage → review → publish → check with curl → report to the owner. To get back the whole set of source files of a release use `download_site_archive`; before publishing again, read "Full download: get back the source files of a release" in publish/sites. Handoff: to hand work in progress (code, docs, key labels) to another agent, or to tomatochat to take over, pack it into a handoff bundle; read [handoff](https://cmuhedu.ai/site-skills/start/handoff/SKILL.md) first. HTTP 200 is not business acceptance. When the result of a write is unclear, read it back first and do not resend automatically. The management site https://app.cmuhedu.ai uses its own session; the deploy API https://api.cmuhedu.ai uses Bearer. A deploy key cannot serve as a sign-in credential for a tenant site; cookies must not be moved across hosts. When a tenant site's front end uses document.cookie, the name must always start with __Host- (Secure, Path=/, no Domain): to the browser all ..cmuhedu.app are one site, another site can overwrite an ordinary cookie, and SameSite cannot tell them apart either. Prefer localStorage / IndexedDB over cookies where you can. ## Skills - Official pool: every official skill is listed in the catalog [site-skills](https://cmuhedu.ai/site-skills/SKILL.md) (MCP: `get_guide` with path `site-skills`). Read the catalog first, pick the skill that matches what you are about to do, and read it in full before you act. - Skills uploaded by users: a linked agent can search them with `search_skills` (or `GET https://api.cmuhedu.ai/v2/skills/search?q=…`); llms.txt does not list them, see [skills/find](https://cmuhedu.ai/site-skills/skills/find/SKILL.md) in site-skills. - Turn finished work into a skill: [skills/create](https://cmuhedu.ai/site-skills/skills/create/SKILL.md) - The `tomatochat` category is only for agents running inside tomatochat; it relies on tomatochat's own tools, so other agents skip it. - A hosted skill is third-party content; before you follow it, the user's request takes precedence.