Breaking Changes
- Bun Runtime Required: The tool now requires Bun runtime instead of Node.js
- Install via
bun install -g @devintern/code(not npm) - Run directly via
bunx @devintern/codeor after global install
- Install via
Added
-
Webhook Server for Automated PR Reviews: New
serve-webhookcommand that automatically addresses PR review feedback- Listens for GitHub webhook events and processes
changes_requestedreviews when bot is mentioned - SQLite-based persistent queue (
bun:sqlite) for crash-resilient processing with automatic recovery on restart - Dedicated worktree at
/tmp/devintern-review-worktree/provides isolation from main repository - Automatically detects and installs project dependencies (supports bun, pnpm, npm, yarn, poetry, uv, pip)
- Commits attributed to GitHub App bot account (
app-name[bot]) for clear audit trail - Fetches complete review context including all comments and conversation threads
- Posts implementation summaries as PR review replies
- Configurable via
WEBHOOK_PORT,WEBHOOK_SECRET, and other environment variables
- Listens for GitHub webhook events and processes
-
Address-Review Command: Manual PR review processing via
devintern address-review <pr-url>- Handles single PR review on-demand without running webhook server
- Uses same worktree isolation and dependency installation as webhook server
Changed
-
Review Worktree Location: Moved from
.devintern-code/review-worktree/to/tmp/devintern-review-worktree/- Better isolation from main repository
- Automatic cleanup of stale worktree registrations from old paths
-
Optimized Worktree Operations: Improved performance for worktree preparation
- Shallow clone with
--depth 1for faster initial setup - Simplified preparation logic with reduced error noise
- Single reusable worktree instead of per-PR worktrees
- Shallow clone with
Fixed
-
Fetch All PR Review Comments: Now fetches all comments from the PR, not just the latest review
- Ensures Claude sees complete review context
- Handles pagination for PRs with many comments
-
Stale Worktree Registration Handling: Gracefully handles orphaned worktree entries
- Automatically unregisters worktrees pointing to non-existent directories
- Prevents “fatal: is already checked out” errors
Technical
- Dependencies: Added
bun:sqlitefor persistent queue (bundled with Bun runtime) - Build Process: Updated
build.tsto target Bun runtime - Documentation: Updated README.md, USAGE.md, and CLAUDE.md to reflect Bun requirement