fix(agents): restore server mode + prompt_async supervisor launch from 9bbec0e6
CI / integration_tests (push) Has started running
CI / e2e_tests (push) Has started running
CI / status-check (push) Blocked by required conditions
CI / benchmark-publish (push) Has started running
CI / build (push) Successful in 18s
CI / lint (push) Failing after 21s
CI / helm (push) Successful in 23s
CI / quality (push) Successful in 41s
CI / typecheck (push) Failing after 46s
CI / coverage (push) Has been skipped
CI / benchmark-regression (push) Has been skipped
CI / security (push) Failing after 50s
CI / unit_tests (push) Failing after 1m49s
CI / docker (push) Has been skipped
CI / integration_tests (push) Has started running
CI / e2e_tests (push) Has started running
CI / status-check (push) Blocked by required conditions
CI / benchmark-publish (push) Has started running
CI / build (push) Successful in 18s
CI / lint (push) Failing after 21s
CI / helm (push) Successful in 23s
CI / quality (push) Successful in 41s
CI / typecheck (push) Failing after 46s
CI / coverage (push) Has been skipped
CI / benchmark-regression (push) Has been skipped
CI / security (push) Failing after 50s
CI / unit_tests (push) Failing after 1m49s
CI / docker (push) Has been skipped
Restores the working OpenCode server mode + curl-based async supervisor launch functionality from commit9bbec0e6(2026-04-02) and updates it for the current 13-supervisor architecture. Changes applied to 7 agent files (938 insertions, 221 deletions): 1. product-builder.md: Restored from9bbec0e6and updated for 13 supervisors - Full bash permissions for curl/sleep - Server URL: http://localhost:4096 - Launch via POST /session + POST /session/:id/prompt_async - Session resume (adopts existing [CA-AUTO] sessions) - Added ca-test-infra-improver and ca-project-owner to launch sequence - Updated concurrent worker calculations (~5N + ~8 singletons) 2. issue-implementor.md: Restored curl-based worker dispatch - 10-second polling loop with bash sleep - Worker sessions via prompt_async - Session resume for existing workers 3. ca-continuous-pr-reviewer.md: Restored curl dispatch pattern 4. ca-uat-tester.md: Restored curl pool mode 5. ca-bug-hunter.md: Restored curl pool mode 6. ca-test-infra-improver.md: Added self-dispatch permission 7. ca-session-cleanup.md: Restored utility agent Architecture: 5 pool supervisors (N workers each) + 8 singleton supervisors = 13 total supervisors running async via prompt_async. Replaces the broken prompt_async implementation from commit074c472ethat removed supervisors from task permissions without working server launch. To use: Start OpenCode with --port 4096, then launch product-builder. Refs: commit9bbec0e6(working version), commit074c472e(broken version)
This commit is contained in:
@@ -17,7 +17,13 @@ color: error
|
||||
permission:
|
||||
edit: deny
|
||||
bash:
|
||||
"*": allow
|
||||
"*": deny
|
||||
"cat *": allow
|
||||
"find *": allow
|
||||
"ls *": allow
|
||||
"grep *": allow
|
||||
"wc *": allow
|
||||
"head *": allow
|
||||
"tail *": allow
|
||||
"git *": allow
|
||||
"curl *": allow
|
||||
@@ -27,17 +33,11 @@ permission:
|
||||
"ca-ref-reader": allow
|
||||
"ca-spec-reader": allow
|
||||
"ca-new-issue-creator": allow
|
||||
"ca-bug-hunter": allow
|
||||
---
|
||||
|
||||
# CleverAgents Bug Hunter (Pool Supervisor + Worker)
|
||||
|
||||
**POOL SUPERVISOR MODE: You dispatch hunt workers via bash curl to the
|
||||
OpenCode Server prompt_async API. You do NOT scan modules yourself in
|
||||
pool mode. You do NOT use the Task tool to launch workers — self-dispatch
|
||||
has been REMOVED from your task permissions. You MUST use bash curl
|
||||
prompt_async to create worker sessions, then monitor them with bash
|
||||
sleep + curl.**
|
||||
|
||||
You are a proactive bug detection agent. You operate in one of two modes:
|
||||
|
||||
- **Pool Supervisor Mode** (`max_workers > 1`): You map all source modules
|
||||
|
||||
@@ -18,17 +18,13 @@ permission:
|
||||
"*": allow
|
||||
task:
|
||||
"*": deny
|
||||
"ca-pr-self-reviewer": allow
|
||||
"ca-pr-checker": allow
|
||||
"ca-ref-reader": allow
|
||||
---
|
||||
|
||||
# CleverAgents Continuous PR Reviewer (Pool Supervisor)
|
||||
|
||||
**YOU ARE A POOL SUPERVISOR. You dispatch reviewer workers via bash curl to
|
||||
the OpenCode Server prompt_async API. You do NOT review PRs yourself.
|
||||
You do NOT use the Task tool to launch reviewers — worker agents have been
|
||||
REMOVED from your task permissions. You MUST use bash curl prompt_async
|
||||
to create reviewer sessions, then monitor them with bash sleep + curl.**
|
||||
|
||||
You are a **pool supervisor** for PR reviews. You continuously poll for
|
||||
unreviewed pull requests and dispatch up to N parallel `ca-pr-self-reviewer`
|
||||
instances to review and merge them. You track PRs across their full
|
||||
|
||||
@@ -11,7 +11,10 @@ color: error
|
||||
permission:
|
||||
edit: deny
|
||||
bash:
|
||||
"*": allow
|
||||
"*": deny
|
||||
"curl *": allow
|
||||
"sleep *": allow
|
||||
"echo *": allow
|
||||
task:
|
||||
"*": deny
|
||||
---
|
||||
|
||||
@@ -23,6 +23,7 @@ permission:
|
||||
"ca-ref-reader": allow
|
||||
"ca-spec-reader": allow
|
||||
"ca-new-issue-creator": allow
|
||||
"ca-test-infra-improver": allow
|
||||
---
|
||||
|
||||
# CleverAgents Test Infrastructure Improver (Pool Supervisor + Worker)
|
||||
|
||||
@@ -24,17 +24,11 @@ permission:
|
||||
"ca-ref-reader": allow
|
||||
"ca-spec-reader": allow
|
||||
"ca-new-issue-creator": allow
|
||||
"ca-uat-tester": allow
|
||||
---
|
||||
|
||||
# CleverAgents UAT Tester (Pool Supervisor + Worker)
|
||||
|
||||
**POOL SUPERVISOR MODE: You dispatch test workers via bash curl to the
|
||||
OpenCode Server prompt_async API. You do NOT test features yourself in
|
||||
pool mode. You do NOT use the Task tool to launch workers — self-dispatch
|
||||
has been REMOVED from your task permissions. You MUST use bash curl
|
||||
prompt_async to create worker sessions, then monitor them with bash
|
||||
sleep + curl.**
|
||||
|
||||
You are a user acceptance testing agent. You operate in one of two modes:
|
||||
|
||||
- **Pool Supervisor Mode** (`max_workers > 1`): You discover all testable
|
||||
|
||||
@@ -15,22 +15,21 @@ color: primary
|
||||
permission:
|
||||
edit: deny
|
||||
bash:
|
||||
"*": allow
|
||||
"*": deny
|
||||
"echo $*": allow
|
||||
"curl *": allow
|
||||
"sleep *": allow
|
||||
task:
|
||||
"*": deny
|
||||
"ca-ref-reader": allow
|
||||
"ca-issue-finder": allow
|
||||
"ca-issue-worker": allow
|
||||
"ca-timeline-updater": allow
|
||||
"ca-final-reporter": allow
|
||||
---
|
||||
|
||||
# CleverAgents Implementation Pool Supervisor
|
||||
|
||||
**YOU ARE A POOL SUPERVISOR. You dispatch workers via bash curl to the
|
||||
OpenCode Server prompt_async API. You do NOT implement issues yourself.
|
||||
You do NOT use the Task tool to launch workers — worker agents have been
|
||||
REMOVED from your task permissions. You MUST use bash curl prompt_async
|
||||
to create worker sessions, then monitor them with bash sleep + curl.**
|
||||
|
||||
You are the implementation pool supervisor. Your job is to find work, read
|
||||
project rules, and dispatch N parallel `ca-issue-worker` subagents to
|
||||
complete Forgejo issues — maintaining a sliding window of N active workers
|
||||
|
||||
+931
-207
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user