← Plugins

Alias

Define your own slash commands that expand to another command or a prompt

$ clisbot plugin add maci0/alias
Report a bug
maci0Utils0installs684dc2d7838cSource
Alias screenshot 1

Define your own slash commands, from the composer or from the Aliases screen in the sidebar.

/alias add gm summarize the repository in five bullets
/alias add rev /review {args}
/alias list
/alias remove gm

After that, /gm and /rev src/app.ts appear in the composer's command list on a running agent.

What an alias does

  • Text starting with / runs that command. /alias add rev /review makes /rev --staged send /review --staged to the agent, so it reaches the provider's own commands and skills. An alias may name another alias; a chain stops after four levels and is reported as a cycle.
  • Any other text is sent to the agent as a prompt. /alias add gm good morning turns /gm now what into the prompt good morning now what.

{args} in the text is replaced with what you type after the alias name. Without a placeholder, the arguments are appended.

A name is lowercase letters, digits, _ or -, starts with a letter, and may not be alias. /alias with no verb opens the Aliases screen, as does /alias list. set is a synonym for add; rm and delete are synonyms for remove.

Storage

Aliases are stored on the host as plugin settings, so every client connected to that host gets the same set, and a change made on one client reaches the others without a reload.

Limits

  • An alias runs only on a running agent, not in a draft. /alias itself works in both.
  • Paseo's built-in commands take precedence over an alias with the same name, and an alias takes precedence over a provider command with the same name.
  • An alias can reach provider commands and other aliases, not the commands of other plugins or Paseo's built-in commands.
  • /alias add and /alias remove give no confirmation on success; a failure shows as an error toast.
  • Paseo does not run a slash command while the composer has attachments.