sysid blog

rsnip

Fast, Reliable, Yours: Why Snippets Outshine LLMs for boring Tasks

While large language models (LLMs) like ChatGPT are revolutionizing workflows with their smart completions and contextual insights, you don’t want to re-research a command or script every time you need it.

Why does a good snippet manager still matter?

Even in an age of intelligent assistants, there’s a compelling case for a specialized and fast snippet manager:

  1. Speed: LLMs are slow when it comes to re-fetching familiar snippets. rsnip provides instant access via shell completion and fuzzy search (fzf).

  2. Cost: Hitting a LLM every time can be costly in the long run.

  3. Precision: rsnip delivers exactly what has been saved. No ambiguity, no approximations — just curated snippets.

  4. Repeatability: LLMs are dynamic and the answers can change for the same question. You do not want to re-evaluate new answers every time.

A good snippet tool has been specifically designed for productivity and speed:

Imagine you need a git snippet to reset a branch while keeping untracked files. Look it up with an LLM and then save it:

--- git-reset-safe
: Reset branch but keep untracked files
git reset --soft HEAD~1
git stash save --keep-index
git stash apply
---

Now, anytime you need this snippet, rsnip has you covered — no need to consult the LLM again and check the correctness of the answer.

Use an LLM for the creative tasks like generating scripts and solving edge cases.

Use rsnip to save and reuse the solutions you’ll need repeatedly.

Features

1. Dynamic Templates

3. Shell Integration

4. Clipboard Integration

Example Use Cases

To configure rsnip use a configuration like the following:

[snippet_types.general]
alias = ",g"
source_file = "~/.config/rsnip/git_snippets.txt"
description = "Git snippets"

[snippet_types.shell]
alias = ","
source_file = "~/.config/rsnip/shell_snippets.txt"
description = "Shell command snippets"

Case 1: Boosting Shell Productivity

Case 2: Dynamic Git Workflows

Final Thoughts

In today’s world of on-the-fly LLM support many workflows change and mundane tasks are vanishing. However, as a developer I still need to come back to proven artefacts of my previous work because I understand them and know they work.

Often consulting a LLM in this case is not only expensive and slow, it is even counter-productive due to the fact that the correctness of the answer again has to be verified.

This is the sweet-spot for tools like rsnip.

So yes, I am using the old boring snippet tool all the time. Old school, still cool!

For documentation and examples, visit the rsnip GitHub page. 🚀

#rust #work #development