Thank you for helping. This guide covers how to propose a change, the checks a pull request must pass, and the conventions devkit follows. The code layout and the design principles are in Developing devkit.
- A devkit failure: devkit captures a safe report automatically and retries delivery. You do not need to submit it manually; see the bug registry. Add context only through its reviewed report flow.
- An idea: open an issue describing the problem and the behavior you want.
- A security issue: never in an issue. Follow the security policy.
- A larger change (a new command, a new hook, a change to the hooks or the installer): open an issue first, so you and the maintainers agree on the approach before you write the code.
devkit is standard-library Python and runs from its folder, so you can change it and run its tests without installing it:
git clone https://github.com/fireflysoftwaresolutions/devkit.git
cd devkit
python3 -m unittest discover -s tests -t .
/usr/bin/python3 -m unittest discover -s tests -t . # Python 3.9, the macOS system Python
bin/dev --helpThe -t . runs tests/ as a package, so tests/__init__.py gives the whole run a temporary home and your own
devkit state, configuration and handoff repository stay out of reach (tests/_hermetic.py). Without it, unittest
skips tests/__init__.py, and tests/test_hermetic.py fails to say so.
The run also keeps this Mac's real coding agents, Homebrew, and GitHub CLI out of reach. It puts stand-ins for
codex, claude, brew, and gh first on PATH, devkit keeps them first in every process of the run
(DEVKIT_TEST_PATH, honored only when HOME is in a temporary folder), and a test that would start a real one fails
with test safety: refused to start …. A test that builds its own environment for a child process takes it from
_sandbox.env(), and an older devkit release starts through _sandbox.boot() (tests/_sandbox.py). If you see that
error, give the process _sandbox.env(...) instead of a hand-built PATH.
Installing devkit (./install.sh) changes your agents' global settings, hooks, and instructions under ~/.claude
and ~/.codex. Do it only when you want devkit to manage your machine; see Getting started.
- Branch from an up-to-date
main:<type>/<topic>, for examplefix/lane-quoted-paths. Types arefeat,fix,docs,refactor,perf,test,build,ci,chore, anddeps; the topic is lowercase kebab-case, and the whole name is at most 60 characters. - Write the test first, and see it fail for the reason you expect. A test must be able to fail for a real bug:
bin/dev test provechecks that new tests fail without your change. - Keep the design principles: the standard library only, Python 3.9 compatible, hooks that fail open without
refusing a tool call, and a
devcommand refusal that always names the right way to do the thing. - Update the documentation in the same branch, with a command in Commands, and anything a user
notices in the
[Unreleased]section of the CHANGELOG. - To change a crew member, edit
config/crew.jsonand runbin/dev crew sync. The files inplugin/agents/are generated: never edit them by hand.
Every check must pass before you open the pull request. CI runs the tests on Python 3.9 and 3.13 and a security job.
| Check | Command |
|---|---|
| The tests, on both Pythons | python3 -m unittest discover -s tests -t . and /usr/bin/python3 -m unittest discover -s tests -t . |
| The code compiles | python3 -m compileall -q lib bin |
| No test that cannot fail | bin/dev test audit tests/ |
| No unfinished work (stubs, placeholders, TODOs without a task) | bin/dev stubs |
| The documentation | bin/dev docs check (markdownlint, lychee, and Vale) |
| Everything CI runs, locally | bin/dev ci --run (the security job needs Docker) |
- Write commit messages as Conventional Commits:
type(scope): summary, in the imperative, at most 72 characters, with a body that says why. Make one logical change per commit. - Do not add AI attribution, such as
Co-Authored-Bylines for tools or "Generated with" lines. - Fill in every section of the pull request template (what and why, changes, how to verify, risk and rollback, and links).
- Keep one change per pull request, rebased on
main. A maintainer merges it after CI passes and a review.
devkit is licensed under the Apache License 2.0. By submitting a contribution, you agree that it is licensed under the same terms (section 5 of the license) and that you have the right to submit it.
See also Developing devkit, Commands, and the security policy.