Skip to content
Hexagonix PT

Contribute

Anyone can contribute to Hexagonix, and contributions are welcome and encouraged. As an open source project, the community has the power to improve Hexagonix, in addition to using the code already developed as a basis for other projects, as long as the software license is respected.

So far, Hexagonix is a one-person project. Human contributions and discussions are very welcome and come first.

The spirit of the project

Hexagonix has grown in a human way over the years, written by hand and understood line by line. Contributions should keep it that way.

  • The goal is not to build a complex system. Hexagonix tries to modernize old concepts while staying simple, readable and well documented.
  • Clear code is worth more than clever code. Small, well understood changes are better than large rewrites.
  • Explain the why before the how. A good contribution starts from the problem, not from the solution.

References

Depending on the feature, the references for design decisions are Version 7 UNIX and older BSD systems. The project is moving towards BSD systems as its main reference, since Version 7 UNIX lacks many concepts that matter for a more modern operating system.

Before you start

Opening an issue before a pull request is optional, but it makes the review much easier, especially for changes to the kernel, system calls, file formats such as HAPP or the boot loader.

Contributing code

You can submit code for any Hexagonix component, using the supported development languages for each component.

  • Code, comments and messages are written in English.
  • Comments are short and describe the current behavior. The history of a change belongs in the commit message.
  • When changing what a routine receives or returns in registers, find and update every caller.

Code submitted in x86 Assembly must follow formatting standards to facilitate organization, readability and uniformity with the current code base of the system. Here is a commented code example:

VERSION equ "1.1" ;; Constant values ​​must be declared on the same line.

gapp: ;; name of a symbol

.hellomessage: ;; A variable with content, which belongs to `gapp`.
db 10, 10, "This is a sample Hexagonix(R) graphical HAPP application!", 10, 10
db 10, 10, "Press any key to end this program...", 10, 10, 0

;; As seen above, the contents in character form (string) must always be
;; be started below the name, facilitating readability and organization
;; in codes with many variables.

.tty0: ;; Another example of content with a string.
db "tty0", 0 ;; Contents of gapp.tty0

;; Numeric variables and constants must be declared on the same line, as below:

.day: dd 5 ;; Declaring a numerical variable (gapp.dya) in the same line.

In the header of the file, it must contain the author's name, with copyright, as below:

Copyright (c) 2025 Author
All rights reserved.

A complete style guide is being prepared.

Testing

  • Build and test every change in QEMU before opening a pull request.
  • Test the main path, which is booting, logging in, using the shell and switching terminals, besides the area you changed.
  • Changes to disk, video or other hardware should also be tested in VirtualBox or on a real machine.
  • Describe in the pull request what you tested and how.

Use of artificial intelligence

Hexagonix has been actively developed since 2014, and it even reuses code its author has been writing since 2012. Most of the system was built before AI tools existed, written and reviewed by hand. Still, AI is a tool, and its use is not forbidden, as long as it is used responsibly and with purpose. It is accepted only when:

  • You understand every line you submit and can explain it during review.
  • You tested your changes looking for regressions and side effects.
  • You take responsibility for the code, not the tool.
  • You state in the pull request, in an ethical and transparent way, that AI was used and for what.

The generated code cannot bring in code from other projects under licenses incompatible with BSD-3-Clause. Answer review comments in your own words.

What will not be accepted

  • Contributions that add nothing, such as simple comment edits or variable renames with no real purpose.
  • Fake contributions made only to be added to the contributors list.
  • Pull requests that look generated without understanding: large, generic or untested.
  • Prejudiced terms of any kind, in code, comments, documentation or discussions. Use, for example, manager/subsidiary instead of master/slave.

Commits and pull requests

  • One subject per commit, with a descriptive message in English.
  • The pull request explains the problem, the solution and the tests done.
  • Update the documentation and manual pages together with the code.

Contributor License Agreement

Contributors should be aware that any contribution must comply with the license and will be released under the license that governs Hexagonix. For more information, read the license, available in this repository.

Add your name and email to the authors file, and your details to the credits file.

Code of conduct

Participation in the project follows the code of conduct.

Generated from CONTRIBUTING.md in the Doc repository.