Skip to content

Contributing

Donovan Maidens edited this page Nov 19, 2026 · 1 revision

Contributing

Before you start

Requirements

  • Go at the version in the go line of go.mod
  • Node.js at the version in the engines field of package.json
  • Python 3 for npm run screens
  • Run npm run tools once to install the lint and security tools

Non-negotiable principles

Every change must keep these. A change that breaks one is not ready to merge, whatever its tests say.

  1. The agent never writes to a file without an approved patch.
  2. The agent never runs a command without a policy decision (allowlist or user approval).
  3. The agent never accesses paths outside the workspace root, including via symlinks.
  4. Every consequential action is visible in the TUI before it happens.
  5. Every session is durable and resumable.
  6. Everything is cancellable — no UI hang on a stuck tool or model call.

Pull requests

  • One logical change per PR. Small changes are easier to review.
  • Say what, why, and what you checked. List the exact commands you ran and what they returned.
  • Run npm run check before opening. This runs format, vet, lint, test, and screens checks.
  • New behaviour gets a test. A bug fix gets a test that fails without the fix.
  • If a golden screen changed, say which screens moved and whether the render or the reference was wrong.
  • If a public surface changed, update README.md, the doc/ pages, or CHANGELOG.md to match.

Commit messages

Write the subject line in the imperative mood, under 72 characters. The body explains why, not what. Reference the issue number if one exists.

Code standards

Formatting is enforced by gofumpt (checked via npm run check). Linting runs golangci-lint. Errors are wrapped with context and never swallowed. No global state; pass context through the call tree.

See plan/process/code-standards.md for the full standard.

Clone this wiki locally