Contributing
Issues and pull requests are welcome. This page summarizes CONTRIBUTING.md, the authoritative guide.
Local setup
Section titled “Local setup”You need Node.js 22+ (22.22 or newer to build this docs site) and Docker with Docker Compose.
git clone https://github.com/ix-infrastructure/Ix.gitcd Ix./scripts/backend.sh up # start ArangoDB + the memory layer in Dockercd ix-cli && npm ci && npm run buildnpm test # verify your setupYou don’t need the backend source. The CLI is developed against the published backend image
(ghcr.io/ix-infrastructure/ix-memory-layer), which anyone can pull. If a change needs something new from the
backend, open an issue describing what the CLI needs, and a maintainer will carry it across.
For a map of the code (the packages, command registration, the ingest pipeline, the backend contract, the release
and the test layers), read docs/architecture.md in the repository.
Workflow
Section titled “Workflow”- Branch from
mainwith a prefix:feat/,fix/,docs/,refactor/,test/,ci/orchore/. - Make your change. Before you open the PR, run every check CI gates on, listed under
Before you open a PR.
cd ix-cli && npm testalone covers only the unit tests and the parser smoke test. - Commit with Conventional Commits prefixes (
feat:,fix:,docs:and so on). Usefeat!:orfix!:for breaking changes. - Open a pull request using the template, and make sure CI passes.
Conventions
Section titled “Conventions”- Copyright header. Every source file starts with
// Copyright 2026 Ix Infrastructure Inc.in its language’s comment syntax. CI enforces it.python3 .github/scripts/copyright-headers.py --fixadds any that are missing. - Clean output. No raw stack traces in normal mode. Use the structured errors in
ix-cli/src/cli/errors.ts. - Exit codes are an API. The editor plugins and
ix mcpdiscard output from a failed run, so making a command exit non-zero can break them. Read the exit-code section of CONTRIBUTING.md before changing one. - OSS and Pro. Some features belong to Ix Pro. Don’t move Pro features into this repository. If you’re unsure where something belongs, ask in your pull request.
Adding a language
Section titled “Adding a language”Adding a language lists the files to change and the tests to write when Ix learns a new language or file format.
Improving these docs
Section titled “Improving these docs”Every page has an Edit page link at the bottom. The site’s source is in docs-site/ in the Ix repository. To
preview changes locally:
cd docs-sitenpm cinpm run devThe flag reference, the llm format spec and the API endpoints are generated from skills/ix/references/flags.md,
docs/llm-format.md and docs/api/openapi.yaml. Edit those files, not the generated pages.
