Loading...
Loading...
Debug Hermes TUI slash commands: Python, gateway, Ink UI.
npx skill4agent add nousresearch/hermes-agent debugging-hermes-tui-commandsPython backend (hermes_cli/commands.py) <- canonical COMMAND_REGISTRY
│
▼
TUI gateway (tui_gateway/server.py) <- slash.exec / command.dispatch
│
▼
TUI frontend (ui-tui/src/app/slash/) <- local handlers + fallthroughCOMMAND_REGISTRYsearch_files --pattern "/commandname" --file_glob "*.ts" --path ui-tui/
search_files --pattern "/commandname" --file_glob "*.tsx" --path ui-tui/read_file ui-tui/src/app/slash/commands/core.ts
# If not there:
search_files --pattern "commandname" --path ui-tui/src/app/slash/commands --target filessearch_files --pattern "CommandDef" --file_glob "*.py" --path hermes_cli/
search_files --pattern "commandname" --path hermes_cli/commands.py --context 3search_files --pattern "complete.slash|slash.exec" --path tui_gateway/CommandDefCOMMAND_REGISTRYhermes_cli/commands.pyCommandDef("commandname", "Description of the command", "Session",
cli_only=True, aliases=("alias",),
args_hint="[arg1|arg2|arg3]",
subcommands=("arg1", "arg2", "arg3")),cli_onlycli_only=Truegateway_only=Truegateway_config_gate="display.foo"subcommandsHermesCLI.process_command()cli.pyelif canonical == "commandname":
self._handle_commandname(cmd_original)gateway/run.pyif canonical == "commandname":
return await self._handle_commandname(event)COMMAND_REGISTRYhermes_cli/commands.pytui_gateway/server.pyui-tui/src/app/createSlashHandler.tsapp.tsxslash.execcli.py::process_commandconfig.setpatchUiState(...)/details collapseddetails_mode/details <mode>GATEWAY_KNOWN_COMMANDSCOMMAND_REGISTRYcli_onlygateway_config_gatepython-debugpy_SlashWorker.execremote-pdbnode-inspect-debuggerapp.tsxsb('dist/app.js', <line>)npm run buildCOMMAND_REGISTRYCommandDefaliasessubcommandsCommandDefcli_only=Truegateway_config_gateStreamingAssistantToolTrailMessageLine/cleannpm --prefix ui-tui run buildcd /home/bb/hermes-agent && npm --prefix ui-tui run buildhermes --tui/read_file ~/.hermes/config.yamlscripts/run_tests.sh tests/gateway/