DEV Community

Cover image for Open-Source Book Creator with Multi-Agent AI
Fernando Guerra
Fernando Guerra

Posted on

2 2 1 1 2

Open-Source Book Creator with Multi-Agent AI

I'm excited to share ** 📝 LibriScribe**, an open-source book creation system I've developed that demonstrates the power of multiple specialized AI agents working together.
You can just install it with python and the system will guide you to write a complete book in a few minutes :)


The Power of Multi-Agent Architecture

Image description

Rather than using a single AI model to handle all aspects of book creation, LibriScribe orchestrates specialized agents:

  • ConceptGeneratorAgent: Develops and refines your initial idea
  • OutlinerAgent: Structures your book with chapters and scenes
  • CharacterGeneratorAgent: Creates detailed character profiles
  • WorldbuildingAgent: Builds rich, consistent settings and lore
  • ChapterWriterAgent: Writes scene-by-scene content
  • EditorAgent: Refines and improves the writing
  • ContentReviewerAgent: Checks for plot holes and inconsistencies
  • StyleEditorAgent: Polishes the writing style
  • FormattingAgent: Prepares the final manuscript

Versatile for Multiple Book Types

It works for:

  • Fiction (novels, short stories)
  • Non-fiction
  • Business books
  • Research papers

Technical Implementation

The system is built in Python with a modular and custom agent architecture. Each agent is a class that inherits from a base Agent class and implements an execute method. The system uses a unified LLM client that supports multiple AI providers (OpenAI, Claude, Google AI, DeepSeek, and Mistral).

Try It Out

There's several functions:

Image description

GitHub: https://github.com/guerra2fernando/libriscribe

Feedback and contributions are very welcome! Leave a star if you like it :)

API Trace View

Struggling with slow API calls? 🕒

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay