agentleFS
CUSTOM-DOMAIN-APPCUSTOM-DOMAIN-APP/docs/AGENTS.md

docs

AGENTS.md4 starsChanged 17 days agoMITView on GitHub

Instructions for AI coding agents working with this repository or implementing custom domains. CustomDomain™ (customdomain.ai) is managed infrastructure that lets a platform's users connect their own domain in one click: automatic DNS configuration and automatic SSL/TLS issuance and renewal. 217 DNS hosts, registrars and domain platforms are catalogued in the census (2026-10-31): 73 have an automatic path (6 provider OAuth, 1 Domain Connect, 66 scoped API key) and the remaining 144 use a guided flow with automatic verification. The live…

  • Reads credentials
  • Sends data out
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Brand: write the product name as CustomDomain™: one word, capital C and capital D, with the ™, every time the product is meant.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Instructions for AI coding agents working with this repository or implementing custom domains.

What this is

CustomDomain™ (customdomain.ai) is managed infrastructure that lets a platform's users connect their own domain in one click: automatic DNS configuration and automatic SSL/TLS issuance and renewal. 217 DNS hosts, registrars and domain platforms are catalogued in the census (2026-10-31): 73 have an automatic path (6 provider OAuth, 1 Domain Connect, 66 scoped API key) and the remaining 144 use a guided flow with automatic verification. The live split is served at https://api.customdomain.ai/v1/providers/census; read it rather than repeating a number from here.

There is no separate ownership-challenge step and no verification TXT record to add on the guided path. Control is proven by the rail itself: an OAuth authorization, a one-click provider apply, a secure sign-in to the account that holds the domain, a scoped API key, the domain's nameservers answering as ours (DNS hosting), or the records appearing in the domain's own authoritative DNS. See https://docs.customdomain.ai/docs/concepts/ownership-and-setup-types.

Connect a domain in 3 steps (REST)

Base URL: https://api.customdomain.ai (API docs: https://docs.customdomain.ai/docs/api-reference)

# 1. Create a connection for the user's domain
curl -X POST https://api.customdomain.ai/v1/connections \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"domain": "app.customer.com", "application_id": "<app>"}'

# 2. Start one-click provider authorization (or fall back to guided manual records)
curl -X POST https://api.customdomain.ai/v1/connections/<ID>/oauth:start \
  -H "Authorization: Bearer $API_KEY"

# 3. Poll until live (DNS written, records value-checked, TLS issued)
curl https://api.customdomain.ai/v1/connections/<ID> \
  -H "Authorization: Bearer $API_KEY"

Connection status is one of pending, propagating, live, failed. A failed connection carries error_code of propagation_timeout or setup_incomplete, and clears automatically if the records later resolve. Do not invent other status names.

Endpoint shapes are illustrative; always follow https://docs.customdomain.ai/docs/api-reference for exact schemas.

MCP server (for agents)

Hosted MCP endpoint: https://mcp.customdomain.ai/mcp (streamable HTTP; an API key, an OAuth client credentials token via https://mcp.customdomain.ai/token, or a delegated agent token). Twenty-three tools: discover a domain's provider, connect, diagnose, recheck, re-apply and disconnect a domain, check a domain's certificate and the workspace's billing standing, list connections, forward a domain, add email records, search for and suggest domains, read domain orders, check, start and roll back a move of a domain's nameservers, and list the workspace's connected provider accounts, find the saved keys that may act for a domain and write the domain's records with one. create-domain-order is fail closed and off on the hosted service. No tool accepts DNS records as input. Record values are computed server-side from vetted templates, which closes off prompt-injection paths that end in arbitrary DNS writes.

claude mcp add --transport http customdomain https://mcp.customdomain.ai/mcp

Docs: https://docs.customdomain.ai/docs/mcp/overview

Key references

Conventions for edits in this repo

Markdown only. Plain, technically accurate language. American English. Keep files under 300 KB.

  • No em dashes or en dashes in new or edited text. Restructure with a period, comma, colon, semicolon or parentheses, and write numeric ranges with "to" ("30 to 60 seconds"). A spaced hyphen is not a substitute. Older pages still contain dashes: rewrite them in any line you change, and leave untouched lines alone.
  • Brand: write the product name as CustomDomain™: one word, capital C and capital D, with the ™, every time the product is meant. "custom domain" in lowercase is the generic thing a customer connects.
  • Identifiers never change to match the brand: Domain Connect providerId/serviceId, npm package names (customdomain-js, @customdomain/react), window.customdomain, customdomain:* events, CustomDomainError, env var names, hostnames and URLs stay exactly as they are.
  • Say the minimum (the owner's rule, 2026-11-06). Everything here is public. Describe what a reader needs to use the product, and nothing about how it works inside: that is a trade secret. Prefer general words over specifics, a category ("service providers") over a name unless a duty requires the name, and "we may" over a description of a mechanism. Pages about terms, privacy, data handling or security say only what a law, a contract or a platform's rules require, in the fewest words. When a page would otherwise state something no longer true, remove or soften it rather than add detail. A pull request that adds such a sentence names the duty behind it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.