Development & Releases
Gojent is structured as a multi-module Go repository with a standard-library-only root module and independent child modules for providers, durable stores, MCP, and codjent. Development relies on just recipes that delegate across every module and enforce formatting, tidiness, linting, dependency boundaries, and compiled documentation snippets.
Local workspace setup
Go 1.25.5 or newer and just 1.58 or newer are required. go.work and go.work.sum are intentionally untracked; initialize your local workspace once after cloning:
just workspace
Repository checks and module recipes
Run root recipes to check the entire workspace, or target a single module with just --justfile <dir>/justfile <recipe>:
just test # unit tests with -race across all modules
just vet # go vet across all modules
just build # go build across all modules
just lint # golangci-lint across all modules
just arch-check # verify root stdlib-only and one-way module boundaries
just doc-check # compile all Go snippets in docs/ and README.md
just tidy # go mod tidy across all modules
just check # fmt-check, tidy-check, vet, build, lint, arch-check, test, scripts-test
Run a single module’s test suite during focused work:
just --justfile providers/google/justfile test
just --justfile mcp/justfile test
The PostgreSQL conformance and integration suite is opt-in against a running PostgreSQL instance:
GOJENT_POSTGRES_DSN='postgres://postgres:postgres@localhost:5432/gojent_test?sslmode=disable' \
just --justfile stores/postgres/justfile test-integration
For the documentation website under site/, run just --justfile site/justfile install and just --justfile site/justfile check.
Versioning and submodule tags
The root module and every child module are versioned independently:
- Tag the root module as
vX.Y.Z. - Tag child modules with their directory prefix so
go getresolves them cleanly:mcp/vX.Y.Zproviders/google/vX.Y.Z,providers/openai/vX.Y.Z,providers/anthropic/vX.Y.Zstores/sqlite/vX.Y.Z,stores/postgres/vX.Y.Zcodjent/vX.Y.Z
Optional modules declare a released root module version in their go.mod. Whenever the root core API changes, bump that go.mod requirement and tidy dependent modules before tagging them so downstream consumers do not resolve an older core. Gojent is currently in beta (v0.x): until v1.0.0, minor versions may introduce breaking changes, called out explicitly in each module’s CHANGELOG.md.
Changelog and release automation
- Maintain user-facing release notes under
## Unreleasedin the touched module’sCHANGELOG.md(CHANGELOG.mdfor root,mcp/CHANGELOG.md,providers/*/CHANGELOG.md,stores/*/CHANGELOG.md,codjent/CHANGELOG.md). - Tag pushes for released modules generate draft GitHub Releases from the matching changelog section—see
CONTRIBUTING.mdfor the complete release checklist.