@enderfga/claw-orchestrator 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +218 -0
- package/assets/banner.jpg +0 -0
- package/configs/council-reviewer-prompt.md +82 -0
- package/configs/council-system-prompt.md +141 -0
- package/dist/bin/cli.d.ts +13 -0
- package/dist/bin/cli.js +460 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/src/base-oneshot-session.d.ts +87 -0
- package/dist/src/base-oneshot-session.js +228 -0
- package/dist/src/base-oneshot-session.js.map +1 -0
- package/dist/src/circuit-breaker.d.ts +21 -0
- package/dist/src/circuit-breaker.js +49 -0
- package/dist/src/circuit-breaker.js.map +1 -0
- package/dist/src/consensus.d.ts +20 -0
- package/dist/src/consensus.js +52 -0
- package/dist/src/consensus.js.map +1 -0
- package/dist/src/constants.d.ts +129 -0
- package/dist/src/constants.js +138 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/council.d.ts +67 -0
- package/dist/src/council.js +914 -0
- package/dist/src/council.js.map +1 -0
- package/dist/src/embedded-server.d.ts +25 -0
- package/dist/src/embedded-server.js +360 -0
- package/dist/src/embedded-server.js.map +1 -0
- package/dist/src/inbox-manager.d.ts +38 -0
- package/dist/src/inbox-manager.js +111 -0
- package/dist/src/inbox-manager.js.map +1 -0
- package/dist/src/index.d.ts +63 -0
- package/dist/src/index.js +973 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/logger.d.ts +16 -0
- package/dist/src/logger.js +44 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/models.d.ts +69 -0
- package/dist/src/models.js +299 -0
- package/dist/src/models.js.map +1 -0
- package/dist/src/openai-compat.d.ts +224 -0
- package/dist/src/openai-compat.js +756 -0
- package/dist/src/openai-compat.js.map +1 -0
- package/dist/src/persistent-codex-app-session.d.ts +108 -0
- package/dist/src/persistent-codex-app-session.js +465 -0
- package/dist/src/persistent-codex-app-session.js.map +1 -0
- package/dist/src/persistent-codex-session.d.ts +37 -0
- package/dist/src/persistent-codex-session.js +208 -0
- package/dist/src/persistent-codex-session.js.map +1 -0
- package/dist/src/persistent-cursor-session.d.ts +21 -0
- package/dist/src/persistent-cursor-session.js +241 -0
- package/dist/src/persistent-cursor-session.js.map +1 -0
- package/dist/src/persistent-custom-session.d.ts +78 -0
- package/dist/src/persistent-custom-session.js +938 -0
- package/dist/src/persistent-custom-session.js.map +1 -0
- package/dist/src/persistent-gemini-session.d.ts +21 -0
- package/dist/src/persistent-gemini-session.js +216 -0
- package/dist/src/persistent-gemini-session.js.map +1 -0
- package/dist/src/persistent-session.d.ts +80 -0
- package/dist/src/persistent-session.js +745 -0
- package/dist/src/persistent-session.js.map +1 -0
- package/dist/src/proxy/anthropic-adapter.d.ts +136 -0
- package/dist/src/proxy/anthropic-adapter.js +392 -0
- package/dist/src/proxy/anthropic-adapter.js.map +1 -0
- package/dist/src/proxy/handler.d.ts +39 -0
- package/dist/src/proxy/handler.js +365 -0
- package/dist/src/proxy/handler.js.map +1 -0
- package/dist/src/proxy/schema-cleaner.d.ts +11 -0
- package/dist/src/proxy/schema-cleaner.js +34 -0
- package/dist/src/proxy/schema-cleaner.js.map +1 -0
- package/dist/src/proxy/thought-cache.d.ts +19 -0
- package/dist/src/proxy/thought-cache.js +53 -0
- package/dist/src/proxy/thought-cache.js.map +1 -0
- package/dist/src/session-manager.d.ts +317 -0
- package/dist/src/session-manager.js +1528 -0
- package/dist/src/session-manager.js.map +1 -0
- package/dist/src/types.d.ts +513 -0
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/validation.d.ts +31 -0
- package/dist/src/validation.js +104 -0
- package/dist/src/validation.js.map +1 -0
- package/openclaw.plugin.json +122 -0
- package/package.json +84 -0
- package/skills/SKILL.md +184 -0
- package/skills/references/claude-cli-tracking.md +25 -0
- package/skills/references/cli.md +187 -0
- package/skills/references/council.md +210 -0
- package/skills/references/getting-started.md +133 -0
- package/skills/references/inbox.md +81 -0
- package/skills/references/multi-engine.md +382 -0
- package/skills/references/openai-compat.md +203 -0
- package/skills/references/sessions.md +191 -0
- package/skills/references/tools.md +418 -0
- package/skills/references/ultra.md +126 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Ultraplan & Ultrareview
|
|
2
|
+
|
|
3
|
+
High-level orchestration features for deep project planning and fleet code review. Inspired by Claude Code's Ultraplan and Ultrareview commands.
|
|
4
|
+
|
|
5
|
+
## Ultraplan
|
|
6
|
+
|
|
7
|
+
A dedicated planning session that explores your project thoroughly (up to 30 minutes) and produces a detailed implementation plan.
|
|
8
|
+
|
|
9
|
+
### How It Works
|
|
10
|
+
|
|
11
|
+
1. Starts an Opus session in **plan mode** with **max effort**
|
|
12
|
+
2. Appends a system prompt instructing thorough exploration and plan-only output
|
|
13
|
+
3. Sends the task description and waits for completion
|
|
14
|
+
4. Returns the plan text when done
|
|
15
|
+
|
|
16
|
+
Runs in background — poll with `ultraplan_status`.
|
|
17
|
+
|
|
18
|
+
### Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
const plan = manager.ultraplanStart('Add OAuth2 support with Google and GitHub providers', {
|
|
22
|
+
cwd: '/path/to/project',
|
|
23
|
+
model: 'opus', // default
|
|
24
|
+
timeout: 1800000, // 30 min default
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
console.log(`Plan ID: ${plan.id}`);
|
|
28
|
+
|
|
29
|
+
// Poll for completion
|
|
30
|
+
const status = manager.ultraplanStatus(plan.id);
|
|
31
|
+
if (status?.status === 'completed') {
|
|
32
|
+
console.log(status.plan);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Tools
|
|
37
|
+
|
|
38
|
+
| Tool | Description |
|
|
39
|
+
|------|-------------|
|
|
40
|
+
| `ultraplan_start` | Start planning session (background) |
|
|
41
|
+
| `ultraplan_status` | Get status and plan text |
|
|
42
|
+
|
|
43
|
+
### Configuration
|
|
44
|
+
|
|
45
|
+
| Parameter | Default | Description |
|
|
46
|
+
|-----------|---------|-------------|
|
|
47
|
+
| `model` | `opus` | Model to use for planning |
|
|
48
|
+
| `cwd` | `process.cwd()` | Project directory to explore |
|
|
49
|
+
| `timeout` | 1,800,000 ms (30 min) | Maximum planning time |
|
|
50
|
+
|
|
51
|
+
Results remain queryable for 30 minutes after completion.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Ultrareview
|
|
56
|
+
|
|
57
|
+
A fleet of specialized bug-hunting agents that review your codebase in parallel, each from a different angle. Built on top of the [Council](./council.md) system.
|
|
58
|
+
|
|
59
|
+
### How It Works
|
|
60
|
+
|
|
61
|
+
1. Creates a council with N reviewer agents (5-20)
|
|
62
|
+
2. Each agent specializes in a different review angle
|
|
63
|
+
3. Agents run in parallel via git worktree isolation
|
|
64
|
+
4. Findings from all agents are synthesized into a single report
|
|
65
|
+
|
|
66
|
+
### Available Review Angles (20)
|
|
67
|
+
|
|
68
|
+
| Agent | Focus |
|
|
69
|
+
|-------|-------|
|
|
70
|
+
| SecurityReviewer | Injection, auth flaws, data exposure, OWASP top 10 |
|
|
71
|
+
| LogicReviewer | Off-by-one, race conditions, null handling, edge cases |
|
|
72
|
+
| PerformanceReviewer | O(n^2) loops, memory leaks, missing caching, N+1 queries |
|
|
73
|
+
| APIReviewer | Inconsistent interfaces, missing validation, error gaps |
|
|
74
|
+
| TestReviewer | Untested paths, missing edge case tests, flaky patterns |
|
|
75
|
+
| TypeReviewer | `any` casts, unsafe assertions, missing null checks |
|
|
76
|
+
| ConcurrencyReviewer | Race conditions, deadlocks, async error handling |
|
|
77
|
+
| ErrorReviewer | Swallowed errors, missing try/catch, crash paths |
|
|
78
|
+
| DependencyReviewer | Outdated packages, CVEs, unnecessary deps |
|
|
79
|
+
| ReadabilityReviewer | Unclear naming, complex functions, dead code |
|
|
80
|
+
| DataReviewer | Data validation, schema mismatches, encoding |
|
|
81
|
+
| ConfigReviewer | Hardcoded values, missing env vars, insecure defaults |
|
|
82
|
+
| ScalabilityReviewer | Single points of failure, unbounded growth |
|
|
83
|
+
| DocReviewer | Outdated docs, missing API docs, misleading comments |
|
|
84
|
+
| A11yReviewer | ARIA labels, keyboard nav, color contrast |
|
|
85
|
+
| I18nReviewer | Hardcoded strings, locale handling, RTL support |
|
|
86
|
+
| NetworkReviewer | Missing timeouts, retry logic, connection pooling |
|
|
87
|
+
| AuthReviewer | Token handling, CSRF, permission checks |
|
|
88
|
+
| CryptoReviewer | Weak algorithms, key management, RNG |
|
|
89
|
+
| MemoryReviewer | Memory leaks, circular references, stream handling |
|
|
90
|
+
|
|
91
|
+
### Usage
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
const review = manager.ultrareviewStart('/path/to/project', {
|
|
95
|
+
agentCount: 10, // use 10 of the 20 angles
|
|
96
|
+
maxDurationMinutes: 15, // 15 min timeout per agent
|
|
97
|
+
model: 'sonnet', // model for all reviewers
|
|
98
|
+
focus: 'Find security and performance bugs',
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
console.log(`Review ID: ${review.id}, Council: ${review.councilId}`);
|
|
102
|
+
|
|
103
|
+
// Poll for completion
|
|
104
|
+
const status = manager.ultrareviewStatus(review.id);
|
|
105
|
+
if (status?.status === 'completed') {
|
|
106
|
+
console.log(status.findings);
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Tools
|
|
111
|
+
|
|
112
|
+
| Tool | Description |
|
|
113
|
+
|------|-------------|
|
|
114
|
+
| `ultrareview_start` | Launch reviewer fleet (background) |
|
|
115
|
+
| `ultrareview_status` | Get status and findings |
|
|
116
|
+
|
|
117
|
+
### Configuration
|
|
118
|
+
|
|
119
|
+
| Parameter | Default | Range | Description |
|
|
120
|
+
|-----------|---------|-------|-------------|
|
|
121
|
+
| `agentCount` | 5 | 1-20 | Number of reviewer agents |
|
|
122
|
+
| `maxDurationMinutes` | 10 | 5-25 | Per-agent timeout |
|
|
123
|
+
| `model` | session default | — | Model for all reviewers |
|
|
124
|
+
| `focus` | bugs + security + quality | — | Review focus description |
|
|
125
|
+
|
|
126
|
+
The council runs with `maxRounds: 2` — one round to find bugs, one to cross-review. Results remain queryable for 30 minutes.
|