Files
hermes-agent/website
Teknium ecd13e59c9 fix(discord): a long reply whose file upload fails is sent whole, never cut at 8
Teknium's ruling on PR #153476: Discord must match Telegram. A reply past
MAX_SPLIT_MESSAGES goes out as one .md file; when that upload fails the
gateway falls back to send(), and Discord's send/forum/edit-overflow paths
still ran main's #86581 cap (_cap_split_chunks): 7 chunks plus a
"Response truncated" notice, the rest dropped. Now every chunk goes out.

- plugins/platforms/discord/adapter.py: _cap_split_chunks and its three
  call sites are removed; MAX_SPLIT_MESSAGES stays as the file-handoff cap.
  Pacing is discord.py's own: its per-route buckets wait on
  X-RateLimit-Remaining/Reset-After and a 429 sleeps retry_after and
  retries, so no second pacer is added.
- locales/*.yaml: platform.discord.limits.response_truncated (its only
  user) is deleted from all 17 catalogs.
- tests/fakes/platforms/discord_standin.py: an opt-in per-channel
  create_message bucket that sends discord.py's X-RateLimit headers, and a
  Via header on 429s (without it discord.py treats a 429 as a Cloudflare
  ban and raises instead of retrying).
- Tests that pinned the Discord truncation (test_discord_split_cap.py,
  test_native_warning_coverage.py's Discord case) are rewritten under the
  ruling to assert every chunk is delivered with no notice. New E2E
  test_discord_long_reply_fallback.py: real gateway + adapter, upload
  refused and a 429 mid-fallback, 40k reply arrives whole (red on 52f239ca).

Live (real gateway + Discord adapter vs the stand-in), 52f239ca -> head:
non-streamed 60k, upload refused: 8 msgs, 13,843 chars + notice -> 31 msgs,
the whole reply, no notice; same with a 429 on the 5th message -> retried,
31 msgs, nothing lost; 5-per-5s bucket -> 33 msgs, never more than 5 in
any 5 s. Upload working, 10k/short controls and Telegram unchanged.
2026-11-12 22:36:28 -08:00
..
2026-11-10 03:03:18 +05:30
…
…

Website

This website is built using Docusaurus, a modern static website generator.

Reading the docs on GitHub? The Markdown under docs/ is authored for the rendered site at https://hermes-agent.nousresearch.com/docs/. Cross-page links are relative Markdown paths, so they follow through on GitHub's file viewer too. Every page on the site has an Edit this page link that opens the source file here.

  • Link to another page with a relative Markdown path, anchors included: [Profiles](../user-guide/profiles.md), [Bundles](../user-guide/features/skills.md#skill-bundles). Docusaurus turns the file path into the page route; GitHub follows the same path. Site routes (/user-guide/profiles, /docs/user-guide/profiles) only work on the rendered site — GitHub resolves them as repository paths and 404s, and the /docs/ form also emits /docs/zh-Hans/docs/... 404s in the zh-Hans build because baseUrl is already /docs/.
  • python3 website/scripts/check_doc_links.py fails on any route-style link in hand-authored pages (EN and the zh-Hans mirror); --fix rewrites them. It runs in the Docs Site Checks workflow. Generated pages (user-guide/skills/{bundled,optional}, reference/*skills-catalog.md) are produced by scripts/generate-skill-docs.py, which emits the same relative form.
  • Pin {#anchor} on cross-linked headings so the zh-Hans mirror keeps the same id.

Installation

yarn

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

USE_SSH=true yarn deploy

Not using SSH:

GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

Diagram Linting

CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.