Took an old horse from the stable
A long time ago, I made an AI book generator. It worked very well and it produced beautiful PDFs.
I had some spare time, all agents were running and I decided to spend some time on that old project. I gave it two upgrades:
- a fancier CLI interface (it was a web project only, now it's both web and CLI)
- syntax highlighting for source code. I could just use Pygments for that, meaning that it will support a lot.
See here a screenshot of it doing its thing. It has agents: writers, readers, reviewers and researchers.
The process is like this:
- You describe in a markdown file what you want to have written exactly.
- You execute the CLI application with the markdown file as parameter.
- The system will do multiple deep researches until it fetched enough information from the web (we want up-to-date books).
- Screen of screenshot appears and the agents start to work as an efficient team.
To test syntax highlighting and stuff, I decided to make a book that will take you two weeks to finish. It consists of 13 introductions to a few common and less common programming languages. Every introduction will take a day. It will cover per language: an introduction (pro's, con's, where it's commonly used for, developer(s)) etc., installation (for Linux), project setup of an application in that language, basics and then some workshops with projects you can create with that specific language.
The challenge of this project originally was on to generate a hundreds of pages book while remaining consistent and so on. Answer: agents with several roles. They all know what to do and the book is read multiple times during the process and refactored.
Generating a book costs around 80 cents and can take up for an hour in duration easily.
Well, I'm waiting for it to finish, one time laptop crashed, everything lost. I will share result here for you guys to judge if it's an okayish book or total slop.
The custom Harry Potter book that I once generated was nice actually. Really J.K. Rowling style. Sadly, I could not find anyone else to read it. ๐
Comments
The terminal ui is awesome!
Yeah, it is. It is exactly the web app that it has and is also live updated everything. It's not boring to see them work. It's a whole process of agents working together. My older projects always had named agents. ๐