Skip to main content
Contributions are welcome, from a typo in these docs to a new provider or agent capability. ChatCLI is open source under the Apache License 2.0, and everyone taking part follows the Code of Conduct. The full guide lives in the repository: CONTRIBUTING.md. This page summarizes it.
Found a security problem? Do not open an issue or a pull request. Report it privately as described in SECURITY.md.

Setup

You need Go at the version in go.mod, golangci-lint v2 and git.
To try your build against a model, log in from the prompt with /auth login <provider> or put an API key in a .env file (see Installation). The Kubernetes operator is a separate Go module: run its tests inside operator/.

Making a change

  1. Branch from main (develop is an automatically synced mirror).
  2. Write the change and its tests. A bug fix comes with a test that fails without it.
  3. Run gofmt -w, make lint and go test ./....
  4. Open a pull request against main with a Conventional Commits title. Pull requests are squash-merged, and releases are cut by the maintainers with release-please.
Larger changes (a new provider, a builtin tool, a new surface, a change of defaults or security behavior) start with an issue to agree on the approach.

Conventions

What CI checks

Every pull request runs a quality gate with 15 floors:
  • build and static analysis;
  • coverage that may not drop, with 60% for new code;
  • AI-generated-code smells;
  • PR size;
  • end-to-end tests;
  • commit lint;
  • complexity;
  • secret scanning;
  • i18n parity;
  • CRD drift;
  • license headers;
  • API breaking changes;
  • binary size;
  • provider parity.
Security scans (govulncheck, gosec, CodeQL, Trivy and dependency review) run too. The CONTRIBUTING.md table gives each floor’s threshold.

Reporting bugs

Open an issue on GitHub with:
  • the ChatCLI version (chatcli --version), your operating system, the provider and model;
  • the steps to reproduce, the expected and the observed behavior;
  • relevant logs (LOG_LEVEL=debug), with secrets removed.

Architecture

How the packages and components fit together.

Plugin System

Build and sign a plugin.