| Branch | Purpose |
|---|---|
main |
Stable releases — PRs from dev only |
dev |
Integration branch — all contributions target here |
Workflow:
- Fork or create a feature branch from
dev - Open a PR targeting
dev - Once merged, maintainers layer follow-up fixes if needed
- Periodically,
devis PR'd intomainas a release
Both main and dev are protected — no direct pushes, PRs required.
git clone https://github.com/canesin/coder.git
cd coder
npm installnpm run lint # biome check
npm run format:check # biome format
npm test # node --test
npm audit --audit-level=highAuto-fix formatting:
npm run lint:fixThis project uses ppcommit (tree-sitter AST-based) to enforce commit quality:
coder ppcommit # check all files
coder ppcommit --base dev # check branch diff only- Target the
devbranch (notmain) - Keep changes focused and scoped to one concern
- Add or update tests when behavior changes
- Update README.md if user-facing behavior or config changes
- Never commit secrets or local config (
.env,.mcp.json,.claude/settings.local.json) - Never commit local workflow artifacts (
ISSUE.md,PLAN.md,PLANREVIEW.md,REVIEW.md)