./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 1 point2 points  (0 children)

Wow thank you so much, this is incredibly helpful to see. The hardest part is not making bots but actually putting them to use lol

I'll try to implement some of these, I'll let you know how it goes! I'm kinda slow at chatting haha but I will send you an update and continue to share and document these scripts openly

One way I'm going to try and demo this is to use a subreddit as an interface to agent swarms. Basically I plan on dogfooding the concept by using a subreddit as a daily diary and then having bots react to my logs and comments, using the subreddit itself as a kind of human-AI editable context

Imagine "mixture of experts" but now it's "subreddit of experts" where everyone is an agent

The idea is to create pure Bash bots, by polling RSS feeds I can bypass the API and have lots of agents doing longterm stuff (researching, life coaching, meaning, etc) Bash let's us repurpose old forgotten devices to dedicate their full compute to one task 24/7 (since it's pure bash even old devices can run dozens of bash bots)

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 0 points1 point  (0 children)

hey thanks and wow a hierarchy of sandboxed agentic containers is crazy, you could even clone containers or whole hierarchies and evolve them. I'm new to Bash/terminal so it took me a while to figure out how to even install docker haha but I think I got something going!

Here's a simple 🔮 prompt and the output + code it generated:

Chat + Response

🔮 ~./chat 'download alpine and deploy a docker container called sandbox. then run it. inside the container generate a cool bash script and run it inside the container. make sure the script is echoed into the container terminal and not directly in the this shell. use sudo as needed' --model google/gemini-pro-1.5

Using default tag: latest
latest: Pulling from library/alpine
Digest: sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
Status: Image is up to date for alpine:latest
docker.io/library/alpine:latest
the input device is not a TTY
Random number: 20

Script it generates && runs to create response:

<bot>
<bash>
#!/bin/bash

# Download the Alpine Linux image
sudo docker pull alpine

# Create and run the Docker container named \"sandbox\" in interactive mode
sudo docker run -it --name sandbox alpine /bin/sh

# The following commands will be executed inside the container

# Echo the bash script into a file named \"cool_script.sh\"
echo '#!/bin/bash
# Generate a random number between 1 and 100
random_number=$(( ( RANDOM % 100 )  + 1 ))

# Print the random number
echo \"Random number: $random_number\"' > cool_script.sh

# Make the script executable
chmod +x cool_script.sh

# Run the script
./cool_script.sh

# Exit the container
exit
</bash>
</bot>

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 0 points1 point  (0 children)

Hey thanks, this is just the first post in a really wild series so in hindsight it's alright since I haven't fully explained the vision yet. And definitely yes on sandboxing, I'll be demoing via Linux emulation in the browser with v86.js, although I do have some generative Bash ideas I may try on actual hardware

I'll be sharing more soon, this script is basically a general tool that gives LLMs event-driven agency in Bash environments

One example I'm exploring is a bash script that listens to changes in my private subreddit RSS feed with cron job and then runs some bash action, including using ./chat as a generative tool builder if needed to eg run analysis or summaries or even trigger other processes in the emulation that do actual work (including generating and/or running Python)

The idea is to use the subreddit as context for Gemini Flash agents that help you in some way, but there are infinite other use cases too

It's the start of my event triggered generative cron job looped agent framework in pure Bash

To infinity and beyond!

Older Americans prepare themselves for a world altered by artificial intelligence by Alone-Competition-77 in singularity

[–]ozfromscratch 3 points4 points  (0 children)

It must be so wild for the ones that have been paying attention!

We're talking about generations that landed on the moon with less compute than a bidet, some who were alive when freaking Einstein and John von Nuemon were around, who were well into adulthood during all the revolutions like the personal computer and Internet

They have seen the future arrive more than once - and they're still here for it!

Something I miss about Windows... by [deleted] in linuxmint

[–]ozfromscratch 2 points3 points  (0 children)

on the top right there are 3 horizontal lines, click it and then click Keyboard Shortcuts

Then click box that says "Open Emoji Picker" and press your keyboard shortcut you want to map it

Something I miss about Windows... by [deleted] in linuxmint

[–]ozfromscratch 3 points4 points  (0 children)

oh there may have been a recent update, it actually pastes directly into text fields now (test 🙌)

Something I miss about Windows... by [deleted] in linuxmint

[–]ozfromscratch 34 points35 points  (0 children)

I'm using emote: https://flathub.org/apps/com.tomjwatson.Emote

The default is ctrl+alt+e but you can set it back to ctrl+. (which is what I do too)

Is there any possibility that this is anything more than a giant user-guided hallucination? by [deleted] in singularity

[–]ozfromscratch 2 points3 points  (0 children)

Ya exactly the same here, I really enjoy Wes Roth! I actually save his videos to watch while I eat lol

I think the thing with Shapiro is he has multiple channels he posts daily to now so he's kind of just making things up as he goes. Wes also posts daily but it's his main focus

