Termbot Usage

Usage Examples Pt. 1

This past weeks I’ve been rebuilding and extending some capabilities of Termbot, and since its usage can be almost endless, I decided to share some usage examples:

πŸ”— Termbot Github Repo

The follwing are just examples; you’ll need to improve the prompts to your own taste and needs.

Case 0: Aliasing Termbot Silent (No banner) for quick access in $HOME/.bashrc or .zshrc:

$ alias t="termbot -s"

Case 1: Summarizing a Blog Post:

Once aliased, copy the raw text contents of a blog post to the clipboard and run:

$ pbpaste | t -p "Summarize this Blog Post in no more than 75 words, and point out the most important takeaways of it"

Case 2: Documenting code:

$ t -p "Generate a README.md for this project /file:app.py pointing out what it does, how to use it, and a general intro to its capabilities | tee README.md"

Case 3: Using Termbot to debug code or finding issues.

For example, an issue I had, which turned out to be an extremely simple mistake which Termbot itself helped me solve in seconds:

$ t -p "For some reason, everytime I execute /file:termbot.py the stderr is 1 even upon successful execution. Where I might be wrongfully returning a stderr of 1?"

Case 4: Summarizing Git Changes and Logs:

This one was super interesting, and I think there may be other useful use cases for Git.

$ git log | t -p "Summarize all Git Changes and Logs"

Case 5: Scraping websites and summarizing their content:

Where “scrape” would be an alias for a simple web scraper tool like the one I made in > WebScraper

$ scrape <url> | t -p "Give me the TL;DR of this information"

Plans for the future, short term

I plan to implement Claude 3 apart from GPT4 to enhance its capabilities and a generic capability of Scraping websites.


Written By

Argandov

Cybersecurity professional and IT enthusiast with a passion for technology, music, personal growth, and Eastern philosophy. Transitioned from mechanical engineering to IT in 2020, with a full-time interest in Technology, Cybersecurity and recent advances in AI. Seeks to integrate eastern philosophy, mindfulness and a growth mindset into daily life and work.