Contributing

This page summarises how to contribute to kōjō. The authoritative text is CONTRIBUTING.md in the repository; where the two differ, that file is right.

Ground rules

  • Be kind. The project follows a code of conduct.
  • Never commit real credentials: not in code, tests, fixtures, recordings, example configs or issue reports.
  • Open an issue before a large change, so the scope is agreed before you build it.
  • Report security problems privately. See security policy.
  • Sign off your commits. See sign-off.

Contributions are welcome, new skills in particular.

Propose a change

  1. For a large change, open an issue first.
  2. Build and test locally. You need Go 1.27 or newer; Development covers the build, the local stacks and the test layers.
  3. Run make all before each commit.
  4. Open a pull request that is focused on one change and references the issue it resolves. Fill out the pull request template.
  5. CI must be green before review.
git clone https://github.com/xavidop/kojo
cd kojo
make build
make all

Sign-off (DCO)

kōjō uses the Developer Certificate of Origin. Every commit carries a Signed-off-by line, which certifies that you wrote the change or may submit it under the project’s licence. There is no CLA to sign.

git commit -s -m "fix(core): keep the session lock while the critic runs"

-s adds the line from your git name and email.

Commit messages

Commits follow Conventional Commits. Releases and the changelog are generated from them.

Prefix Effect on the next release
fix: patch release
feat: minor release
feat!: or a BREAKING CHANGE: footer major release
docs:, chore:, refactor:, test:, ci: none stated

The scope names the part that changes: cli, core, critic, merge, scheduler, config, store, sandbox, proxy, models, skills, dashboard, doctor, eval, schema, helm, compose, site, a surface (github, gitlab, forgejo, slack, mcp) or a driver (k8s, sbx, docker).

Keep commits small. Each one passes make all.

Checks a pull request must pass

make all is what CI runs on every pull request:

Step What it checks
fmt the tree is gofmt-clean
vet go vet, with and without the integration build tag
check-claims the README and the docs name only commands the CLI has, and every command is documented
schema-check the committed JSON Schemas and the config reference page match the Go structs
test the unit tests
lint golangci-lint

CI adds the race detector, coverage and the suites that need Docker, Postgres or a kind cluster. A suite whose backend is missing skips itself and says which capability was missing; a skip is reported and never shown as passed.

Tests are expected with a change:

  • Every package has tests, with testify, table-driven where it fits.
  • Unit tests use no network: a surface tests against a fake of its forge or of Slack, model calls against the mock provider, the store against the in-memory store.
  • Recordings are test data. Review a recording like code, and make sure no key or token is in it.

Skills and sandbox drivers

CONTRIBUTING.md has a checklist for each:

  • A skill is a directory under skills/ with SKILL.md, goals.yaml and kit.yaml. It needs a kit with least privilege, acceptance criteria that can fail, kojo skills validate to accept it, an eval fixture under evals/, recordings and a docs page. See Skills and Evals.
  • A sandbox driver is a package under internal/sandbox/. The conformance suite in test/conformance is its contract, its Health must report the real isolation level, and no credential may enter a sandbox. See Sandboxes.

Questions

CONTRIBUTING.md names no channel for questions. The issue chooser of the repository points usage questions and ideas to GitHub Discussions, and offers templates for a bug report, a feature request and a skill request.

Code of conduct

The project uses the Contributor Covenant, version 2.1: CODE_OF_CONDUCT.md. Reports go to the contact listed in the security policy.

Security policy

Do not open a public issue, discussion or pull request for a security problem. SECURITY.md describes the process:

  • Report through GitHub’s private vulnerability reporting: Report a vulnerability.
  • Do not include real API keys, tokens, webhook secrets, private keys or code you may not share.
  • The policy states an acknowledgement within 3 business days and an initial assessment within 7 days.
  • Fixes land in the latest release. One version tag covers the binary, the image and the Helm chart.

The policy also lists what is in scope. Security describes the trust boundary as built.

Licence

kōjō is licensed under the Apache License 2.0. A contribution is made under the same licence.

NOTICE carries the copyright line, “Copyright 2026 Xavier Portilla Edo and the kōjō contributors”, and two notes on third-party software:

  • The binary links the Go modules listed in THIRD_PARTY_LICENSES.csv; their licence texts are in THIRD_PARTY_NOTICES.md. make notices regenerates both after a dependency change.
  • The Helm chart carries an unmodified copy of the release manifest of Kubernetes Agent Sandbox, licensed under the Apache License 2.0, under charts/kojo/files/agent-sandbox/.
Scroll to move. + - zoom, 0 fit, Esc close.100%