Skip to content

Slash commands across all surfaces (commands.list) #60

Closed

Description

@melvincarvalho

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.

Activity

  1. melvincarvalho commented on Jun 11, 2026

    @melvincarvalho
    ContributorAuthor

    Audit (2026-06-11) — how openclaw actually does commands, read from their shipped source (2026.6.1)

    Findings

    1. 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).

    2. 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.

    3. 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.

    4. 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.

    5. 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

    Deferred

    Native platform registration (Telegram setMyCommands), args schemas, the remaining ~43 built-ins, plugin-source commands (#64).

  2. added a commit that references this issue on Jun 11, 2026
  3. melvincarvalho commented on Jun 11, 2026

    @melvincarvalho
    ContributorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions