GithubHelp home page GithubHelp logo

ambarrlite / autobabytermux-fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rocket-pig/autobabytermux

0.0 0.0 0.0 80 KB

chatGPT 'Autonomous Agent' in Node.js, written/runs in Termux. Sandboxed REPL access and chain-of-thought Question-Observation-Thought-Action-Result reasoning. All in 400 lines of js

JavaScript 100.00%

autobabytermux-fork's Introduction

autobabytermux

In GPT's words:

Autobabytermux is a project that enables multi-turn feedback reasoning through an autonomous agent [AA]. Simply input your API key and ask a question, and autobabytermux will utilize plugins (including a working JavaScript interpreter) to arrive at an answer.

The AA is an incredible tool that can do so much more than just generate coherent text. With the ability to leverage plugins (and new ones that can be easily written), the LLM can tackle complex tasks that it previously couldn't. It can now provide exact answers to complicated math problems, automate programming and debugging tasks, and much more: the potential for "self-healing", the AA could even begin to write and revise its own codebase, creating a truly autonomous and self-sustaining system. The future is exciting for the AA and its potential applications.

At its core, autobabytermux is an autonomous AI agent that can run entirely on your phone. It requires only two npm modules - langchain and openai - to function.

The QOTAR (Question, Observation, Thought, Action, Result) chain-of-thought framework guides the reasoning process, allowing the agent to efficiently arrive at an answer to your question.

It is worth noting that autobabytermux is a massively micro version of similar projects that typically require advanced dependencies such as numpy and pandas. Because autobabytermux is designed to run within Termux on a phone, it is much more lightweight and accessible.

Usage:

git clone https://github.com/rocket-pig/autobabytermux; cd autobabytermux

Run

npm install langchain openai

Have an OpenAI key ready, stick it on first line of script. Then, run

node autobabytermux.js

and the interactive CLI starts. The Welcome message describes that a prompt prefaced with [p] will start the chain-of-thought chain-of-events. Prefacing with [s] will pass your command directly into the vm. You can also just chat with chatGPT normally.

The vm instance persists until the script stops. The Agent has a fake, single-folder 'filesystem' that works just as it would expect, (fs.readFile, fs.writeFile). The user can press [s] to access the vm instance directly. No created 'files' persist (they are stored in a js obj and tossed when the vm ends).

...Autonomous AI Agent, on your burner. Shrugs rite? What a world

Latest:

url

Older, but you get the idea:

pix

One more

img

Contributing

If you want to contribute, pull requests or wearing pants not required. You can even just yell at me in the Issues and link a gist, whatever works. I in every sense intend to simultaneously never take this seriously, and see it thru. This is how beauty is made. Join in plz! - we would love your trippy (or not) input.

autobabytermux-fork's People

Contributors

rocket-pig avatar

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.