Contributing

How to contribute to agentty — bugs, code, and the maintainer workflow.

agentty is open source under the MIT license. Bug reports, fixes, and well-scoped features are all welcome.

Reporting bugs

File issues on GitHub. For a rendering bug, include your $TERM, your terminal emulator name, and a screenshot. For a code-path bug, paste the relevant block and your git rev-parse HEAD (or the release version from agentty --version).

Setting up

  1. Fork and clone. Configure fetches the submodules itself (git clone --recursive also works).
  2. Build: scripts/build.sh. This configures the debug preset (tests on), builds at -j12, and locks build/ so a second build waits instead of corrupting the tree. Plain CMake: cmake --preset debug && cmake --build build -j 12.
  3. Run the tests: cd build && ctest. They need GCC or stock Clang, not AppleClang. Standalone suites show as Not Run until you build agentty_standalone_tests.

See Building from Source for toolchain requirements.

Code conventions

  • The reducer stays pure. Side effects go through Cmd, never inline in the update function.
  • The permission matrix is the contract. New tools declare their effect set; static_assert enforces it at compile time.
  • The host builds Configs, maya builds Elements. Keep rendering logic out of the host.
  • Use the strong ID newtypes — don't pass raw strings where a ThreadId or ToolCallId belongs.

Pull requests

  • Keep PRs focused — one logical change per PR.
  • Describe the behavior change and how you verified it.
  • Update CHANGELOG.md under Unreleased for user-visible changes.
  • Make sure the build is green on Linux at minimum.

Releases

Maintainers cut releases with one command: scripts/cut-release.sh X.Y.Z bumps the version, promotes the CHANGELOG.md Unreleased section to a dated entry, commits, tags vX.Y.Z, and pushes. The tag push fires GitHub Actions, which builds every artifact (deb/rpm/pkg.tar.zst/tarball/binaries) and auto-submits to Homebrew/Scoop/winget/AUR. Single source of truth: CMakeLists.txt.

Code of Conduct

By participating you agree to uphold our Code of Conduct. Be kind, be constructive.