AI-powered coding assistant desktop app built with Rust
- ποΈ Project Scaffolding - Generate project structures instantly
- π Code Review - AI-powered code analysis and suggestions
- β‘ Smart Coding - Intelligent code completion and generation
- π§ͺ Auto Testing - Automated test creation and execution
# Download latest release
curl -L https://github.com/mosesmmoisebidth/goose-ai/releases/latest/download/goose-ai-x86_64.tar.gz | tar xz
./goose-ai
git clone https://github.com/mosesmoisebidth/goose-ai.git
cd goose-ai
cargo build --release
./target/release/goose-ai
# Start the desktop app
goose-ai
# Or with CLI mode
goose-ai --cli
# Create new project
goose-ai scaffold --template rust-cli my-project
# Review code
goose-ai review src/main.rs
# Generate code
goose-ai code --prompt "create a REST API handler"
# Run tests
goose-ai test --auto-generate
// Generate project structure
goose_ai::scaffold::create_project(
template: "rust-web",
name: "my-api",
features: vec!["async", "database"]
);
Templates Available:
rust-cli
- Command line applicationsrust-web
- Web services with Axumrust-gui
- Desktop apps with Taurirust-lib
- Library crates
// AI-powered code analysis
let review = goose_ai::review::analyze_file("src/lib.rs").await?;
println!("Issues found: {}", review.issues.len());
println!("Suggestions: {}", review.suggestions.len());
Review Features:
- Security vulnerability detection
- Performance optimization hints
- Code style improvements
- Best practice recommendations
// Generate code from natural language
let code = goose_ai::code::generate(
prompt: "implement binary search algorithm",
language: "rust",
context: current_file_content
).await?;
Coding Features:
- Context-aware completions
- Documentation generation
- Refactoring suggestions
- Error fix recommendations
// Generate and run tests
let test_suite = goose_ai::test::generate_for_file("src/utils.rs").await?;
goose_ai::test::execute_suite(test_suite).await?;
Testing Features:
- Unit test generation
- Integration test scaffolding
- Mock generation
- Coverage reporting
- File Explorer with AI insights
- Code Editor with smart suggestions
- Terminal with AI command assistance
- Project Overview with health metrics
Ctrl+Shift+G
- Generate codeCtrl+Shift+R
- Review current fileCtrl+Shift+T
- Run testsCtrl+Shift+S
- Scaffold new component
[ai]
model = "gpt-4"
api_key = "your-api-key"
max_tokens = 2048
[editor]
theme = "dark"
font_size = 14
auto_save = true
[scaffold]
default_template = "rust-cli"
git_init = true
export GOOSE_AI_API_KEY="your-api-key"
export GOOSE_AI_MODEL="gpt-4"
export GOOSE_AI_LOG_LEVEL="info"
# Generate Rust web API with database
goose-ai scaffold --template rust-web my-api --features database,auth
# Review the generated code
cd my-api
goose-ai review src/main.rs
# Generate tests
goose-ai test --generate-all
# Start interactive coding session
goose-ai code --interactive
> "create a function to parse JSON configuration"
# AI generates parse_config() function
> "add error handling to the function"
# AI adds Result<T, E> return type and proper error handling
> "write tests for this function"
# AI generates comprehensive test suite
- Rust 1.70+
- System dependencies:
gtk3-dev
,webkit2gtk-dev
(Linux)
# Run in development mode
cargo run
# Run tests
cargo test
# Build for release
cargo build --release
# Format code
cargo fmt
# Lint code
cargo clippy
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see LICENSE file.
- Issues: GitHub Issues
- Docs: Documentation
- Discord: Community Server
Built with π¦ Rust and β€οΈ