refactor(agents): flatten agents directory (#621)
This commit is contained in:
@@ -143,7 +143,7 @@ Previously-resolved threads (from `cross_invocation.resolved_threads`) participa
|
||||
|
||||
#### Individual dispatch (default)
|
||||
|
||||
**For review threads** (`review_threads`): Spawn a `workflow:ce-pr-comment-resolver` agent for each new thread that is NOT already assigned to a cluster from step 3. Clustered threads are handled by cluster dispatch below -- do not dispatch them individually.
|
||||
**For review threads** (`review_threads`): Spawn a `ce-pr-comment-resolver` agent for each new thread that is NOT already assigned to a cluster from step 3. Clustered threads are handled by cluster dispatch below -- do not dispatch them individually.
|
||||
|
||||
Each agent receives:
|
||||
- The thread ID
|
||||
@@ -153,11 +153,11 @@ Each agent receives:
|
||||
- The feedback type (`review_thread`)
|
||||
- The `isOutdated` flag from the thread node (tells the agent the reported line may have drifted)
|
||||
|
||||
**For PR comments and review bodies** (`pr_comments`, `review_bodies`): These lack file/line context. Spawn a `workflow:ce-pr-comment-resolver` agent for each actionable non-clustered item. The agent receives the comment ID, body text, PR number, and feedback type (`pr_comment` or `review_body`). The agent must identify the relevant files from the comment text and the PR diff.
|
||||
**For PR comments and review bodies** (`pr_comments`, `review_bodies`): These lack file/line context. Spawn a `ce-pr-comment-resolver` agent for each actionable non-clustered item. The agent receives the comment ID, body text, PR number, and feedback type (`pr_comment` or `review_body`). The agent must identify the relevant files from the comment text and the PR diff.
|
||||
|
||||
#### Cluster dispatch
|
||||
|
||||
For each cluster identified in step 3, dispatch ONE `workflow:ce-pr-comment-resolver` agent that receives:
|
||||
For each cluster identified in step 3, dispatch ONE `ce-pr-comment-resolver` agent that receives:
|
||||
- The `<cluster-brief>` XML block
|
||||
- All thread details for threads in the cluster (IDs, file paths, line numbers, comment text)
|
||||
- The PR number
|
||||
@@ -376,7 +376,7 @@ This fetches thread IDs and their first comment IDs (minimal fields, no bodies)
|
||||
|
||||
### 2. Fix, Reply, Resolve
|
||||
|
||||
Spawn a single `workflow:ce-pr-comment-resolver` agent for the thread. Pass the same fields full mode does, including `isOutdated` and the location fields (`line`, `originalLine`, `startLine`, `originalStartLine`) -- targeted threads can be outdated too and need the same relocation handling. Then follow the same validate -> commit -> push -> reply -> resolve flow as Full Mode steps 6-8.
|
||||
Spawn a single `ce-pr-comment-resolver` agent for the thread. Pass the same fields full mode does, including `isOutdated` and the location fields (`line`, `originalLine`, `startLine`, `originalStartLine`) -- targeted threads can be outdated too and need the same relocation handling. Then follow the same validate -> commit -> push -> reply -> resolve flow as Full Mode steps 6-8.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user