Contributing
Contributions across CLI adapters, mobile UX, Windows/macOS packaging, and protocol tests are welcome. Open an issue before starting large architectural changes so we can align on design.
Repository Layout
| Path | Stack | Responsibility |
|---|---|---|
crates/hippo-proto |
Rust | Versioned RPC types, relay envelopes, pairing URI codec, and Ed25519/X25519/ChaCha20 crypto. |
crates/hippo-daemon |
Rust | Host daemon, CLI, path jail, git diff wrapper, runner adapters, quota manager, SQLite store, and tunnel loop. |
crates/hippo-relay |
Rust |
Stateless Docker-ready WebSocket forwarder listening on
0.0.0.0:8443 with rate limiting and
/healthz.
|
mobile/ |
Flutter |
Android and iOS client built on an 8px spacing scale (HippoSpacing) with four tabs and theming.
|
docs-site/ |
HTML / CSS / JS | Zero-build static documentation site deployed via GitHub Actions Pages. |
Running Tests & Pre-commit Hooks
GitHub Actions CI validates Rust (Linux, macOS, Windows), Flutter,
docs, and shell scripts on every push and pull request. Enable local
pre-commit checks with just install-hooks (or
pre-commit install), or run every suite via
just:
# 0. Install git pre-commit hook & run all checks via justfile
just install-hooks
just check
# 1. Rust workspace (hippo-proto, hippo-daemon, hippo-relay)
cargo fmt --all -- --check && cargo clippy --workspace --all-targets -- -D warnings && cargo test --workspace
# 2. Docs & docs-site (Biome)
biome ci biome.json README.md CONTRIBUTING.md docs docs-site
# 3. Flutter mobile application
cd mobile && flutter pub get && dart format --output=none --set-exit-if-changed lib test && dart analyze && flutter test
# 4. Shell scripts
shellcheck install.sh scripts/build-deb.sh .githooks/pre-commit && shfmt -d -i 2 -ci install.sh scripts/build-deb.sh .githooks/pre-commit
Adding a CLI Adapter
To support a new AI coding CLI:
-
Extend
AdapterKindincrates/hippo-daemon/src/runner.rswith parsing, display label, and streaming JSON argument generation perExecutionPhase. -
Parse its streaming output lines into normalized
JobEventvariants (OutputChunk,ToolUse,ApprovalRequired,Completed,Error). -
Integrate usage or rate-limit detection into
QuotaManagerincrates/hippo-daemon/src/quota.rs, assigning an accurateQuotaConfidencelevel. - Add unit tests with deterministic JSONL fixtures before opening your PR.
Building Release Artifacts Locally
| Artifact | Command |
|---|---|
| Host daemon binary |
cargo build --release -p hippo-daemon
|
Debian .deb package |
./scripts/build-deb.sh (writes
dist/hippo_0.1.0_<arch>.deb)
|
| Android release APK |
cd mobile && flutter build apk --release
|
| Stateless relay container |
cd crates/hippo-relay && docker compose
build
|