A tool to generate project structures with AI-powered suggestions from Gemma function calling.
Spindlewrit is a CLI tool that can create standardized project structures for Python, Rust, and other types of projects. It integrates with the MCP Todo Server to generate projects based on TODO items, using Gemma function calling for AI-powered suggestions.
- Generate Python, Rust, and common project structures
- Create projects from scratch with a simple CLI interface
- Generate projects from Todo items with AI-powered suggestions
- Customizable project templates
# Clone the repository
git clone <repository-url>
# Navigate to the project directory
cd Spindlewrit
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package in development mode
pip install -e .# Create a Python project
spindlewrit create --name my-python-project --description "A sample Python project" --type python --path /path/to/output
# Create a Rust project
spindlewrit create --name my-rust-project --description "A sample Rust project" --type rust --path /path/to/output# Set your Gemma API key
export GEMMA_API_KEY=your-api-key
# Generate a project from a Todo item
spindlewrit from-todo --todo-id todo123 --output-dir /path/to/output# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytestsrc/project_generator/- Main package codecli.py- Command-line interfacegenerator.py- Project generation logicgemma_integration.py- Integration with Gemma function callingmodels.py- Data modelstests/- Test files
This tool integrates with the Swarmonomicon project by providing a Python implementation for project generation that can be called from the Rust ProjectAgent via a foreign function interface (FFI) or by direct CLI invocation.