Fork discipline: staying mergeable with OpenCode
doc.haus pulls upstream innovation with git merge upstream/dev. This path shows the rules that keep that merge clean and the seams where the legal product actually lives.
Contributing to doc.haus
doc.haus is a true fork of OpenCode that
retargets its agent harness onto legal documents. The most important rule for
contributors follows from that: mergeability first. We keep pulling upstream
innovation via git merge upstream/dev, so the fork stays clean by being additive.
- New agents, tools, skills, commands →
dochaus/(the legal config layer, loaded viaOPENCODE_CONFIG_DIR=<repo>/dochaus). - Ingestion, embeddings, document I/O, matter management →
services/ingest/(the standalone Bun + Hono service). - UI changes →
apps/web/(React + Vite on the OpenCode SDK + ingest API).
bun install
./start.sh
start.sh points the engine at dochaus/, starts the ingest service and the web app,
and tears them all down if any one exits. See README.md for provider auth and the
manual three-terminal alternative.