base/- Core standard library (loaded at startup)stdlib/- Standard library packages (can be loaded independently)Compiler/- Julia compiler as a separate module (can be swapped)src/- C/C++ runtime and LLVM codegencli/- Command-line interface and loaderdoc/- Documentation and User Manual
You should have a recent binary copy of julia in your $HOME/.juliaup/bin directory.
You may use this julia executable for validation.
If a built version of Julia exists in the current source tree (at usr/bin/julia),
prefer that version.
Note that any changes you make to the source code after the binary is built
will not be reflected, unless you use Revise.
- Run
make fix-whitespacebefore creating the PR to make sure you're not committing any whitespace errors. - Add the AI tool as a Git co-author on all commits created by that tool.
- Whenever a pull request is opened, you MUST disclose that the pull request was written with the assistance of generative AI.
If you made changes to the runtime (any files in src/), you will need to rebuild
julia. Run make -j to rebuild julia. This process may take up to 10 minutes
depending on your changes.
After modifying any C/C++ file under src/, also run the Clang static analysis
checks — see the c-static-analysis skill (doc/src/devdocs/agents/skills/c-static-analysis/).
If you have made changes to files included in the system image (base/ or stdlib/),
and need to run code with these changes included, you can use Revise.
To do so, run using Revise; Revise.track(Base) (or Revise.track with the stdlib you modified).
The test system supports doing this automatically.
For instance testing Base changes without rebuilding, using failfast, you can run:
JULIA_TEST_FAILFAST=1 ./julia -e 'using Revise; Revise.track(Base); include("test.jl")'
After writing code, look up the docstring for each function you used. If there are recommendations or additional considerations that apply to these functions, make sure to take them into account.
- Do not
ccallruntime C functions directly if there are existing wrappers for the function. - Do not explicitly add a module prefix if the code you're adding is in the same module. E.g. do not use
Base.for code in Base unless required.
Detailed, situational procedures are provided as Agent Skills following the
agentskills.io open standard. The canonical location is
doc/src/devdocs/agents/skills/; .agents/skills/ and .claude/skills/ are
symlinks to that directory so skills-aware agents can discover the skills
automatically. Agents that support the standard load each skill's description
automatically and pull in the full SKILL.md when relevant; otherwise read the
canonical SKILL.md directly.
doc/src/devdocs/agents/skills/doctests/— writing and verifyingjldoctestcode blocks.doc/src/devdocs/agents/skills/test-changes/— running and updating tests after changing them.doc/src/devdocs/agents/skills/c-static-analysis/— Clang static analysis and GC-rooting for C/C++ changes undersrc/.doc/src/devdocs/agents/skills/external-deps/— modifying external dependencies (deps/, patches) and JLLs.doc/src/devdocs/agents/skills/buildkite-logs/— fetching and inspecting Buildkite CI logs without web sign-in.doc/src/devdocs/agents/skills/ci-timing/— comparing a PR's Buildkite job durations against recent CI history.doc/src/devdocs/agents/skills/compiler-jl/— developing and testing Compiler.jl.doc/src/devdocs/agents/skills/julia-syntax-lowering/— developing and testing JuliaSyntax and JuliaLowering.
When writing commit messages, follow the format "component: Brief summary" for the title. In the body of the commit message, provide a brief prose summary of the purpose of the changes made. Do not specifically mention added tests, comments, documentation, etc., unless this is the main purpose of the change. Do not mention the test plan, unless it differs from what you were instructed to do in AGENTS.md. If your change fixes one or more issues, use the syntax "Fixes #" at the end of the commit message, but do not include it in the title.
When referencing external GitHub PRs or issues, use proper GitHub interlinking format (e.g., owner/repo#123 for PRs/issues).
When fixing CI failures, include the link to the specific CI failure in the commit message.
Always quote macro names in backticks in commit messages and PR titles/bodies (e.g. `@inbounds`, not @inbounds), so GitHub does not notify the unrelated user with that handle.
When creating pull requests:
- If the pull request consists of one commit only, use the body of the commit for the body of the pull request.
- If there are multiple commits in the pull request, follow the same guidelines for the pull request as for the commit body.
- Make sure that the base commit of the pull request is recent (within the past two days) - if not rebase your changes first.
- You MUST disclose that the pull request was written with the assistance of generative AI.