Skip to content
/ naash Public
forked from Sushants-Git/naash

Always Two command ahead. A Shell faster than your thoughts.

Notifications You must be signed in to change notification settings

veesesh/naash

 
 

Repository files navigation

NAASH (Not another AI shell)

This was made as a hackathon project for HackThisFall 2024

Always Two command ahead. A Shell faster than your thoughts.

image

Problem

Shells are supposed to be fast, but integrating AI in them makes them slow. So, we combined the capadilities of a users clipboard and ai models to make this super fasttt.

image

Configure

  • Create a .t.env file in your home directory.
{
  # gemini
  "gemini_apiKey":"API_KEY",

  # open ai
  "azure_endpoint": "API_ENDPOINT",
  "azure_apiKey": "API_KEY_OPENAI",
  "azure_deploymentName": "API_DEPLOYMENT_NAME",
}

Installation

  • To install dependencies:
bun install
  • Link the cli
bun link
bun link cli
  • Usuage
naash
  • if you do not have a open ai key you can just use the gemini_apiKey but you won't be able to use the switchAI command.

Features

  • Look through users clipboard hitory, to auto suggest commands, eg: if the url has https://github.com/Sushants-Git/team-gap then auto suggest git clone https://github.com/Sushants-Git/team-gap and same for wget, npm, brew and more. image

  • hm (help me), look through naash custom error stack that stores all terminal errors that a user has encountered, and using that to suggest a correct command and getting it copied straight to users clipboard. image

  • hp (help prompt), convert natural language to commands. image

  • he (help explain), explain things about the terminal that the user wants to know. image

  • Multi-Model, no vendor look in you can switch between openai and gemini models. image

About

Always Two command ahead. A Shell faster than your thoughts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.7%
  • JavaScript 9.3%