hermes-agent/website/docs/reference
Teknium 46176c8029
refactor: centralize slash command registry (#1603)
* refactor: centralize slash command registry

Replace 7+ scattered command definition sites with a single
CommandDef registry in hermes_cli/commands.py. All downstream
consumers now derive from this registry:

- CLI process_command() resolves aliases via resolve_command()
- Gateway _known_commands uses GATEWAY_KNOWN_COMMANDS frozenset
- Gateway help text generated by gateway_help_lines()
- Telegram BotCommands generated by telegram_bot_commands()
- Slack subcommand map generated by slack_subcommand_map()

Adding a command or alias is now a one-line change to
COMMAND_REGISTRY instead of touching 6+ files.

Bugfixes included:
- Telegram now registers /rollback, /background (were missing)
- Slack now has /voice, /update, /reload-mcp (were missing)
- Gateway duplicate 'reasoning' dispatch (dead code) removed
- Gateway help text can no longer drift from CLI help

Backwards-compatible: COMMANDS and COMMANDS_BY_CATEGORY dicts are
rebuilt from the registry, so existing imports work unchanged.

* docs: update developer docs for centralized command registry

Update AGENTS.md with full 'Slash Command Registry' and 'Adding a
Slash Command' sections covering CommandDef fields, registry helpers,
and the one-line alias workflow.

Also update:
- CONTRIBUTING.md: commands.py description
- website/docs/reference/slash-commands.md: reference central registry
- docs/plans/centralize-command-registry.md: mark COMPLETED
- plans/checkpoint-rollback.md: reference new pattern
- hermes-agent-dev skill: architecture table

* chore: remove stale plan docs
2026-03-16 23:21:03 -07:00
..
_category_.json feat: add documentation website (Docusaurus) 2026-03-05 05:24:55 -08:00
cli-commands.md feat: add multi-skill cron editing and docs 2026-03-14 19:18:10 -07:00
environment-variables.md fix(docker): gate cwd workspace mount behind config 2026-03-16 05:20:56 -07:00
faq.md docs: clarify saved custom endpoint routing 2026-03-14 21:12:42 -07:00
mcp-config-reference.md docs(mcp): add comprehensive Hermes MCP docs 2026-03-14 06:36:01 -07:00
optional-skills-catalog.md docs: expand Docusaurus coverage across CLI, tools, skills, and skins (#1232) 2026-03-13 21:34:41 -07:00
skills-catalog.md fix: save /plan output in workspace (#1381) 2026-03-14 21:28:51 -07:00
slash-commands.md refactor: centralize slash command registry (#1603) 2026-03-16 23:21:03 -07:00
tools-reference.md feat: add multi-skill cron editing and docs 2026-03-14 19:18:10 -07:00
toolsets-reference.md feat: add multi-skill cron editing and docs 2026-03-14 19:18:10 -07:00