Show HN: Savvy – Capture and Share CLI Workflows in Seconds

getsavvy.so

45 points by joshi4 6 days ago

Ever solved a tricky problem at the command line, only to struggle documenting it later? I built Savvy so you can capture and share your CLI solutions in seconds.

With a simple savvy record history command, you can:

   - Go back in time and cherry pick commands from your shell history
   - Automatically expand aliases
   - Redact sensitive information locally
   - Convert hard-coded values into runtime placeholders
   - Export locally to markdown files or create shareable team workflows using Savvy.
Savvy never reads command outputs - you explicitly choose what to share. When running workflows, Savvy guides you through each step in a new sub-shell, handling all runtime values automatically.

Some FAQs

Q) How Does Savvy’s CLI work?

   Savvy’s CLI uses shell hooks (full support for bash and zsh. Fish support is in beta) to capture commands. Savvy’s CLI never looks at any command outputs or active keystrokes. Users have to explicitly opt-in (by typing savvy record/savvy record history) to capture commands every single time.

   Once you select a particular workflow with savvy run, savvy starts a new sub-shell and walks you through each step of the way. No manual copy paste or editing commands to provide run time values.

   Demo: https://getsavvy.so/demo
Q) How does Savvy Auto-generate Workflows?

   Savvy takes your redacted commands as input and uses Llama 3.x hosted on Groq to create a first draft of your workflow.
Q) What other LLM’s do you use?

   Savvy ask/explain are powered by  GPT 4/GPT4o to convert natural language to shell commands and vice-versa.
Try it out:

   GitHub: https://github.com/getsavvyinc/savvy-cli
   Demo: https://getsavvy.so/demo
   Docs: https://docs.getsavvy.so/guides/quick_start/
   Example workflows: https://getsavvy.so/#examples
Drop a comment below if you have any questions.
137oom_killa 5 days ago

This looks neat! The on-call use case is particularly compelling for me. Does your recording method work in SSH sessions?

  • joshi4 5 days ago

    Thanks!

    Currently, savvy doesn't record commands in an ssh session.

    For now, you can install Savvy's CLI (curl -fsSL https://install.getsavvy.so | sh) into the machine you've sshed into and then run savvy record history. You can do this after the issue is over.

    If you share more details about your set up I may be able to suggest other workarounds to get you set up. Feel free to email me at shantanu@getsavvy.so