Skip to main content
Snippets are saved commands you can quickly copy into any terminal session. Use them for the bash commands, scripts, and one-liners you run repeatedly — health checks, log queries, service restarts, deploy commands. Once saved, snippets are also available to LuumenAI, which can suggest or run them when they fit the context of your conversation.

Open the Snippets panel

  1. Click the Snippets widget at the top right-hand corner.
  2. Select Snippets.
The Snippets panel opens on the right side of the tab. It shows every snippet you’ve saved, with a search box at the top.

Create a snippet

  1. In the Snippets panel, click Add New.
  2. Fill in the fields:
    • Name — a short label, for example Restart service or Tail dispatcher logs.
    • Description — what the snippet does. This helps both you and LuumenAI understand when the snippet applies.
    • Code — the command or script to save. Snippets support multiple lines, so you can save full scripts, not just single commands.
  3. Click Save Snippet.
The new snippet appears in the Snippets panel and is immediately usable.

Use a snippet

To use a snippet in a terminal session:
  1. Open the Snippets panel.
  2. Find the snippet you want — either by scrolling or by typing in the search box.
  3. Click Copy on the snippet card.
  4. Paste the command into your terminal session.
Use the search box for fast access when you have a long list of snippets.

How LuumenAI uses snippets

LuumenAI reads your snippet library and can use snippets two ways:
  • Suggest — when you ask LuumenAI something where one of your snippets applies, it can recommend the snippet rather than generating a new command.
  • Run — based on the context of your conversation, LuumenAI can run a snippet directly against the host you’re connected to. As with any LuumenAI action, you approve the run before it executes.
Because LuumenAI uses both the name and description to decide when a snippet applies, write descriptions that explain the snippet’s purpose. A snippet called Tail dispatcher logs with the description “Stream live dispatcher work logs and validate path” gives LuumenAI better context than the same snippet with no description.

Tips for writing useful snippets

  • Be specific in the description. “Restart service” is vague. “Restart the SAP dispatcher service via systemctl” is something LuumenAI can match against real conversations.
  • Use placeholders for values that change. If a command takes an argument, write the placeholder clearly — for example systemctl restart <SERVICE> — so you remember to fill it in before running.
  • Group related commands into one snippet if they’re typically run together. Multi-line snippets are supported.

Personal vs. shared snippets

Snippets are currently scoped to you — they’re personal and not visible to other workspace members. If you want a teammate to have access to the same snippet, share the code directly with them.

Edit or delete a snippet

  1. In the Snippets panel, click the three dots menu on the snippet card.
  2. Choose Edit to change the name, description, or code, or Delete to remove the snippet.

Next steps