jules-orchestrator-kit 0.29.0 β 0.31.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/README.md +174 -89
- package/bin/agentctl.mjs +205 -6
- package/index.mjs +21 -1
- package/package.json +1 -1
- package/src/config.mjs +18 -2
- package/src/dag-engine.mjs +76 -0
- package/src/dashboard.mjs +2 -2
- package/src/engine.mjs +296 -37
- package/src/envelope.mjs +24 -2
- package/src/mcp.mjs +35 -1
- package/src/ops/checkpoint.mjs +167 -0
- package/src/ops/command-registry.mjs +274 -0
- package/src/ops/doctor-planner.mjs +214 -0
- package/src/ops/doctor-registry.mjs +442 -0
- package/src/ops/ide-scaffold.mjs +139 -0
- package/src/ops/receipts.mjs +171 -0
- package/src/ops/swarm-actions.mjs +156 -0
- package/src/ops/task-actions.mjs +214 -0
- package/src/ops/tdd-generator.mjs +115 -0
- package/src/ops/transaction.mjs +278 -0
- package/src/provider.mjs +164 -8
- package/src/security.mjs +15 -7
- package/src/stack-detector.mjs +15 -5
- package/src/state.mjs +44 -7
- package/src/task-optimizer.mjs +306 -0
- package/src/telemetry.mjs +35 -2
- package/src/tui.mjs +4 -1
- package/src/ux/capabilities.mjs +180 -0
- package/src/ux/diff-viewer.mjs +289 -0
- package/src/ux/key-decoder.mjs +281 -0
- package/src/ux/layout.mjs +195 -0
- package/src/ux/log-viewer.mjs +110 -0
- package/src/ux/palette.mjs +179 -0
- package/src/ux/queue-model.mjs +206 -0
- package/src/ux/renderer.mjs +188 -0
- package/src/ux/swarm-model.mjs +146 -0
- package/src/ux/terminal-session.mjs +215 -0
- package/src/ux/widgets.mjs +323 -0
- package/src/webhook.mjs +120 -0
- package/src/wizard-init.mjs +41 -11
- package/src/wizard-task.mjs +51 -15
package/README.md
CHANGED
|
@@ -23,12 +23,15 @@
|
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
25
|
<a href="#what-is-kit">π‘ What is Kit?</a> β’
|
|
26
|
+
<a href="#who-is-it-for">π₯ Who Is It For?</a> β’
|
|
26
27
|
<a href="#quickstart">β‘ Quickstart</a> β’
|
|
27
|
-
<a href="#triage-guidelines">π― Triage
|
|
28
|
+
<a href="#triage-guidelines">π― Triage</a> β’
|
|
28
29
|
<a href="#matrix">π Matrix</a>
|
|
29
30
|
<br/>
|
|
31
|
+
<a href="#configuration">βοΈ Configuration</a> β’
|
|
30
32
|
<a href="#architecture">ποΈ Architecture</a> β’
|
|
31
33
|
<a href="#cli-docs">π οΈ CLI Docs</a> β’
|
|
34
|
+
<a href="#providers">π Providers</a> β’
|
|
32
35
|
<a href="#roadmap">πΊοΈ Roadmap</a>
|
|
33
36
|
</p>
|
|
34
37
|
|
|
@@ -59,25 +62,59 @@
|
|
|
59
62
|
|
|
60
63
|
<br/>
|
|
61
64
|
|
|
65
|
+
<a id="who-is-it-for"></a>
|
|
66
|
+
## π₯ Who Is It For?
|
|
67
|
+
|
|
68
|
+
Whether you are trying your first AI coding session or running enterprise monorepo swarms, `jules-orchestrator-kit` scales with your workflow:
|
|
69
|
+
|
|
70
|
+
<br/>
|
|
71
|
+
|
|
72
|
+
| Role | Primary Value Proposition | Key Commands |
|
|
73
|
+
| :--- | :--- | :--- |
|
|
74
|
+
| **π± Beginners & Solo Developers** | Safely experiment with AI agents without risking broken code, leaked API keys, or ruined git history. | `agentctl init`<br/>`agentctl task create` |
|
|
75
|
+
| **π¦ Single-Repo Maintainers** | Automate bug fixes, dependency updates, and PR reviews with automated OODA test verification. | `agentctl gate`<br/>`agentctl queue` |
|
|
76
|
+
| **ποΈ Monorepo Engineering Teams** | Isolate subproject verification (`backend/`, `frontend/`, `cli/`) so agent edits never thrash global test suites. | `agentctl swarm`<br/>`agentctl lock` |
|
|
77
|
+
| **π‘οΈ Platform & Security Engineers** | Enforce zero-trust security policies, pre-commit secret scrubbing, and strict 75 KB diff payload limits. | `agentctl doctor`<br/>`agentctl dashboard` |
|
|
78
|
+
|
|
79
|
+
<br/>
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
<br/>
|
|
84
|
+
|
|
62
85
|
## π― Why `jules-orchestrator-kit`?
|
|
63
86
|
|
|
64
87
|
Autonomous coding agents can write software at 100Γ human speedβbut unconstrained agents introduce silent regressions, leak API keys, hallucinate test assertions, and thrash shared monorepos.
|
|
65
88
|
|
|
66
89
|
`jules-orchestrator-kit` provides the missing **Safety, Orchestration, and Verification Kernel** for high-reliability AI agent deployments:
|
|
67
90
|
|
|
68
|
-
*
|
|
91
|
+
* **π₯ Warm Multi-Turn Session Resumption (`v0.31.0`):** Streams OODA repair prompts directly into active Google Jules session streams via `POST /v1alpha/sessions/{id}:sendMessage`, saving 60β80% context tokens while preserving reasoning context.
|
|
92
|
+
|
|
93
|
+
* **π§ͺ Automated TDD Red-to-Green Harness (`agentctl test-gen`):** Scaffolds falsifiable unit tests from bug specs, verifies **RED** failure state, locks the test file in `scope.deny`, and tasks Jules with making it pass (**GREEN** state).
|
|
94
|
+
|
|
95
|
+
* **π‘οΈ 1-Click Atomic Git Checkpoint & Rollback (`agentctl rollback`):** Snapshots working tree state, git diffs, and stashes before every session, enabling instant 1-command git restoration.
|
|
96
|
+
|
|
97
|
+
* **π Verification Sandbox & SSR Hydration Prober (`verify.server`):** Executes deterministic `setup`/`teardown` hooks for databases and boots dev servers to intercept React/Next.js SSR hydration panics before approving PRs.
|
|
98
|
+
|
|
99
|
+
* **β‘ AST Blast-Radius Selective Testing:** Traverses file import dependency graphs to execute only affected downstream test suites, cutting monorepo test latency from minutes to milliseconds.
|
|
100
|
+
|
|
101
|
+
* **π¨ Asynchronous HITL Escalation Bridge (`agentctl escalate`):** Dispatches Slack & Discord webhook alerts when Jules needs feedback, allowing engineers to unblock agents asynchronously via `agentctl resume <id> --response "<reply>"`.
|
|
102
|
+
|
|
103
|
+
* **π Zero Runtime Dependencies:** Built exclusively on Node.js 20+ built-ins (`node:fs`, `node:child_process`, `node:crypto`, `node:path`, `node:http`, `node:tty`, `node:test`). Zero third-party npm packages mean zero supply-chain CVE risk.
|
|
69
104
|
|
|
70
105
|
* **π‘οΈ Fail-Closed Security Gatekeeper:** Unconditionally evaluates explicit Deny rules *before* Allow rules, redacts high-entropy secrets and PII from dry-runs and git diffs, and rejects PRs exceeding the 75 KB Diff Payload governor.
|
|
71
106
|
|
|
72
107
|
* **π Autonomous OODA Self-Healing:** Captures test stderr/stdout, normalizes failure fingerprints, and feeds structured error contexts back into repair iterations (up to 3 automatic attempts) before human escalation.
|
|
73
108
|
|
|
109
|
+
* **π» Native Interactive UX & Command Palette (`v0.30.0`):** Features a zero-dependency full-screen Terminal Engine (`capabilities`, `key-decoder`, `renderer`, `layout`, `widgets`), interactive diagnostic matrix (`agentctl doctor`), task queue/swarm managers (`agentctl queue`, `agentctl swarm`), and a searchable Command Palette.
|
|
110
|
+
|
|
74
111
|
* **π Universal Polyglot Spine:** Natively auto-detects 24+ tech stacks (PHP/Laravel/WordPress, .NET/C#, Python, Go, Rust, C/C++, Flutter/Swift, Node/Deno/Bun) and transparently wraps verification suites in Docker Compose or Devcontainer sandboxes.
|
|
75
112
|
|
|
76
113
|
* **π Scoped Monorepo Boundary Resolver:** Statically maps changed files up directory ancestry to invoke isolated subshell test suites (`(cd backend && pytest) && (cd cli && cargo test)`), eliminating global test thrashing.
|
|
77
114
|
|
|
78
115
|
* **π Zero-Test Bootstrapping (`agentctl bootstrap`):** Synthesizes deterministic syntax-check and smoke-test verification oracles for untested legacy repositories so agents always operate against a falsifiable feedback loop.
|
|
79
116
|
|
|
80
|
-
* **π Proven Scale & Reliability:** Empirically tested with **
|
|
117
|
+
* **π Proven Scale & Reliability:** Empirically tested with **368 unit tests across 52 suites passing in < 3.0s**, supporting 300+ daily agent sessions per repository.
|
|
81
118
|
|
|
82
119
|
<br/>
|
|
83
120
|
|
|
@@ -124,11 +161,12 @@ To ensure maximum merge success, dispatch tasks according to our deterministic t
|
|
|
124
161
|
<a id="matrix"></a>
|
|
125
162
|
## π Feature Comparison Matrix
|
|
126
163
|
|
|
127
|
-
| Dimension | Raw Agent Execution (No Orchestrator) | Standard CI/CD Pipelines | `jules-orchestrator-kit` (v0.
|
|
164
|
+
| Dimension | Raw Agent Execution (No Orchestrator) | Standard CI/CD Pipelines | `jules-orchestrator-kit` (v0.30.0) |
|
|
128
165
|
| :--- | :--- | :--- | :--- |
|
|
129
166
|
| **Self-Healing Loop** | β None (Crashes on test error) | β None (Fails build; notifies human) | β
**Autonomous OODA Loop** (Max 3 repair turns with error fingerprinting) |
|
|
167
|
+
| **Interactive UX Engine**| β Raw unformatted CLI dumps | β Non-interactive log outputs | β
**Native TUI Engine & Command Palette** (Zero-dependency alternate-screen TUI) |
|
|
130
168
|
| **Scope Isolation** | β None (Can modify CI files or lockfiles) | π‘ Post-commit branch rules only | β
**Fail-Closed Scope Guard** (Deny-first evaluation; blocks protected paths) |
|
|
131
|
-
| **Polyglot Stack Detection**| β Manual prompt instructions | π‘ Hardcoded YAML workflow steps | β
**Universal 24+ Stack Detector** (`src/
|
|
169
|
+
| **Polyglot Stack Detection**| β Manual prompt instructions | π‘ Hardcoded YAML workflow steps | β
**Universal 24+ Stack Detector** (`src/config.mjs`) |
|
|
132
170
|
| **Flaky Test Quarantine** | β Fails session randomly | β Breaks CI pipeline randomly | β
**Wilson-Score Statistical Quarantine** (Oscillation β₯ 0.40 quarantined automatically) |
|
|
133
171
|
| **Monorepo Scoping** | β Runs full global test suite | π‘ Requires custom Nx/Turbo scripting | β
**Scoped Subshell Boundary Resolver** (`resolveWorkspaceBoundary`) |
|
|
134
172
|
| **Zero-Test Bootstrapping**| β Halts without verification oracle | β Fails build if no tests exist | β
**Instant Oracle Synthesis** (`php -l`, `compileall`, `dotnet build`, `tsc`, `smoke`) |
|
|
@@ -148,62 +186,42 @@ To ensure maximum merge success, dispatch tasks according to our deterministic t
|
|
|
148
186
|
<br/>
|
|
149
187
|
|
|
150
188
|
<a id="quickstart"></a>
|
|
151
|
-
## β‘
|
|
189
|
+
## β‘ Guided Quickstart (Audit β Author β Verify)
|
|
152
190
|
|
|
153
|
-
Get
|
|
191
|
+
Get started with a safe 3-step workflow across any repository:
|
|
154
192
|
|
|
155
193
|
<br/>
|
|
156
194
|
|
|
157
|
-
### 1
|
|
195
|
+
### Step 1: Security & Scope Gate Audit
|
|
196
|
+
Audit your current working tree or branch for secret leaks, protected path violations, and verification readiness:
|
|
158
197
|
```bash
|
|
159
|
-
#
|
|
160
|
-
npx jules-orchestrator-kit
|
|
161
|
-
--prompt "Implement IP-based token-bucket rate limiting in src/router.ts with unit tests."
|
|
198
|
+
# Run security, secret scanning, and scope gate audit without modifying files
|
|
199
|
+
npx jules-orchestrator-kit gate --mode working-tree
|
|
162
200
|
```
|
|
163
201
|
|
|
164
202
|
<br/>
|
|
165
203
|
|
|
166
|
-
### 2
|
|
204
|
+
### Step 2: Author a Scoped Task
|
|
205
|
+
Launch the interactive task authoring wizard or create a task via CLI:
|
|
167
206
|
```bash
|
|
168
|
-
#
|
|
169
|
-
npx jules-orchestrator-kit
|
|
170
|
-
npx jules-orchestrator-kit dispatch --title "Add OAuth2 JWT validation" \
|
|
171
|
-
--prompt "Add JWT bearer authentication middleware to backend/api/auth.py and verify via pytest."
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
<br/>
|
|
207
|
+
# Interactive authoring wizard with secret scrubbing & verification probes
|
|
208
|
+
npx jules-orchestrator-kit task create
|
|
175
209
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
npx jules-orchestrator-kit dispatch --title "Upgrade PHP 8.3 type annotations" \
|
|
180
|
-
--prompt "Add strict type hints to all repository classes in app/Repositories/."
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
<br/>
|
|
184
|
-
|
|
185
|
-
### 4οΈβ£ .NET / C# Enterprise (*.sln, *.csproj)
|
|
186
|
-
```bash
|
|
187
|
-
# Auto-detects .sln / .csproj and runs `dotnet test --no-restore --nologo`
|
|
188
|
-
npx jules-orchestrator-kit dispatch --title "Implement OrderService caching" \
|
|
189
|
-
--prompt "Add IMemoryCache caching to OrderService.cs with xUnit coverage."
|
|
210
|
+
# Or dispatch directly with explicit flags
|
|
211
|
+
npx jules-orchestrator-kit task create --title "Fix authentication token expiration" \
|
|
212
|
+
--prompt "Fix JWT expiration check in src/auth.mjs and verify with npm test."
|
|
190
213
|
```
|
|
191
214
|
|
|
192
215
|
<br/>
|
|
193
216
|
|
|
194
|
-
###
|
|
217
|
+
### Step 3: Local Verification & Queue Execution
|
|
218
|
+
Inspect diagnostics and execute queued tasks:
|
|
195
219
|
```bash
|
|
196
|
-
#
|
|
197
|
-
npx jules-orchestrator-kit
|
|
198
|
-
--prompt "Create ThemeToggle component in src/components/ThemeToggle.tsx and verify via npx playwright test."
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
<br/>
|
|
220
|
+
# Run interactive diagnostic matrix
|
|
221
|
+
npx jules-orchestrator-kit doctor --interactive
|
|
202
222
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
# Run a parallel worktree swarm; changed files automatically route to scoped subproject tests
|
|
206
|
-
npx jules-orchestrator-kit swarm
|
|
223
|
+
# Process pending task queue in isolated worktrees
|
|
224
|
+
npx jules-orchestrator-kit queue --interactive
|
|
207
225
|
```
|
|
208
226
|
|
|
209
227
|
<br/>
|
|
@@ -214,7 +232,7 @@ npx jules-orchestrator-kit swarm
|
|
|
214
232
|
<br/>
|
|
215
233
|
|
|
216
234
|
```
|
|
217
|
-
Ecosystems Natively Supported by src/
|
|
235
|
+
Ecosystems Natively Supported by src/config.mjs:
|
|
218
236
|
βββ PHP / Laravel / WordPress (composer.json, phpunit.xml, pest.php, artisan, wp-cli.yml)
|
|
219
237
|
βββ .NET / C# / F# (*.sln, *.csproj, *.fsproj, global.json)
|
|
220
238
|
βββ Mobile / Dart / Flutter (pubspec.yaml)
|
|
@@ -242,6 +260,46 @@ Ecosystems Natively Supported by src/stack-detector.mjs:
|
|
|
242
260
|
|
|
243
261
|
<br/>
|
|
244
262
|
|
|
263
|
+
<a id="configuration"></a>
|
|
264
|
+
## βοΈ Configuration Reference (`.agent/config.yml`)
|
|
265
|
+
|
|
266
|
+
`jules-orchestrator-kit` auto-detects stack defaults, but allows explicit overrides through `.agent/config.yml`:
|
|
267
|
+
|
|
268
|
+
```yaml
|
|
269
|
+
# .agent/config.yml β Universal Orchestrator Configuration
|
|
270
|
+
|
|
271
|
+
version: 1
|
|
272
|
+
provider: "jules" # Provider key ("jules" | "claude-code" | "local")
|
|
273
|
+
baseBranch: "main" # Default target base branch
|
|
274
|
+
branchPrefix: "agent/" # Prefix for task branches
|
|
275
|
+
|
|
276
|
+
# Verification commands (auto-detected by Stack Oracle if omitted)
|
|
277
|
+
verify:
|
|
278
|
+
test: "npm test"
|
|
279
|
+
build: "npm run build"
|
|
280
|
+
|
|
281
|
+
# Scope protection rules (Deny-first evaluation)
|
|
282
|
+
scope:
|
|
283
|
+
deny:
|
|
284
|
+
- ".github/**"
|
|
285
|
+
- ".agent/config.yml"
|
|
286
|
+
- "keys/**"
|
|
287
|
+
|
|
288
|
+
# Operational limits & governors
|
|
289
|
+
limits:
|
|
290
|
+
diffKb: 75 # 75 KB Diff Payload Governor limit
|
|
291
|
+
promptKb: 50 # Maximum prompt payload size
|
|
292
|
+
dailyTasks: 300 # Daily task session quota limit
|
|
293
|
+
repairAttempts: 3 # Maximum OODA repair iterations
|
|
294
|
+
concurrency: 1 # Worker slot concurrency limit
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
<br/>
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
<br/>
|
|
302
|
+
|
|
245
303
|
<a id="architecture"></a>
|
|
246
304
|
## ποΈ System Architecture & Visual Diagrams
|
|
247
305
|
|
|
@@ -264,36 +322,14 @@ Every task dispatched to `jules-orchestrator-kit` executes within an immutable,
|
|
|
264
322
|
|
|
265
323
|
<br/>
|
|
266
324
|
|
|
267
|
-
```mermaid
|
|
268
|
-
flowchart TD
|
|
269
|
-
A["π© Task Envelope"] --> B["1. Validate Scope & Base Freshness"]
|
|
270
|
-
B --> C["2. Create Isolated Git Worktree & VFS Lock"]
|
|
271
|
-
C --> D["3. Dispatch Task to Google Jules / LLM"]
|
|
272
|
-
D --> E["4. Execute Scoped Verification Gate<br/><code>detectPolyglotStack().testCmd</code>"]
|
|
273
|
-
|
|
274
|
-
E -->|PASS| F["5. Security Audit<br/><i>Redact Secrets, Diff < 75KB</i>"]
|
|
275
|
-
F --> G["7. Rebase & Open PR<br/><code>git rebase main && gh pr create</code>"]
|
|
276
|
-
|
|
277
|
-
E -->|FAIL| H["6. Fingerprint Stderr & Flaky Verdict"]
|
|
278
|
-
H -->|Oscillation >= 0.40| I["π¨ Quarantined Test<br/><i>Exit Code 8</i>"]
|
|
279
|
-
H -->|Normal Failure| J["π Attempt OODA Repair Turn<br/><i>Max 3 Retries; Exit 4 on Exhaust</i>"]
|
|
280
|
-
J --> D
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
<br/>
|
|
284
|
-
|
|
285
325
|
### 2. Polyglot Monorepo Scoped Execution Engine
|
|
286
326
|
In monorepos containing multiple languages, `resolveWorkspaceBoundary(changedFiles)` traverses directory ancestry to isolate verification to affected subprojects:
|
|
287
327
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
C --> D2["<code>cli/src/main.rs</code> β <code>cli/Cargo.toml</code><br/><i>(Rust Stack)</i>"]
|
|
294
|
-
D1 --> E["Synthesize POSIX Subshell Verification Plan<br/><code>(cd backend && pytest) && (cd cli && cargo test)</code>"]
|
|
295
|
-
D2 --> E
|
|
296
|
-
```
|
|
328
|
+
<br/>
|
|
329
|
+
|
|
330
|
+
<p align="center">
|
|
331
|
+
<img src="docs/assets/monorepo-resolver.svg" alt="Polyglot Monorepo Scoped Boundary Resolver" width="100%" />
|
|
332
|
+
</p>
|
|
297
333
|
|
|
298
334
|
<br/>
|
|
299
335
|
|
|
@@ -332,19 +368,61 @@ Native stdio server exposing task dispatch, gate verification, and risk auditing
|
|
|
332
368
|
|
|
333
369
|
| Command | Usage | Description | Exit Codes |
|
|
334
370
|
| :--- | :--- | :--- | :--- |
|
|
371
|
+
| `init` | `agentctl init [--interactive] [--tier pro]` | Interactive onboarding wizard & stack oracle inspector generating `.agent/config.yml`. | `0` (Created) |
|
|
372
|
+
| `task create` | `agentctl task create [--title <t>] [--prompt <p>]` | Interactively authors & scopes falsifiable task envelopes with secret scrubbing & preflight gate checks. | `0` (Queued), `1` (Unfalsifiable / Secret leak) |
|
|
373
|
+
| `task optimize` | `agentctl task optimize "<prompt>" [--fix] [--json]` | Linter & optimizer scoring prompt falsifiability (0β100), fixing typos, and checking scope violations. | `0` (Scored/Fixed) |
|
|
374
|
+
| `test-gen` | `agentctl test-gen --title <t> --spec <s> [--run]` | Scaffolds falsifiable unit tests, verifies **RED** failure state, and locks test in `scope.deny`. | `0` (Scaffolded/Red) |
|
|
375
|
+
| `rollback` | `agentctl rollback [sessionId \| --latest]` | Restores exact commit, uncommitted files, and cleans orphan task worktrees from pre-flight checkpoints. | `0` (Restored), `1` (Error) |
|
|
376
|
+
| `resume` | `agentctl resume <sessionId> --response "<reply>"` | Streams engineer response back into active Google Jules warm session context window. | `0` (Resumed), `1` (Error) |
|
|
335
377
|
| `dispatch` | `agentctl dispatch --title <t> --prompt <p>` | Dispatches a single task to an AI agent in an isolated worktree. | `0` (Success), `1` (Arg error), `2` (429 Rate limit), `3` (Scope deny), `4` (OODA exhausted), `5` (Diff > 75KB), `6` (Secret leak) |
|
|
378
|
+
| `doctor` | `agentctl doctor [--interactive] [--fix safe]` | Diagnostic DAG check runner & automated transactional repair planner. | `0` (Healthy) |
|
|
379
|
+
| `queue` | `agentctl queue [--interactive] [--json]` | Consumes, inspects, and executes task envelopes in `.agent/jules-queue/` (supports `--json`). | `0` (Complete) |
|
|
380
|
+
| `swarm` | `agentctl swarm [--interactive] [--json]` | Runs parallel multi-agent swarm across worker slots with process PID liveness detection (supports `--json`). | `0` (Complete) |
|
|
381
|
+
| `scan` | `agentctl scan` | Scans codebase for TODO/FIXME annotations to seed task authoring. | `0` (Scanned) |
|
|
336
382
|
| `review-repair`| `agentctl review-repair <pr-comments.json>`| Parses GitHub PR review comments and synthesizes actionable OODA repair tasks. | `0` (Parsed), `1` (Missing file) |
|
|
337
383
|
| `dashboard` | `agentctl dashboard [port]` | Starts zero-dependency local HTTP telemetry and audit visualizer dashboard. | `0` (Running) |
|
|
338
|
-
| `gate` / `audit`| `agentctl gate --
|
|
384
|
+
| `gate` / `audit`| `agentctl gate --mode working-tree [--json]` | Runs security, secret scanning, and verification gate against working tree or branch (supports `--json`). | `0` (Approved), `3` (Scope violation), `5` (Diff limit), `6` (Secret leak) |
|
|
339
385
|
| `bootstrap` | `agentctl bootstrap [--force] [--json]` | Inspects an untested repository and synthesizes `.agent/config.yml` with a zero-test verification oracle (`php -l`, `compileall`, `dotnet build`, `tsc`, `smoke`). | `0` (Bootstrapped / Existing) |
|
|
340
|
-
| `queue` | `agentctl queue` | Consumes and executes pending markdown task envelopes in `.agent/queue/`. | `0` (Complete) |
|
|
341
|
-
| `swarm` | `agentctl swarm` | Runs parallel multi-agent swarm across queued tasks with token-bucket concurrency. | `0` (Complete) |
|
|
342
|
-
| `doctor` | `agentctl doctor` | Diagnostic inspect: displays detected stack, container wrapper, test command, and daily session budget. | `0` (Healthy) |
|
|
343
386
|
| `lock` | `agentctl lock <acquire\|release\|status>`| Manages VFS mutex locks for multi-agent non-overlapping file ownership. | `0` (Locked/Released), `1` (Conflict) |
|
|
344
387
|
| `clean` | `agentctl clean` | Prunes stale git worktrees, lockfiles, and temporary ledgers. | `0` (Clean) |
|
|
345
|
-
| `init` | `agentctl init` | Scaffolds `.agent/` directory structure and default `.agent/config.yml`. | `0` (Created) |
|
|
346
388
|
| `mcp` | `agentctl mcp` | Starts stdio Model Context Protocol (MCP) server for tool integration. | `0` / Stdio stream |
|
|
347
|
-
| `
|
|
389
|
+
| `mcp init` | `agentctl mcp init [--target cursor\|vscode\|claude\|all]` | 1-click scaffolding for Cursor (`.cursor/mcp.json`), VS Code tasks (`tasks.json`), and Claude Desktop. | `0` (Scaffolded) |
|
|
390
|
+
| `version` | `agentctl version` | Outputs orchestrator kit semantic version (`v0.30.0`). | `0` |
|
|
391
|
+
|
|
392
|
+
<br/>
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
<br/>
|
|
397
|
+
|
|
398
|
+
<a id="providers"></a>
|
|
399
|
+
## π Provider Integration & SDK Usage
|
|
400
|
+
|
|
401
|
+
`jules-orchestrator-kit` supports standard AI agent platforms and programmatic failover routing:
|
|
402
|
+
|
|
403
|
+
### 1. Google Jules Native Integration
|
|
404
|
+
Dispatch tasks using canonical task envelopes or the Google Jules REST v1alpha API.
|
|
405
|
+
|
|
406
|
+
### 2. Multi-Provider Failover SDK (`createFailoverProvider`)
|
|
407
|
+
Programmatically configure ordered provider failover (e.g. falling back to secondary providers on HTTP 429 rate limits):
|
|
408
|
+
|
|
409
|
+
```javascript
|
|
410
|
+
import { createFailoverProvider, loadConfig } from "jules-orchestrator-kit";
|
|
411
|
+
|
|
412
|
+
const config = loadConfig(process.cwd());
|
|
413
|
+
const provider = createFailoverProvider(["jules", "claude-code"], config);
|
|
414
|
+
|
|
415
|
+
const result = await provider.dispatch(
|
|
416
|
+
{ title: "Repair failing tests", prompt: "Fix the failing test suite." },
|
|
417
|
+
{ root: process.cwd() }
|
|
418
|
+
);
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### 3. Model Context Protocol (MCP) Server
|
|
422
|
+
Expose orchestrator gates and queue controls over stdio to client tools (Antigravity, Claude, Cursor):
|
|
423
|
+
```bash
|
|
424
|
+
npx jules-orchestrator-kit mcp
|
|
425
|
+
```
|
|
348
426
|
|
|
349
427
|
<br/>
|
|
350
428
|
|
|
@@ -353,14 +431,24 @@ Native stdio server exposing task dispatch, gate verification, and risk auditing
|
|
|
353
431
|
<br/>
|
|
354
432
|
|
|
355
433
|
<a id="roadmap"></a>
|
|
356
|
-
## πΊοΈ
|
|
434
|
+
## πΊοΈ Feature Roadmap & Release History
|
|
357
435
|
|
|
358
|
-
| Feature | Module / Command | Architectural
|
|
436
|
+
| Feature | Module / Command | Architectural Description | Target Release |
|
|
359
437
|
| :--- | :--- | :--- | :---: |
|
|
360
|
-
| **
|
|
361
|
-
| **
|
|
362
|
-
| **
|
|
363
|
-
| **
|
|
438
|
+
| **Warm Session Resumption & PR Bundler** | `src/provider.mjs`, `src/engine.mjs` | Multi-turn warm session context streaming via `POST /v1alpha/sessions/{id}:sendMessage` & evidence PR descriptions. | **v0.31.0** *(Shipped)* |
|
|
439
|
+
| **TDD Harness & Prompt Falsifiability Linter** | `agentctl test-gen`, `agentctl task optimize` | Automated RED-state test generator, `scope.deny` test locking, and prompt testability linter with fuzzy path resolution. | **v0.31.0** *(Shipped)* |
|
|
440
|
+
| **Atomic Git Checkpoint & Rollback** | `agentctl rollback` (`src/ops/checkpoint.mjs`) | Pre-flight git HEAD/stash snapshotting, atomic rollback restoration, and 10-session pruning rotation. | **v0.31.0** *(Shipped)* |
|
|
441
|
+
| **Verification Sandbox & SSR Hydration Prober** | `verify.server`, `verify.setup`/`teardown` | Isolated process group dev server probing, Next.js/React SSR panic detection, and deterministic DB hooks. | **v0.31.0** *(Shipped)* |
|
|
442
|
+
| **AST Selective Testing & Escalation Bridge** | `src/dag-engine.mjs`, `agentctl escalate` | Downstream import test resolution, Slack/Discord webhook alerts, and async `agentctl resume` unblocking. | **v0.31.0** *(Shipped)* |
|
|
443
|
+
| **IDE Native MCP Config Scaffolder** | `agentctl mcp init` (`src/ops/ide-scaffold.mjs`) | 1-click scaffolding for Cursor (`.cursor/mcp.json`), VS Code tasks (`tasks.json`), and Claude Desktop. | **v0.31.0** *(Shipped)* |
|
|
444
|
+
| **Interactive UX Engine & TUI Engine** | `src/ux/` (`capabilities`, `key-decoder`, `renderer`, `layout`, `widgets`) | Zero-dependency terminal capabilities detector, sequence key decoder, virtual frame renderer, and widgets. | **v0.30.0** *(Shipped)* |
|
|
445
|
+
| **Guided Diagnostics & Transactional Core** | `src/ops/` (`doctor-registry`, `doctor-planner`, `transaction`, `receipts`) | Diagnostic check DAG (`runDoctorChecks`), pure fix planner (`planDiagnosticFixes`), and transactional executor with rollback. | **v0.30.0** *(Shipped)* |
|
|
446
|
+
| **Interactive Queue & Swarm Manager** | `src/ux/`, `src/ops/` (`queue-model`, `swarm-model`, `task-actions`, `swarm-actions`) | Task sidecar state machine, queue snapshot builder, PID liveness reconciler, task actions, and swarm actions. | **v0.30.0** *(Shipped)* |
|
|
447
|
+
| **Command Registry & Command Palette** | `src/ops/command-registry.mjs`, `src/ux/palette.mjs` | Single-source command descriptor registry (`COMMAND_REGISTRY`), `--help` string formatter, fuzzy search filter, and command palette. | **v0.30.0** *(Shipped)* |
|
|
448
|
+
| **Onboarding & Stack Oracle Wizard** | `agentctl init --interactive` (`src/wizard-init.mjs`) | Zero-dependency interactive CLI wizard auto-detecting verification oracles, quota tiers, and preset workflows. | **v0.29.0** *(Shipped)* |
|
|
449
|
+
| **Guided Task Authoring Subsystem** | `agentctl task create` (`src/wizard-task.mjs`) | Guided task authoring with TODO candidate harvesting, Shannon entropy secret scrubbing, and guardrail footer synthesis. | **v0.29.0** *(Shipped)* |
|
|
450
|
+
| **P0 Remediation & Safety Alignment** | Queue, Task Envelope & Secrets (`src/wizard-task.mjs`) | Canonical queue path alignment (`.agent/jules-queue/`), path traversal guards, atomic writes, multiline secret scans, and JSON headers. | **v0.29.1** *(Shipped)* |
|
|
451
|
+
| **PR Review Auto-Remediation Loop** | `agentctl review-repair` (`src/review-repair.mjs`) | Ingests GitHub PR review comments (`CHANGES_REQUESTED`), extracts line/file context, and dispatches automated OODA repair turns. | **v0.27.0** *(Shipped)* |
|
|
364
452
|
|
|
365
453
|
<br/>
|
|
366
454
|
|
|
@@ -368,14 +456,11 @@ Native stdio server exposing task dispatch, gate verification, and risk auditing
|
|
|
368
456
|
|
|
369
457
|
<br/>
|
|
370
458
|
|
|
371
|
-
## π
|
|
459
|
+
## π Documentation & Architecture
|
|
372
460
|
|
|
461
|
+
- [**System Architecture & Pipeline Overview**](./docs/architecture.md) β Comprehensive technical sequence diagram and control plane architecture.
|
|
373
462
|
- [**Google Jules Official Documentation**](https://jules.google) β Official platform overview and API specifications for Google Jules.
|
|
374
|
-
- [**Google Labs Code Repositories**](https://github.com/google-labs-code) β Official Google Labs public GitHub organization (jules-action, jules-sdk).
|
|
375
|
-
- [**Universal Polyglot Architecture & Zero-Test Specification**](./docs/UNIVERSAL_POLYGLOT_ARCHITECTURE.md) β Comprehensive technical report on boundary resolution, OODA math, and B2B workflows.
|
|
376
|
-
- [**v0.27.0 Architectural Audit & Platform Evolution**](./docs/V0.27_ARCHITECTURAL_AUDIT_AND_EVOLUTION.md) β PR review remediation, failover router, and local dashboard specs.
|
|
377
463
|
- [**Examples & Task Envelope Recipes**](./EXAMPLES.md) β Production YAML and Markdown task envelopes.
|
|
378
|
-
- [**Adversarial Security Audit Phase 4 Report**](./docs/AUDIT_REPORT.md) β CWE-77, CWE-1321, and CWE-183 security hardening analysis.
|
|
379
464
|
- [**Changelog**](./CHANGELOG.md) β Full release history and migration guides.
|
|
380
465
|
|
|
381
466
|
<br/>
|