Skip to content

v2: decide command execution and mention semantics #34847

Description

@rekram1-node

Context

The v2 command port intentionally keeps slash commands as prompt-template admission only. The old v1 command path could convert commands into subtasks, and there is a related question of whether commands should be able to automatically background work.

The v1 command path also had prompt-like template affordances such as @agent and @file mentions. Those are intentionally deferred in the v2 command port because prompt submit/attachment behavior needs a clearer native design before commands synthesize extra prompt attachments.

Decision needed

  • Should v2 commands support subtask execution at all, or should that stay owned by explicit subagent/tool flows?
  • If command subtasks are supported, should they use the existing subagent child-session mechanism or a separate command-specific primitive?
  • Should commands be able to request automatic backgrounding, or should backgrounding remain a user/tool/session-level action?
  • Should command templates support @agent mentions, or should commands rely on command metadata (agent) and explicit prompt attachments only?
  • Should command templates support @file mentions, and if so should they resolve into prompt file attachments or remain plain text for the model/tools to interpret?

Current behavior

  • Built-in and config commands resolve into normal session prompt input.
  • MCP prompts are exposed as command-shaped entries and resolve into normal prompt input.
  • /review is treated as a normal command for now.
  • Shell interpolation with !...`` is supported for command templates.
  • Command-level subtask/background behavior is intentionally deferred.
  • Command-template @agent and @file mention resolution is intentionally deferred; command text is submitted without synthesizing attachments from those mentions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions