Skip to content

feat: add hawk review — continuous background code review#5

Merged
Patel230 merged 1 commit into
mainfrom
feat/review-continuous
May 17, 2026
Merged

feat: add hawk review — continuous background code review#5
Patel230 merged 1 commit into
mainfrom
feat/review-continuous

Conversation

@Patel230
Copy link
Copy Markdown
Contributor

Summary

Adds a roborev-inspired continuous review system that hooks into git commits, reviews via sight, and can auto-fix findings.

New Commands

Command Description
hawk review init Install post-commit hook
hawk review run <sha> Review a specific commit
hawk review status Show review queue summary
hawk review show Display findings for a commit
hawk review list List all reviews
hawk review close Mark review as resolved
hawk review fix Auto-fix findings via hawk exec
hawk review refine Iterative fix loop (fix → re-review → repeat)
hawk review analyze <type> On-demand analysis (security, complexity, duplication, dead-code, refactor, test-fixtures)
hawk review tui Interactive bubbletea review queue

Infrastructure

  • SQLite review store (.hawk/reviews.db) with WAL mode
  • Daemon endpoints (POST /v1/review, GET /v1/review/status)
  • 5 new review lifecycle events in hooks/events.go

How It Works

  1. hawk review init installs a post-commit hook
  2. Every commit triggers hawk review run <sha> --background
  3. sight library reviews the diff, findings stored in SQLite
  4. hawk review fix feeds findings to hawk exec for auto-correction
  5. hawk review refine loops until all reviews pass

Testing

10 unit tests covering store CRUD, prompt building, and command wiring. All pass.

Adds a roborev-inspired continuous review system that hooks into git
commits, reviews via sight, and can auto-fix findings.

New commands:
- hawk review init       (install post-commit hook)
- hawk review run <sha>  (review a commit)
- hawk review status/show/close/list (read commands)
- hawk review fix        (auto-fix via hawk exec)
- hawk review refine     (iterative fix loop)
- hawk review analyze    (on-demand analysis: security, complexity, etc.)
- hawk review tui        (interactive bubbletea queue)

Infrastructure:
- SQLite review store (.hawk/reviews.db)
- Daemon endpoints (POST /v1/review, GET /v1/review/status)
- Review lifecycle events in hooks/events.go
@Patel230 Patel230 merged commit 9cad447 into main May 17, 2026
3 of 5 checks passed
@Patel230 Patel230 deleted the feat/review-continuous branch May 17, 2026 16:04
Patel230 added a commit that referenced this pull request May 21, 2026
Adds a roborev-inspired continuous review system that hooks into git
commits, reviews via sight, and can auto-fix findings.

New commands:
- hawk review init       (install post-commit hook)
- hawk review run <sha>  (review a commit)
- hawk review status/show/close/list (read commands)
- hawk review fix        (auto-fix via hawk exec)
- hawk review refine     (iterative fix loop)
- hawk review analyze    (on-demand analysis: security, complexity, etc.)
- hawk review tui        (interactive bubbletea queue)

Infrastructure:
- SQLite review store (.hawk/reviews.db)
- Daemon endpoints (POST /v1/review, GET /v1/review/status)
- Review lifecycle events in hooks/events.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant