Use Greptile and CodeRabbit for Swift lint rules
Summary
Adds a vendor-only version of the Swift lint review setup as an alternative to https://github.com/manaflow-ai/cmux/pull/3407.
- Adds shared Swift review rules under
.github/review-bot-rules/ - Configures Greptile to apply the rules and publish a GitHub status check
- Configures CodeRabbit code guidelines, path instructions, and error-mode custom pre-merge checks
Notes
No model provider API keys, GitHub Actions workflow, or pull_request_target runner is added here. The rules are applied by Greptile and CodeRabbit from base-branch configuration. For open source safety, PR-head edits to these files should not weaken their own review.
CodeRabbit ignores .coderabbit.yaml changes from PR heads in open source repos, so this PR may be reviewed with default CodeRabbit config. Future PRs should use this config after it lands on main.
Validation
jq empty .greptile/config.json .greptile/files.jsonruby -ryaml -rjson -e 'puts JSON.generate(YAML.load_file(".coderabbit.yaml"))' > /tmp/coderabbit-review-bot-rules.json\n-bun x ajv-cli validate --strict=false -s /Users/lawrence/fun/cmuxterm-hq/worktrees/feat-deepseek-diff-lint/tmp/coderabbit-schema.json -d /tmp/coderabbit-review-bot-rules.json
Summary by cubic
Adds shared Swift review rules and configures Greptile and CodeRabbit to enforce them via a status check and error‑mode pre‑merge checks. Focus areas: actor isolation, blocking runtime, concurrency modernization, @concurrent, logging, SwiftUI state/layout, and architectural fixes.
-
New Features
- Added rule docs under
.github/review-bot-rules/as the source of truth. - Configured
Greptileto apply these rules, publish a status check, and map rule files/scopes via.greptile/files.json. - Added
.coderabbit.yamlwith knowledge base patterns (AGENTS.md,CLAUDE.md) and custom error‑mode checks for each rule. - Scoped reviews to production Swift changes and key project files (e.g.,
Package.swift,GhosttyTabs.xcodeproj/**).
- Added rule docs under
-
Migration
- No GitHub Actions or API keys added;
GreptileandCodeRabbitread from the base branch. - PR‑head edits to rule files do not weaken review until merged.
- After this lands on
main, future PRs will be evaluated with these rules by default.
- No GitHub Actions or API keys added;
Summary by CodeRabbit
-
Chores
- Enhanced automated review infrastructure with pre-merge blocking checks that enforce Swift safety: actor isolation, concurrency modernization/annotations, blocking/runtime synchronization, logging hygiene, and SwiftUI state/layout patterns.
-
Documentation
- Added comprehensive review guidelines describing failure criteria, allowed exceptions, and required reporting for architectural, concurrency, logging, and SwiftUI issues to guide reviewers and automation.