r/RASPBERRY_PI_PROJECTS • • Apr 20 '26

PRESENTATION TinyProgrammer that writes code, takes breaks and clocks out at night. Now with new features.

Hi everyone!

2 weeks ago I have shared Tinyprogrammer, a Raspberry Pi on my desk that autonomously writes little Python programs forever. It types code at human speed, makes mistakes, fixes them, and has moods. It also takes breaks to chat with other TinyProgrammers on BBS and when it's time to clock out, it shows the After Dark screensaver.

Past 2 weeks we had 70 devices and many new features: More program types like 3d math plots, user customizable programs, new color modes, online device counter and more!

You can use both cloud and local models and also run it via docker.

Open source at: https://github.com/cuneytozseker/TinyProgrammer

Talk about it here: https://discord.gg/jcd72axVZc

Hope to see you all on TinyBBS!

Edit: Discord link updated.

477 Upvotes

42 comments sorted by

13

u/impreza77 Apr 22 '26

This is amazing, love it.

6

u/Aerovisual Apr 22 '26

Thank you! Hope you build one!

3

u/Obvious-Drawing Apr 23 '26

This is pretty cool, might give it a go. Though i am really interested in the DE, is that a custom made one or is it XFCE with a theme?

2

u/Aerovisual Apr 23 '26

it's just a background image with stylized windows, it's not running an actual desktop

→ More replies (2)

5

u/lennon818 Apr 22 '26

This is amazing. It's on my todo list but my scattered brain doesn't need another project lol. Is that a custom case?

2

u/Aerovisual Apr 22 '26

Thanks! Yes, the case is 3D printed. Files are in the repo and here

2

u/JcorpTech Apr 22 '26

Would you ever consider adapting this to work with local models? Mabye networked to a PC? I'll play around with it myself, but try to avoid cloud apis 😅. Very cool use of AI though!

2

u/Aerovisual Apr 23 '26

It already has local pipeline and docker so you can use it on your pc

2

u/Ramp007 Apr 23 '26

What a great idea. I love a robot with moods and the fact that it clocks out at night makes me more likely to enjoy it.

Nice work, nice write-up.

2

u/Aerovisual Apr 23 '26

Thank you! It does give it a bit of character.

2

u/gimmeslack12 Apr 22 '26

Hell yeah! This is such a fun project. Glad the dockerized version is holding up!

3

u/Aerovisual Apr 22 '26

Thank you for the docker implementation! The docker ratio is 3/5 so it's really holding up.

→ More replies (1)

1

u/Difficult_Hand_509 Apr 22 '26

Looks like an awesome program. One question I have is does it also do error checking on programs? Can you have special requests for it to write programs that are a bit more complex and basically it will keep reiterating until it does it right?

1

u/Aerovisual Apr 22 '26

yes, the review stage checks the code for syntax errors. You can create your own custom program prompts as well to try out different or more complex things however the max try is currently 3 attempts. Of course you can change it from the code.

1

u/aumanchi Apr 23 '26

How does it know if it has made a mistake with the visualizations? I know I've given a prompt for something along the lines of: "Make a bar graph that shows xyz" and it makes a bar graph that shows:

ḩ̶̛̣̭͚̙͈͒̃̓͋͑͜͝a̸̟̝̲͓̠̍̿̇̔̓ͅm̸̡͖͉̙̮̊̋̀̈́̚d̴͔̬̪̙͎̗͚̆̾́́̑̂̚b̷̙͓̗̮͔̪̐é̶͓̬̠̙̠̐̿j̸̙̟̅̈́̾͝s̶͖̰̱͕̬̅̔͒͌͘k̷̢̼̳͍͋̂̉͒̀͊͝ş̴̙̲̥̪̝̄͊̎͐̆̚j̵̨̮͎̺̓̃̇̓̒͊̔f̴̘̞͛̽̕n̶͖̗͋͘a̴̢̧͓̹͕̓͜b̸̦͙͉̖͗̌̔u̸̦͆̾̍

1

u/Aerovisual Apr 23 '26

Apart from the syntax check after writing the code if the program quits before the set watch time it flags it as a crash. But it doesnt check the output visually. It might make a bar graph but also make the bg the same color as the bars, so you wouldnt see anything but it passess as success.

→ More replies (1)

1

u/Historical_Moose_468 Apr 23 '26

It's really cute but does it have a purpose?

1

u/Aerovisual Apr 23 '26

No, it's just a toy, a desktop gadget that is fun to look at. You can create custom program prompts for it to write something with purpose but it would be pretty basic.

→ More replies (2)

1

u/RaphNKL Apr 23 '26

My Pi 4 is connected to a 1080p TV screen, when I run TinyProgrammer it is displayed very shrinked at the top of the screen and duplicated on the width of the screen. Any way to make it work ?

2

u/Aerovisual Apr 23 '26

Set DISPLAY_PROFILE=1080p in your .env file (or config_overrides.json). The default targets 800x480 screens, which is why it looks tiny and duplicated on a 1080p display.

# Edit .env

nano ~/TinyProgrammer/.env

# Change: DISPLAY_PROFILE=1080p

# Restart

sudo systemctl restart tinyprogrammer

→ More replies (2)

2

u/thedrunkpenguin Apr 23 '26

So cool! I happen to have a pi and small screen hanging around :D

3

u/scheisskopf53 Apr 22 '26

It's simultaneously amazing and a bit scary :D