Development / Monorepo

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

Monorepo workspace directory structure
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:

  1. Extend AdapterKind in crates/hippo-daemon/src/runner.rs with parsing, display label, and streaming JSON argument generation per ExecutionPhase.
  2. Parse its streaming output lines into normalized JobEvent variants (OutputChunk, ToolUse, ApprovalRequired, Completed, Error).
  3. Integrate usage or rate-limit detection into QuotaManager in crates/hippo-daemon/src/quota.rs, assigning an accurate QuotaConfidence level.
  4. Add unit tests with deterministic JSONL fixtures before opening your PR.

Building Release Artifacts Locally

Release build commands
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