This directory contains scripts to help with development, optimized for both human developers and AI coding agents.
The primary setup script for getting a development environment ready.
- Installs Rust toolchain if needed
- Installs required cargo tools
- Builds the project
- Runs tests and quality checks
- Sets up shell completions
- Creates development environment files
Usage:
./setup.shVerifies that the development environment meets all requirements.
- Checks OS compatibility
- Verifies Rust installation and version
- Checks for required build tools
- Tests network connectivity
- Validates file permissions
Usage:
./scripts/check-environment.shQuick development commands for common tasks.
Commands:
build [debug|release]- Build the projecttest [all|unit|doc]- Run testscheck- Run quality checks (fmt, clippy, deny)fix- Fix common issues automaticallybench- Run benchmarksdoc [--open]- Build documentationclean- Clean build artifactscoverage- Generate code coverage reportwatch [test|build]- Watch files and run commandsci- Run full CI pipeline locallyquick- Quick compile and test check
Usage:
./scripts/dev.sh build release
./scripts/dev.sh test unit
./scripts/dev.sh check
./scripts/dev.sh fix
./scripts/dev.sh ciBootstrap script specifically designed for AI coding agents (Devin.ai, Factory.ai, Codex, etc.).
- Creates AGENT_CONTEXT.md with project overview
- Initializes agent state tracking
- Creates notes.txt for persistent notes
- Sets up knowledge base entries
- Provides clear guidance and next steps
Usage:
./scripts/agent-bootstrap.shAutomates the BLZ vs. blz stylization rules across Markdown, Rust comments, and shell comments.
- Rewrites prose occurrences of
blztoBLZwhile skipping code examples and identifiers - Supports
--checkmode for CI/linting
Usage:
bun scripts/blz-style.ts # auto-fix
bun scripts/blz-style.ts --checkConvenience wrapper for enforcing BLZ stylization in CI pipelines or local checks.
Usage:
./scripts/check-blz-style.shInstalls shell completions for bash, zsh, and fish.
Usage:
./scripts/install-completions.sh blzIf you're an AI coding agent, start with:
-
First time setup:
./scripts/agent-bootstrap.sh
This creates context files and guides you through the project.
-
Daily development:
./scripts/dev.sh quick # Fast feedback during development ./scripts/dev.sh fix # Auto-fix common issues ./scripts/dev.sh ci # Full check before committing
-
Keep notes:
- Write to
notes.txtto track your progress - Check
AGENT_CONTEXT.mdfor project overview - Review
.agents/rules/for coding standards
- Write to
./setup.sh # Full environment setup
./scripts/dev.sh build # Build the project
./scripts/dev.sh test # Run tests./scripts/dev.sh ci # Run all checks
# or manually:
./scripts/dev.sh fix # Auto-fix issues
./scripts/dev.sh check # Verify quality./scripts/dev.sh watch test # Auto-run tests on file changes./scripts/check-environment.sh # Verify environment
./scripts/dev.sh clean # Clean and rebuild
./scripts/dev.sh build debug # Debug build for better errorsAll scripts follow these principles:
- Idempotent - Can be run multiple times safely
- Clear output - Color-coded status messages
- Graceful failures - Handle errors and provide solutions
- AI-friendly - Clear progress indicators and context
- DRY - Reusable functions across scripts
When adding new scripts:
- Follow the existing patterns for output and error handling
- Make scripts idempotent
- Add clear help text
- Document in this README
- Make executable:
chmod +x script-name.sh