Giter Site home page Giter Site logo

aish's People

Contributors

craignewlands avatar siliconlad avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

aish's Issues

Support ; command separation

From the Bash Reference Manual:

Commands separated by a ‘;’ are executed sequentially; the shell waits for each command to terminate in turn. The return status is the exit status of the last command executed.

Tilde Expansion

From the Bash Reference Manual:

If a word begins with an unquoted tilde character (‘~’), all of the characters up to the first unquoted slash (or all characters, if there is no unquoted slash) are considered a tilde-prefix.

See all examples in the Tilde Expansion section.

Support AND Command Lists

From the Bash Reference Manual:

An AND list has the form

command1 && command2

command2 is executed if, and only if, command1 returns an exit status of zero (success).

Support Shell Parameters

From the Bash Reference Manual:

A parameter is set if it has been assigned a value. The null string is a valid value. Once a variable is set, it may be unset only by using the unset builtin command.
A variable may be assigned to by a statement of the form

name=[value]

Support Text Prompts to LLM

We want to add an LLM to the shell.

For now, I think it makes most sense to just use one of the hosted models from OpenAI/Anthropic. We can move to a local LLM later on once we've figured out the interface to the LLM. I have some credits in my OpenAI account that I'm happy to use for this, so just ask me for an API key.

I think the interaction that makes the most sense is the prompt surrounded in quotes

"This is a prompt that goes to the LLM"

Then this can be used like

git diff | "Generate commit message"

or

ls | "Output names of all .deb files"

or (when #7 is done)

"Summarise file" < file.txt

Resources:

Support OR Command Lists

From the Bash Reference Manual:

An OR list has the form

command1 || command2

command2 is executed if, and only if, command1 returns a non-zero exit status.

Allow writing to the input prompt

Would be good to get our LLM to write suggestive commands to run in the input prompt without actually running it so that the user has final say on whether to run it or not.

> git diff | "Write a commit message"
...LLM runs and returns the following command:
> git commit -m "<LLM generated response>"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.