The `ainovel-cli` project is a command-line interface tool designed for fully automated AI novel generation, leveraging a multi-agent system. The core architecture involves a Coordinator agent that orchestrates Architect, Writer, and Editor sub-agents through a long-running loop, enabling the creation of an entire novel from a single prompt without manual intervention.
Key features include a multi-agent collaboration model where the Coordinator drives the planning, writing, and reviewing process. It supports step-level breakpoint recovery, allowing the system to resume from the exact point of failure. For long narratives, it employs a 'Compass + Rolling Horizon' planning strategy, generating detailed chapters incrementally rather than planning the entire book at once. The system also offers adaptive context management with a three-level summarization and four-level compression pipeline to handle extensive chapter counts, along with intelligent recommendations for relevant historical chapters. An Editor agent provides seven-dimensional quality reviews, covering aspects like consistency, character behavior, pacing, and aesthetic quality. Users can intervene in real-time, with the system automatically assessing and rewriting affected sections. The tool provides a unified TUI for progress monitoring and supports multiple LLMs, including OpenRouter, Anthropic, Gemini, and OpenAI. The latest release, v0.4.0, introduces features such as persistent usage statistics, unified user notifications, a new user preference layer for rules, and the ability to export novels to EPUB and TXT formats.