You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slash commands across all surfaces (commands.list) #60
openclaw exposes slash commands uniformly — /reset, /status, /model — in every channel and client (commands.list on the wire). Ours returns an empty list (#48). Scope: a small command registry handled in the channel/gateway layer before the agent sees the message; /reset (drop session), /status, /model first; populate commands.list so openclaw clients render them. Related: #46, sessions issue.
commands.list wire shape (what the TUI renders): {commands: [{name, nativeName?, textAliases?, description, category?, source: "native"|"skill"|"plugin", scope, acceptsArgs, args?}]} — params {agentId, provider, scope, includeArgs}, result capped at 500.
The skills bridge is real and in-source: user-invocable skills (filterUserInvocableSkillEntries) become commands — {key: "skill:<name>", textAliases: ["/<name>"], acceptsArgs: true, scope: "both", source: "skill", category: "tools"} — merged into the same list as built-ins. Plugins are a third source. One namespace: native + skills + plugins.
Scope concept: text (typed in chat), native (registered into platform command UIs, e.g. Telegram's command menu via setMyCommands), both. Text parsing is the substance; native registration is deferrable polish.
jsclaw today: commands.list returns [] (feat: openclaw connect handshake and chat events #48 stub); no slash interception anywhere. And one trap: jsclaw has two session-continuity mechanisms — channels thread a per-(channel, peer) sessionId map (reset = delete key), while webchat/TUI ride the persistent agent process holding conversation in memory (reset = close the process via the existing _close sentinel machinery). /reset must handle both or it will look broken on one surface.
PoC scope
Command registry module; built-ins /reset, /status, /skills, /help — openclaw's spec shape from day one
Intercept once for channels (in startChannels) and once in chat.send (webchat/TUI); both reset mechanisms wired
Activity
melvincarvalho commentedon Jun 11, 2026
Audit (2026-06-11) — how openclaw actually does commands, read from their shipped source (2026.6.1)
Findings
Built-in registry: 47 commands (
reset, new, status, model, models, think, compact, help, usage, session, agents, tools, stop, queue, whoami, config, mcp, exec, …). Each is a spec:{key, description, textAliases: ["/reset", …], acceptsArgs, argsParsing, scope, category}. Aliases are first-class (/btw=/side,/export=/export-session).commands.listwire shape (what the TUI renders):{commands: [{name, nativeName?, textAliases?, description, category?, source: "native"|"skill"|"plugin", scope, acceptsArgs, args?}]}— params{agentId, provider, scope, includeArgs}, result capped at 500.The skills bridge is real and in-source: user-invocable skills (
filterUserInvocableSkillEntries) become commands —{key: "skill:<name>", textAliases: ["/<name>"], acceptsArgs: true, scope: "both", source: "skill", category: "tools"}— merged into the same list as built-ins. Plugins are a third source. One namespace: native + skills + plugins.Scope concept:
text(typed in chat),native(registered into platform command UIs, e.g. Telegram's command menu via setMyCommands),both. Text parsing is the substance; native registration is deferrable polish.jsclaw today:
commands.listreturns[](feat: openclaw connect handshake and chat events #48 stub); no slash interception anywhere. And one trap: jsclaw has two session-continuity mechanisms — channels thread a per-(channel, peer) sessionId map (reset = delete key), while webchat/TUI ride the persistent agent process holding conversation in memory (reset = close the process via the existing_closesentinel machinery)./resetmust handle both or it will look broken on one surface.PoC scope
/reset,/status,/skills,/help— openclaw's spec shape from day onestartChannels) and once inchat.send(webchat/TUI); both reset mechanisms wiredcommands.listpopulated with real entries (openclaw clients render them — advances Gateway protocol parity with openclaw — one ecosystem of clients and tools #46)user-invocable: trueskills appear as/skillnameand force-inject the skill body (requires preserving that frontmatter field — overlaps audit finding 5 on Share the skills ecosystem with openclaw — one SKILL.md world #47)Deferred
Native platform registration (Telegram setMyCommands), args schemas, the remaining ~43 built-ins, plugin-source commands (#64).
Merge pull request #69 from jsclaw/issue-60-slash-commands
melvincarvalho commentedon Jun 11, 2026
Shipped in #69 per the audited plan: /reset (+/new), /status, /skills, /help (+/commands) host-handled across webchat, TUI, Nostr, and Telegram; commands.list serves openclaw-shaped entries; user-invocable skills bridge to / with force-injection. Verified live: /status answers instantly with zero tokens. Deferred as noted: native platform registration (Telegram setMyCommands), args schemas, remaining built-ins, plugin-source commands (#64).