AGENTS.md@website · git:20261117.2c61d52 · 2026-11-17 · sha256 78cb836293fda2ef
AGENTS.md@website git:20261117.2c61d52A
Immutable. This exact content never changes and is served at /api/v1/blob/78cb836293fda2ef.
# hippo website: rules for agents Static Astro + Tailwind v4, deployed to Cloudflare Pages as hippo-memory.com. `DESIGN.md` holds the design rules and `README.md` the dev and deploy commands. Read both before a change. ## Rules - **Wording is locked.** A layout, docs or accuracy task changes no visible text. A text change needs the owner's ask. `npm run build` compares each page with `text-snapshot/` and fails on a difference. When the owner asked for the change, run `npm run snapshot` and commit the result. - **No eyebrow, tagline, helper text or secondary label.** If a screen needs one to make sense, fix the layout. - **The README is the source** for the comparison table and the FAQ. Edit them there, never here. - **No new client JavaScript** without a line in `DESIGN.md` that says why. The site ships one Preact island, the layout script (copy, scroll fade) and the card-cabinet figure's inline script. The home page is the exception: it ships three.js and GSAP, loaded after first paint (`DESIGN.md`). - **Tokens** live in `src/styles/global.css`: `paper`, `paper-2`, `paper-3`, `ink`, `ink-2`, `ink-3`, `accent`, `accent-deep`, `warn`, `rule`, `rule-strong`, `text-body`, `--duration-fast`, `--duration-medium`, `--ease-standard`, `--leading-display`, `--measure`, `--section-y`. Use them; do not write a hex or a duration in a component. Files that draw outside CSS carry their own hexes: `src/components/DecayCurve.tsx`, `scripts/hero/cabinet.js` and `scripts/make-images.mjs`. Change them with the token. The home page has its own palette in `src/styles/home.css`. - **A copy button** goes only on a command block a reader can run as shown (`<Cmd copy>`). Example blocks get none. ## Components (`src/components`) - `Nav`, `Footer`: on every page. `Nav` reads build-time stats from `src/lib/stats.ts`. - `PageIntro`: the h1 and lead of a content page. `Section`: one titled block; its id is the slug of its title (`src/lib/slug.ts`), and `split` puts the heading in a left column from lg up. - `Cmd`: a terminal or config block. `CopyButton`: its copy button; the click handler is in `src/layouts/Base.astro`. - `VsTable`: hippo against one system, from the README table. `Faq`: a pick of README answers. - `RepeatMistakes`: the three Z0 round 3 bars, with no words of its own. `DecayCurve.tsx`: the only Preact island. - `AllBenchmarks`: one setup's public benchmarks on /benchmarks/, a table from md up and a card per row below it. Its data, `src/data/all-benchmarks.json`, comes from the bench scoreboard generator (`scoreboard_extras.py --site-json`); never edit it by hand. - `HowItWorks`: the three stores and the decay curve on /how-it-works/. `CardCabinet`: the figure beside that page's intro, generated by `scripts/figure/build-cabinet.mjs`. That folder is the anatomy skill's MIT kit plus a driver written to the kit's API (its `shapes` field), so oxlint skips it. - `Head`: the shared head tags (canonical, share card, JSON-LD). `Beacon`: the analytics script. `Base` and the home page use both. - The home page (`src/pages/index.astro`) is one standalone page with its own styles (`src/styles/home.css`) and WebGL module (`src/scripts/home-gl.js`); it uses no other component. `scripts/check-readme-sync.mjs` makes it keep the Z0 caveat. Its scoreboard shows only the official-setup rows, the ones comparable with published scores; /benchmarks/ states every loss in its own copy. ## Checks before a PR ```bash npm --prefix website ci npm --prefix website run build # README guard, astro build, then scripts/check-build.mjs ``` `check-build.mjs` fails on a word glued to a link or inline code, a duplicate id, a `DESIGN.md` colour the code does not use, an American spelling, and visible text that differs from `text-snapshot/`. After a deploy, run Lighthouse on the changed pages: every page scores 100 in each category today.