getting started contributing
This is the end-to-end path for making your first code or documentation
contribution to Hive. It ties together the reference docs and answers the
Hive-specific questions those docs don't. If you just want the mechanics
(branches, DCO, PR format), see CONTRIBUTING.md; for
build/test commands, see docs/development.md.
1. Find something to work onβ
- Browse the issue tracker. Issues
labeled
documentationandhelp wantedare good entry points; many[guide]doc-gap issues are small and self-contained. - Docs-only fixes (a wrong path, a dead link, a missing README) are the fastest way to land a first PR and learn the review flow.
- Comment on the issue before starting anything non-trivial so work isn't duplicated.
2. Set up a local environmentβ
For most changes you do not need a cluster.
- Go code: you need Go (see
docs/development.mdfor the version andmake/justtargets).cd src && go build ./...compiles the binary; that's enough to iterate on most code. - Docs: no toolchain needed β edit Markdown and preview locally.
- Running the whole thing: the fastest full run is Docker Compose from the
repo's Quick Start (
docker compose -f src/docker-compose.yaml up -d). You only need Kubernetes for deployment-specific work.
3. Test a change without a clusterβ
- Go:
cd src && go test ./...runs the unit suite. Most tests are hermetic; a few need env likekubectland are skipped otherwise. See the Test section ofdocs/development.md. - Shell scripts:
*.test.sh/*.test.jsfiles underbin/are runnable directly withbash/node. - The proxy:
cd src/proxy && npm test. - Don't run local build/lint as a merge gate β CI is the gate (see step 6).
4. Key concepts before touching agent policyβ
If your change touches how agents behave, understand these first:
- The deterministic pipeline vs. agents. Shell scripts in
bin/filter, classify, and gate work before any LLM runs; agents only make judgment calls. Keep deterministic logic in the pipeline. - ACMM levels. The ACMM policy matrix controls what each agent may do at each maturity level (advisory β auto-merge).
- Agent configuration.
agent-configuration.mdis the field-by-field reference; prompt/policy templates live under the policies directory. - The architecture.
src/docs/architecture.mdis the system overview β read it before changing the governor loop or guardrails.
5. How the Hive dev bot interacts with your PRβ
Hive maintains its own repository with a hive β so a bot may interact with your contribution:
- The hive's agents may comment on or triage issues and open their own PRs.
- If you see automated review comments or a bot-authored PR referencing your issue, that's the hive working its own backlog. Coordinate in the issue thread; a human maintainer still owns merge decisions on community PRs.
- Bot-posted content is neutralized (no raw
@-mentions) to avoid notifying everyone on each update β you don't need to do anything special.
6. Review and CI: what to expectβ
- Open your PR against the
v4branch (the active development branch). - CI runs build, tests, a coverage check, and container image builds. Some
checks (Playwright,
tide) are non-blocking. The required checks are the build/test/coverage/docker ones. - Coverage occasionally flakes; a maintainer will re-run it. A red
PR Verifierstatus is a known repo-wide quirk, not your change. - A maintainer reviews and merges once CI is green. Timelines vary; ping the issue or PR thread if it's been quiet for a few days.
Next stepsβ
CONTRIBUTING.mdβ branches, DCO sign-off, PR format.docs/development.mdβ build, test, lint, andjustrecipes.src/docs/README.mdβ the full documentation index.- ClankeR contributor relay β contribute compute to a running hive from your own machine.