Implementing a minimal bolts.new for education purposes using less than 60 lines of shell along with a system prompt in Markdown. bolts.new is an incr

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-22 15:00:10

Implementing a minimal bolts.new for education purposes using less than 60 lines of shell along with a system prompt in Markdown.

bolts.new is an incredibly fascinating and elegantly designed project, so it’s clear that I can’t replicate all its features with just a few dozen lines of shell.

The purpose of this project is to adhere to the philosophy proposed by Anthropic: learning about LLMs should start with the most fundamental API requests.

To achieve this, I examined the open-source code of bolts.new, found its system prompt, and understood how it drives an LLM to return the necessary materials (files and shell commands) for starting a code workspace. Then, I used a shell script to execute these materials.

This project has no further steps planned. However, you can reference its code and tweak the system prompt to suit your needs. Beyond this project, I am working on a more ambitious and exciting AI coder project. If you’re interested, feel free to follow my X account for updates.

Leave a Comment