Discover and explore top open-source AI tools and projects—updated daily.
DoriandarkoAutonomous AI writing agent for creative content generation
Top 99.3% on SourcePulse
This project provides an autonomous AI writing agent, gemini-writer, powered by Google's Gemini 3 Flash model. It addresses the challenge of generating long-form creative content like novels and story collections by automating the planning, writing, and management process. Aimed at writers, researchers, and power users, it offers a significant benefit by enabling independent, deep-reasoning content creation with real-time feedback and robust context handling.
How It Works
The agent operates via an agentic loop, leveraging Gemini's "thinking mode" for advanced reasoning. It utilizes a suite of tools—create_project, write_file, and compress_context—to manage its workspace and output. A key design choice is its smart context management, featuring automatic compression at 90% of the 1,000,000 token limit to maintain operational efficiency. This approach is advantageous for long-form generation, allowing the agent to autonomously plan, execute, and iterate on creative tasks while providing real-time streaming of its thought process and generated content.
Quick Start & Requirements
uv (curl -LsSf https://astral.sh/uv/install.sh | sh), then uv pip install -r requirements.txt. Alternatively, use pip install -r requirements.txt.uv (optional), and a Google Gemini API key..env file in the project root containing GEMINI_API_KEY=your-api-key-here. Obtain API keys from https://aistudio.google.com/app/apikey.uv run writer.py "Your prompt" or python writer.py "Your prompt"uv run writer.py or python writer.pyuv run writer.py --recover output/your_project/.context_summary_*.md or python writer.py --recover output/your_project/.context_summary_*.mdHighlighted Details
Maintenance & Community
Created by Pietro Schirano (@Doriandarko). The README does not specify community channels (e.g., Discord, Slack) or a public roadmap.
Licensing & Compatibility
Limitations & Caveats
The agent is limited to a maximum of 300 iterations per task, which may pose a constraint for exceptionally complex or lengthy creative endeavors. It relies heavily on the Google Gemini API, making it dependent on API availability, terms of service, and potential associated costs. Users may perceive the agent as "stuck" during complex tasks, necessitating monitoring of progress within generated project files. Troubleshooting guidance is provided for common API key and permission errors.
2 months ago
Inactive