Contributing
Maxon is free and open source, dual-licensed under MIT and Apache-2.0. It was written by AI, but it’s built in the open — and contributions are welcome, whether that’s a fix to the compiler, a documentation fix, a real program written in the language, or a bug report.
Everything lives in one repository: github.com/maxon-lang/maxon.
Ways to contribute
Section titled “Ways to contribute”Fix a bug
Section titled “Fix a bug”We prefer a fix to a report. Maxon is written by AI, and an AI coding agent pointed at the
repository can usually turn a failing program into a fix — so a pull request that fixes a bug
is worth far more than an issue describing it, and reaches everyone sooner. The repository
carries instructions for coding agents in AGENTS.md files — the root one, and one beside each
tree with rules of its own — plus the skills in .claude/skills/, so an agent opened in a
checkout already knows how to build, test and land a change. Claude Code reads AGENTS.md from
version 2.1.277.
Found a miscompile, a crash, a confusing diagnostic, or a place where the docs and the compiler disagree?
- Add a spec case that reproduces it (see Tests) and watch it fail.
- Fix it until that case — and the rest of the suite — passes.
- Open a pull request. A bug fix needs no issue first.
Report a bug you cannot fix
Section titled “Report a bug you cannot fix”If you cannot fix it, open an issue on the issue tracker — an unfixed bug is still worth knowing about. A good report includes:
- A minimal
.maxonprogram that reproduces the problem. - What you expected to happen, and what actually happened (exact output or error code).
- Your platform (Windows / Linux / macOS) and how you built the compiler.
The smaller the reproduction, the faster it can be fixed — Maxon’s whole philosophy is that code should be easy to read, and that applies to bug reports too.
Propose a feature or change
Section titled “Propose a feature or change”Ideas for the language, the standard library or the toolchain go in Ideas, not the issue tracker. Search there first — if someone has already proposed it, upvote it and add your use case in a comment. The most-upvoted ideas are the ones looked at first.
Improve the compiler or standard library
Section titled “Improve the compiler or standard library”The compiler (and its from-scratch native backends), the language server, and the standard library are all open. Patches that fix bugs, improve diagnostics, or extend the standard library are welcome. A bug fix goes straight to a pull request. A new feature or a change of design starts in Ideas, so the approach can be agreed before you invest the work.
Improve the docs and examples
Section titled “Improve the docs and examples”Documentation and examples are some of the highest-leverage contributions, because a language
designed to be read lives or dies on how well it’s explained. Typo fixes, clearer
explanations, and new example programs are all valuable. Examples should be real,
compilable .maxon files.
Write something in Maxon
Section titled “Write something in Maxon”The most useful thing you can do is build something real. Writing actual programs surfaces the rough edges no test suite will, and shapes where the language goes next. Share what you build — report what felt awkward, what was missing, and what worked.
The development loop
Section titled “The development loop”Maxon is written in Maxon, so building it needs a Maxon compiler as a seed: a frozen compiler, published
as a seed-* pre-release and pinned by scripts/seed-tag. The build scripts are bash: on Windows, run
them in Git Bash. On Windows the checkout needs core.longpaths=true: some paths in it pass 260 characters, a
clone without the setting leaves them out, and scripts/build-from-seed.sh refuses such a checkout. Fetching the
seed needs the GitHub CLI, signed in. Then:
git clone -c core.longpaths=true https://github.com/maxon-lang/maxon.gitcd maxon
scripts/fetch-seed.sh # seed .bootstrap/ with the pinned seed's compilerscripts/build-from-seed.sh # build the compiler, then rebuild it with itselfmaxon-bin/.maxon/maxon spec-test # run the full spec-test suiteThe seed is the archive’s binary alone, not the unpacked archive: the compiler finds stdlib/ by
walking up from its own executable, so a released standard library left beside the seed would be
compiled in place of the checkout’s own. The seed changes only when a commit moves scripts/seed-tag, so
run scripts/fetch-seed.sh again after pulling one that does. For the same reason, build and test with the
compiler inside the checkout, never the maxon on your PATH.
After a change, rebuild and re-run the suite:
maxon-bin/.maxon/maxon run build # the compiler rebuilds itselfmaxon-bin/.maxon/maxon spec-test # or --filter=<spec> for one areaMaxon’s tests are organized as spec files: each language feature has a single source of
truth in the specs/ directory that holds the feature’s documentation and its executable
test cases together. When you change behavior, update or add the relevant spec, and make sure
./maxon-bin/.maxon/maxon spec-test passes before opening a pull request.
Pull requests
Section titled “Pull requests”- A bug fix needs no issue first. A new feature or a change of design starts in Ideas, so the design can be agreed on.
- Keep changes focused — one logical change per pull request.
- Make sure the compiler builds cleanly and
./maxon-bin/.maxon/maxon spec-testpasses. - Format Maxon source with
maxon-bin/.maxon/maxon fmt. - Match the style of the surrounding code; Maxon favors explicit, readable code over clever or terse code, in the compiler as much as in the language.
By contributing, you agree that your contributions are dual-licensed under MIT and Apache-2.0, the same terms as the project.