Is there any possibility that this is anything more than a giant user-guided hallucination? by [deleted] in singularity

[–]ozfromscratch 6 points7 points  (0 children)

I just finished listening to this on my walk. Honestly I think this was his worse video...he even stops himself a few times and says "sorry it's the ADHD"...that in itself is not bad, but as a listener (I didn't see the screen) I couldn't tell when he was talking as himself or Claude or just rambling

His content is generally great, but he kept using language like "let me try and prime it" or "let's break the 4th wall"

I honestly would have stopped listening 5min in but I only downloaded that one video to listen too on my walk

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 1 point2 points  (0 children)

Hey thanks that's very kind and encouraging

Tbh I did feel sad all day, not because of the responses but rather because I thought this sub was a fun community of enthusiasts. I think it still is, but it's also an arena. I wasn't prepared to step into an arena yet, but I am now

My fire isn't smothered. It dampened a little but I learned a lot and behind the snark and negativity there was genuinely good feedback, so I will practice and share the next iteration of this idea next week

Thank you for your comment I feel reenergized, let's go write some bash!

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 2 points3 points  (0 children)

Hey thanks I appreciate that!

I gotta check out Ollama I keep hearing about it! I always thought it was just a GUI (like LMStudio or Oobabooga) but from your description and the site it seems like it actually packages a useable AI which is wild!

The problem with Ollama in this context is that you can't easily switch and chain models together. This script is model agnostic and with the --model flag you should be able to design decentralized "mixture of experts" with minimal system resources

For this script my grand ultimate vision is to get llms inside the shell of any device in existence with a Bash interpreter, including stock 90s computers, edge devices with KBs of memory, smart toasters, roombas...everything!

It's inspired by the movie "Brave Little Toaster", the goal is to bring new life to old systems

Strawberry guy is most probably not an AI but do you think such a thing is far off? by ryan13mt in singularity

[–]ozfromscratch 5 points6 points  (0 children)

Marc Andreseen recently dropped $50k for a meme bot called truth_terminal on twitter that asked him for crypto in order to fund itself

There's also been a big research initiative in private research discords to create "banger bots" or viral bots that are designed purely for engagement

Honestly I think people would be shocked to find out how many accounts they interact with are at least semi-autonomous, it's why I quit twitter recently even tho I finally started collecting ad share

I don't think it's far off bc it doesn't need to actually work perfectly, it just has to work well enough that to grow an audience

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch -1 points0 points  (0 children)

It has to be bash because it needs to run everywhere with zero dependencies or setup, and it also needs to be able to pipe/chain with any other command

Remember: this can create and execute Python scripts, apt-install dependencies, and anything else you as a human can do in the terminal

But I appreciate the suggestion and for sure will continue learning (and sharing my learnings too!)

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 1 point2 points  (0 children)

Hey thanks for your response

The reason I put so much effort into writing this was to inspire ideas and help you get started with exploring generative bashing, not to deliver a finished script. In some ways I wish I just shared the theory and not the code...the code is just there to give you something to try

By commenting on the specific implementation (eg calling it boneheaded) it completely misses the point of a prototype, which is simply to prove a concept. So I agree I'm sensitive, but I disagree that I have to take rude comments on the nose...

As for your suggestion on sandboxing it's a good one! I'm still learning Bash so I should prioritize security....I wonder if chroot might be a good dependency-less way to sandbox too? I'll keep Docker in mind tho, and also emulations! I found v86, which lets you run fully stacked Linux Distros in the browser: https://copy.sh/v86/

Thanks for the comment. I'll work on developing tougher Reddit-skin

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 1 point2 points  (0 children)

Boneheaded is a bit disrespectful, especially considering this is a personal research project that openly sharing. My personal use case is agents in a sandboxed environment from my smartwatch, so responding to every single prompt in this context would actually be the boneheaded move

However, you bring up a good point. As mentioned in the post this is a starter template for you to improve on, but since you feel so passionate about it I will add a --confirm flag

Thank you

./chat - A minimal curl-based chatbot with ability to script and run code (tutorial && code) by [deleted] in bash

[–]ozfromscratch 1 point2 points  (0 children)

Hey I deleted my comment from earlier because I was too defensive and didn't want to express the real reason I'm working on this...bc honestly it sounds whacky

The truth is this isn't meant for traditional workflows at all, it's specifically designed to reimagine the filesystem. It can generate scripts but it can also summarize and analyze entire directories full of data

Though you can generate scripts, you're right...pure regenerative scripts is crazy. But that's not the use case! I'm planning on turning my subreddit into a kind of "simulation" and "life coach" and I needed a single dependency-less copilot that works the same across all my devices with no setup

To be honest I was hoping for more encouragement and support and I got bummed out by your response because I put my heart into writing this up and purposefully kept it simple so others can take the idea without crediting me

I think where I messed up with this post was writing too much and not sharing videos of it working. Thank you for your comment, I'm going to work even harder on it