Open the Snippets panel
- Click the Snippets widget at the top right-hand corner.
- Select Snippets.
Create a snippet
- In the Snippets panel, click Add New.
- Fill in the fields:
- Name — a short label, for example
Restart serviceorTail 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.
- Name — a short label, for example
- Click Save Snippet.
Use a snippet
To use a snippet in a terminal session:- Open the Snippets panel.
- Find the snippet you want — either by scrolling or by typing in the search box.
- Click Copy on the snippet card.
- Paste the command into your terminal session.
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.
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
- In the Snippets panel, click the three dots menu on the snippet card.
- Choose Edit to change the name, description, or code, or Delete to remove the snippet.
Next steps
- Connect to a host and start a session.
- Manage credentials used to authenticate.
- Build multi-step procedures with LuumenAI Skills.