Development Guide
Chatter is a Rust 2021 project organised as a single binary crate. Key directories:
src/cli— argument parsing and command wiring usingclapsrc/chat— interactive chat runtime and terminal presentation usingcrosstermandratatuisrc/api— provider-specific HTTP clientssrc/agent— tool definitions and executionsrc/config— persistent configuration managementsrc/templates— reusable output templates
Building and Testing
cargo fmt
cargo clippy -- -D warnings
cargo test
Use cargo build --release for production builds. The build.sh script wraps a release build plus Homebrew packaging steps.
Contributing
- Fork the repository
- Create a feature branch
- Implement the change and any relevant tests
- Run the command suite above
- Open a pull request with a summary of the change