agentleFS
homeassistant-aihomeassistant-ai/ha-mcp/site/AGENTS.md

ha-mcp / site

AGENTS.md4.9k starsChanged 2 months agoMITView on GitHub

Astro-based project website under site/. Single-file Astro page that drives the on-site setup flow. Both the metadata (which clients/platforms/scopes exist) and the per-client instruction prose live in this one file. Data — three pre-sorted JS arrays at the top of the component frontmatter, plus two client-capability lists: These feed the picker tiles in the markup section AND the wizard <script> block (state.client, state.scope, etc.). Instruction templates are JS template literals inside the <script> block, keyed off state.client.id / state.client.configFormat /…

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 9 mentionsSep 2026: 26 mentionsOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the homeassistant-ai/ha-mcp repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about homeassistant-ai/ha-mcp

The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 46

Talked about on GitHub, Bluesky and Hacker News (46 times).

On GitHub · 40

35 more on GitHub

On Hacker News · 1

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add an entry to the appropriate inline array (insert at the right order position).

    line 34
  2. Very specific:

    If the addition has cross-cutting troubleshooting content (PATH issues, restart requirements, version requirements), add it to faq.astro.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Site

Astro-based project website under site/.

Commands

cd site
npm run dev      # Dev server with hot reload
npm run build    # Production build
npm run preview  # Preview production build locally

Setup Wizard (site/src/pages/setup.astro)

Single-file Astro page that drives the on-site setup flow. Both the metadata (which clients/platforms/scopes exist) and the per-client instruction prose live in this one file.

Data — three pre-sorted JS arrays at the top of the component frontmatter, plus two client-capability lists:

const clientsData = [...]     // 21 supported AI clients
const platformsData = [...]   // macOS / Linux / Windows / Docker
const scopeData = [...]       // local / remote
const stdioOnlyClients = [..] // need the fastmcp-remote bridge for HTTP
const remoteOnlyClients = [..]// cannot use a local endpoint, need public HTTPS

These feed the picker tiles in the markup section AND the wizard <script> block (state.client, state.scope, etc.).

Instruction templates are JS template literals inside the <script> block, keyed off state.client.id / state.client.configFormat / platformId / state.method / state.remotePath. Cross-cutting troubleshooting and restart-related help lives in site/src/pages/faq.astro; install walkthroughs live in guide-macos.astro / guide-windows.astro / guide-linux.astro / guide-addon.astro.

Adding a new client / platform / scope / server method / remote path:

  1. Add an entry to the appropriate inline array (insert at the right order position). Keep each array ordered by the order field — the wizard renders entries in array order without re-sorting.
  2. Add a wizard branch in the <script> block keyed off the new entry's id. Match neighboring patterns: JSON clients add an else if in the JSON config builder; CLI clients add a CLI command emit; UI clients add an instruction-block div with click steps. A configFormat shared by clients with incompatible schemas needs an id guard of its own — see the hermes branch, which would otherwise inherit Continue's YAML shape. See cursor / chatgpt / claude-code / cloudflared for examples.
  3. If the addition has cross-cutting troubleshooting content (PATH issues, restart requirements, version requirements), add it to faq.astro.

Accessibility & checks

The site is accessibility-anchored (#1574/#1595). Before pushing site changes:

cd site
npm run check       # astro check — types + a11y diagnostics
npm run lint        # eslint-plugin-astro + jsx-a11y
npm run build       # required before the audit (writes dist/)
npm run audit:a11y  # axe-core over the built pages

CI runs these in the site-checks job (.github/workflows/pr.yml): check, lint, and the axe-core audit are all blocking. Accessibility conventions — landmarks, skip links, tablist semantics, live status regions, and the theme/contrast tier model — live in .gemini/styleguide.md › Accessibility.

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.