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.
doc.haus
doc.haus is an open-source legal-agent platform built as a true fork of
OpenCode. It retargets OpenCode's agent
harness from code/git onto legal documents — the concepts map almost 1:1
(a matter is a project directory, a document is a file, a conversation is
a session). We fork rather than reimplement so we keep pulling upstream
innovation via git merge upstream/dev.
The rest of this file is OpenCode's upstream contributor guide. It applies when working inside upstream packages — follow it there to keep diffs mergeable.
- To regenerate the JavaScript SDK, run
./packages/sdk/js/script/build.ts. - The default branch in this repo is
dev. - Local
mainref may not exist; usedevororigin/devfor diffs.