Skip to content

feat(overwatch): Add package#693

Merged
xavierhamel merged 4 commits into
masterfrom
xh/add-overwatch
Jul 16, 2026
Merged

feat(overwatch): Add package#693
xavierhamel merged 4 commits into
masterfrom
xh/add-overwatch

Conversation

@xavierhamel

Copy link
Copy Markdown
Contributor

No description provided.

@greptile-apps

greptile-apps Bot commented Jul 15, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds the new Overwatch package for running repository repair loops. The main changes are:

  • Daytona-backed sandbox provisioning and repository access.
  • Sensors, pickers, coding-agent actuators, and retry verification.
  • GitHub PR creation, claim tracking, and review-comment handling.
  • A CLI, package build, publishing workflow, tests, documentation, and examples.

Confidence Score: 4/5

Concurrent execution and partial GitHub operations can create duplicate PRs or lose comment updates.

  • The open-PR limit is not atomic across overlapping runs.
  • Comment updates to the same branch can race and discard one invocation's work.
  • Failed label application hides an existing PR and its claims from later runs.
  • Claim parsing and review-thread pagination can reprocess completed work.

overwatch/src/control-loop.ts, overwatch/src/github.ts, overwatch/src/claims.ts, overwatch/src/actuators/agent-pr.ts

Important Files Changed

Filename Overview
overwatch/src/control-loop.ts Adds the main run and comment-application state machines; concurrent runs can exceed the PR cap or lose comment updates, and feedback is duplicated in the current prompt.
overwatch/src/github.ts Adds GitHub cloning, PR, label, comment, and push operations; partial PR creation loses claim visibility and resolved-thread lookup is truncated.
overwatch/src/claims.ts Adds PR-body claim markers whose delimiter-based format can be broken by valid signal text.
overwatch/src/actuators/agent-pr.ts Adds iterative agent repair and PR creation, with an uncompensated pushed-branch state when PR creation fails.
overwatch/src/agents.ts Adds Claude and Codex adapters with staged prompts and sandbox command execution.
overwatch/src/sensors/ast-grep.ts Adds scoped ast-grep execution and conversion of matches into signals.
overwatch/src/sensors/react-doctor.ts Adds react-doctor execution and conversion of diagnostics into signals.
overwatch/build.ts Adds per-file CommonJS compilation with esbuild.
overwatch/package.json Defines package entry points, scripts, dependencies, engines, and publishing settings.

Reviews (1): Last reviewed commit: "feat(overwatch): Add package" | Re-trigger Greptile

Comment thread overwatch/src/control-loop.ts
Comment thread overwatch/src/control-loop.ts
Comment thread overwatch/src/control-loop.ts
Comment thread overwatch/src/github.ts Outdated
Comment thread overwatch/src/github.ts
Comment thread overwatch/src/claims.ts
Comment thread overwatch/src/actuators/agent-pr.ts
franklevasseur
franklevasseur previously approved these changes Jul 16, 2026
@xavierhamel
xavierhamel merged commit 7a88541 into master Jul 16, 2026
1 check passed
@xavierhamel
xavierhamel deleted the xh/add-overwatch branch July 16, 2026 17:31
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.

2 participants